Live data from Hacker News

React Makes You Sad?

github.com

31–40 of 211 posts

Re: React Makes You Sad?

#31
post #9

Some of these are a bit dubious. "Are you using a bundler?" If yes: "try not using a bundler." If no: "try using a bundler." Same for flux/redux.

That's actually not what it's saying. It says if you're not in production and you are using a bundler, get rid of it. If you are in production and not using a bundler, start using it.

If you're in production using it and still sad, or if you're not in production and not using it and still sad, move to the next step.

Re: React Makes You Sad?

#32
post #12
post #10

I've just started playing with React and my general opinion is that it's a very 'Facebook' project. Lots of restrictions on what you can do and when keeping all of the coders in line with what you're supposed to be doing and following the 'Facebook' way of programming. I'm sure it's great for writing traditional crud apps, but anything outside of the box that it wasn't intended is a major pain requiring major hacks j…

This is the weirdest argument I've ever heard against React, and, as someone who does a fair bit of React work, I try to pay attention to all those arguments.

I don't see how a desire for flexibility (hackability) is a weird argument. But I do see why React works this way to keep the hacking to minimum; unfortunately I needed to 'hack' react to do what I was doing and found it's use of readonly variables and state setting and availability during the lifecycle process to be highly frustrating.

Re: React Makes You Sad?

#34
post #21
post #12

Earlier quoted context omitted.

This is the weirdest argument I've ever heard against React, and, as someone who does a fair bit of React work, I try to pay attention to all those arguments.

It's certainly a weird phrasing of an argument. However, it seems reasonable that some programmers will not like the specific style of structure that react espouses. Specifically the top-down push of data through parent-child component relationships. Specifically, if you are working with a lot of third party components that are not react based, it can be hard (or a lot of boilerplate) to contain them within react app…

But you certainly can NOT do that. You can write "smart" components that each talk to the necessary store(s) and make decisions.

As your project grows, you'll come to see WHY small, dumb components are helpful, and how the top-down view manages the scope of rerendering.

You can come around to the espoused best practices organically.

Re: React Makes You Sad?

#35

As someone who was almost immediately made happy by React, ES6, Redux, and boilerplates, I'm not the target audience. But I feel like this would make me un-sad if I felt overwhelmed by all the choices. I think the Redux guide itself ( http://redux.js.org/ ) also does a fantastic job of a very gradual release into complexity. I recommend that anyone who feels they may want a Flux-like store read through the whole guid…

Also, the free "Getting Started with Redux" video course: https://egghead.io/series/getting-started-with-redux

The approach taken in the videos is great because it starts off with implementing your own simplified version of Redux and builds on that. There are no "magic" steps, this makes it much easier to develop an understanding of how it works.

Re: React Makes You Sad?

#36
As a C and then a Ruby on Rails programmer, I never thought I would see the day that my main programming language was Javascript. But I find React such an enabling technology that I made the effort to learn Javascript properly, and am glad that I did.

React itself is allowing me to write web applications faster and with less bugs, primarily because of the unidirectional information flow, but also because of the way it guides you into making everything components, which keeps the borders up between objects and makes testing easy.

Even better, I can now create both iOS apps and Android apps at the same time (I knew Objective C but not Java for Android), and at a much faster speed than before - the flex layout model alone has saved me days and weeks of debugging the iOS layouts in storyboards, and now I'm able to shift code between the app codebase and the web codebase with ease.

It is indeed overwhelming when first trying to learn React, especially when trying to learn Javascript at the same time, and this flowchart is so spot-on with the tendency to start using packagers, boilerplate, redux before understanding why they are useful.

Follow the flowchart, and you will find happiness!

Re: React Makes You Sad?

#37
post #35

As someone who was almost immediately made happy by React, ES6, Redux, and boilerplates, I'm not the target audience. But I feel like this would make me un-sad if I felt overwhelmed by all the choices. I think the Redux guide itself ( http://redux.js.org/ ) also does a fantastic job of a very gradual release into complexity. I recommend that anyone who feels they may want a Flux-like store read through the whole guid…

Also, the free "Getting Started with Redux" video course: https://egghead.io/series/getting-started-with-redux The approach taken in the videos is great because it starts off with implementing your own simplified version of Redux and builds on that. There are no "magic" steps, this makes it much easier to develop an understanding of how it works.

Just to throw another one in there, this github tutorial really helped it click for me: https://github.com/happypoulp/redux-tutorial/blob/master/00_...

The rest of the tutorials left me feeling frustrated not really knowing why. This one i just breezed through.

Re: React Makes You Sad?

#40

I had a hard time determining whether or not this flowchart was satire or not.

Agreed. I was kind of shocked to open up the comments and see people taking this at face value. I know this isn't reddit, but "upvoted because React" seems to be just as much in play over here.
Post reply on HN