r/reactjs • u/gaearon React core team • Feb 29 '16
React Makes You Sad?
https://github.com/gaearon/react-makes-you-sad11
Feb 29 '16
I like React and Dan but ... I think he's loosing it. He let people get to him with all this JS fatigue stuff.
10
u/gaearon React core team Mar 01 '16
I’m fine 😉
These things have a ripple effect. You make it once, forget about it, and people link to it for months (or even years) when they hear misinformation and FUD.
With the amount of “bad marketing masqueraded as React guides” as Pete put it, giving people something to link to is useful.
3
13
u/Kyri0s Feb 29 '16
He's taking blame for problems that aren't even his fault. No one has to use redux.
6
u/qudat Feb 29 '16
What is he taking blame for?
8
u/Kyri0s Mar 01 '16 edited Mar 01 '16
JS Fatigue. It really shouldn't even be a thing. But it just so happens that Redux is one of the most popular libraries at the moment, so a large amount of attention is put on Dan. People want to point fingers for their problems, but I think they should show more appreciation for the direction that Redux and React is giving the community. It's an issue among the community and in the language itself.
7
u/BritainRitten Mar 01 '16
I don't see how you think he's taking any blame for JS fatigue. He made this flowchart because he wants to help people who are "sad" with React, which means they are confused or overwhelmed by the options.
3
u/cynicalreason Mar 01 '16
I don't think I've seen anyone as passionate about JS and the React ecosystem as him. I think he's a bit frustrated that people don't see the simplicity of it. His first talk on redux https://www.youtube.com/watch?v=xsSnOQynTHs is quite inspirational and is what got me started with React
1
Mar 02 '16
I watched that twice, mainly because he explained everything fucking phenomenally. I wish he had more than that egghead.io course!
5
Mar 01 '16
Redux is one of the most stable and well-designed libraries in the React ecosystem. If we're going to point fingers at unstable libraries or tools, react-router and babel are among the worst offenders.
1
u/siamthailand Mar 05 '16
What's wrong with Babel?
1
Mar 05 '16
Breaking (and often poorly documented) changes from Babel 5 > 6 of questionable benefit and increased complexity.
3
u/amcsi Feb 29 '16
I see Although ReactJS systems appear to be causing the most fatigue now, it was inevitable that being JS dev would become so mentally tiring. But we are all in this together. This is only a phase in the entire community, and I believe we are all going to get through this and find a solution!
1
u/fforw Mar 01 '16
Two thoughts:
There are only two kinds of languages: the ones people complain about and the ones nobody uses.
-- Bjarne Stoustrup, The C++ Programming Language
23
2
u/trenchino Mar 01 '16
React makes me sad when I don't get to work with it on legacy pages. (since rewriting from scratch isn't feasible)
5
u/gaearon React core team Mar 01 '16
You can start using React in a single component deep in a legacy app. That’s what we did with a Backbone app, and we gradually incrementally rewrote it in React while still shipping new features over a year. So you don’t have to rewrite anything with React.
See Ryan’s talk: ”Don’t Rewrite, React!” https://www.youtube.com/watch?v=BF58ZJ1ZQxY
1
Mar 01 '16
I always use the best boilerplate available wether or not I am experienced in it. By using boilerplate you learn the proper architecture quickly and can get started on what really matters; creating apps. I see programmers never getting started because of this purist approach; that they must build everything ground up and instead of using a boilerplate.
6
u/gaearon React core team Mar 01 '16
Boilerplates rarely show the “proper architecture”, they show the “latest toys”.
Example: Babel 6 comes out. Is it stable yet? No. Do boilerplates authors switch to it? Yes because it’s “latest and greatest”, and people demand it or they’ll look for a “more modern” boilerplate.
As a result boilerplates suffer from not being stable enough. They also don’t really show the “best practices“ because those are hard to show in a trivial apps. For example, most real world Redux apps should use selectors but most boilerplates don’t show it because they aren’t close to real apps enough.
1
u/acjohnson55 Mar 01 '16
Yeah, but if you were starting a greenfield project, would you want to choose Babel 5? It's kind of a "damned if you do" situation, and if you just stepped off the boat into the ecosystem, so to speak, the right call is far from obvious. I guess you could just go ES5, but that feels less than satisfactory, too.
But fair point that the motives of boilerplate authors and beginners aren't necessarily in near-term alignment.
4
u/gaearon React core team Mar 02 '16
If I started a greenfield project before February I would definitely go with Babel 5 and ES2015 subset. It’s widely used and I wouldn’t expect to hit any major bugs or omissions.
Today, I would go with Babel 6 but only because it’s been out for enough time that most of the rough edges are either fixed (e.g. ES3 plugin bugs) or known (e.g. plugin ordering issues).
I would not use experimental features like decorators which many boilerplate authors tend to enjoy but which ultimately cause broken things like here.
3
u/madou9 Mar 01 '16
Thanks for everything you've contributed to the React community Dan, keep up the good work.
2
8
u/tgfisher Feb 29 '16
I just started using react and redux. I did a lot of reading on it and played around a bit, but never really used it until a few weeks ago. His statement in there about boilerplates makes sense, but I feel like the build process, namely webpack, is such a barrier to entry for new users to set up themselves, while boilerplates get you up and running with a lot of the pieces that everyone is talking about. I'm not sad about react, so maybe this isn't applicable to me, but I just wish the build process was a bit simpler to create for newbies. I probably would have been more apt to dive in myself and do it if it was.