News for hackers. Stuff that matters.
Re:The State of JavaScript 2018 by pjmlp on Monday November 19, 2018 @06:48AM (#18485733)
React requires too much FP concepts for the typical average enterprise developer.

It feels like doing Haskell with JavaScript.

Re:The State of JavaScript 2018 by srgpqt on Monday November 19, 2018 @08:52AM (#18486368)
You can write haskell style in any language. but you don’t have to.

function MyComponent(props) { return <p>Hello {props.name}</p> }

Re:The State of JavaScript 2018 by tracker1 on Monday November 19, 2018 @12:51PM (#18488195)

    import React from 'react';

    export default ({name}) => <p>Hello {name}</p>;
So much nicer than Angular.
Re:The State of JavaScript 2018 by marcosdumay on Monday November 19, 2018 @04:46PM (#18490006)
> You can write haskell style in any language.

It would be great if that was true. The fact is that you can not copy Haskell in any mainstream language (Lisp gets the closest), and that hurts.

Re:The State of JavaScript 2018 by eropple on Monday November 19, 2018 @10:34AM (#18487099)
I dunno--most of what I end up doing has state, if not context. Not super Haskell-ish.