News for hackers. Stuff that matters.
Re:Why is React is taking over front-end development? by pmarreck on Wednesday May 10, 2017 @09:50AM (#14308129)
See: why I went to the backend.

Things are more static, and more easily automated-testable.

Re:Why is React is taking over front-end development? by spmurrayzzz on Wednesday May 10, 2017 @10:22AM (#14308379)
I too spend 90% of my time on the backend (Node.js mostly). But when I do work on the front-end, I feel that I can get the same relative static comfort by using the most hardened API available to me: the DOM.

I get that its pretty verbose and historically has been far from perfect, particularly in the early-to-mid 2000s, but I really have trouble understanding this allergy new devs have to the native web platform. Its not that hard to be productive and you can do so without having a nightmarish preprocessing toolchain. And by bootstrapping yourself to these framework/library ecosystems, you usually don't get a sense of the problems they venture to solve. Everything becomes a magic black box.

As an aside: libraries have never seemed like the true pain point for new FE devs. My anecdotal observation is that the wheels fall of the wagon when it comes to application/API design.

The obvious corollary here of course is that you can easily build a very poorly designed React/Redux app. We're just trading one problem space for another, in my view.

Re:Why is React is taking over front-end development? by onion2k on Wednesday May 10, 2017 @10:05AM (#14308245)
One of the big advantages of React is that it's straightforward to unit test your components. Plus there's Jest, which makes a lot of the hard bits of testing much easier.

(I say this as a developer who mostly uses Angular and Vue rather than React. I wish I had the React toolchain in other frameworks.)

Re:Why is React is taking over front-end development? by pmarreck on Wednesday May 10, 2017 @11:01AM (#14308700)
How would I run a React unit test from the command line? Or would I have to run it in-browser? Any pointers would be welcome
Re:Why is React is taking over front-end development? by onion2k on Wednesday May 10, 2017 @11:53AM (#14309166)
Jest uses jsdom. You just need to add it to a project ("npm install --save-dev jest"), write a spec, and then run npm test (maybe update package.json to have 'jest' as the test command). It's really, really easy.

There's even a repl so you can try it in a browser first - https://facebook.github.io/jest/#use

Re:Why is React is taking over front-end development? by cholantesh on Wednesday May 10, 2017 @11:35AM (#14308956)
I prefer backend, too, but I found that I had to develop my frontend skills to remain employable. Definitely prefer working on the server side, though.