Live data from Hacker News

React Makes You Sad?

github.com

41–50 of 211 posts

Re: React Makes You Sad?

#41
post #35

Earlier quoted context omitted.

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.

Following the official redux tutorials left me and my boss independently frustrated and turned off by the app.js description. We had both given up on redux until I followed this tutorial and it explained how simple and elegant the way components received properties from the redux state in th connect call.

Without this tutorial we wouldn't be experiencing the ease and joy redux can bring to large react apps (We're currently porting a large messy Angular app to react piece by piece by replacing just leafs of the app at a time)

Re: React Makes You Sad?

#42

can JSX be translated in the browser? that will make it even easier to avoid tooling and just use script tags for dev.

Yes, there is additional js loaded to do that. In the developer console you get a warning. It may be a tad slower.

Re: React Makes You Sad?

#43
post #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 i…

Can you provide more details about your path to learning JS and React?

Re: React Makes You Sad?

#44

Earlier quoted context omitted.

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.

Following the official redux tutorials left me and my boss independently frustrated and turned off by the app.js description. We had both given up on redux until I followed this tutorial and it explained how simple and elegant the way components received properties from the redux state in th connect call. Without this tutorial we wouldn't be experiencing the ease and joy redux can bring to large react apps (We're cur…

I was actually surprised when i started, because it starts with describing flux and how it works (and compares it to a more traditional MVC arch). Then it just slowly removes pieces until you get to a redux system.

Re: React Makes You Sad?

#45
post #21

Earlier quoted context omitted.

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.

You can come around to the espoused best practices organically.

As I said before, it's reasonable that some people are not going to like these particular best practices, and that in some instances it's going to get in the way.

As a concrete example, I just put up a form that is basically just a SSR datatables.net table and a save button. Adding react into the mix is literally unnecessary, and just adds boilerplate/extra code for no gain. In other words, it gets in the way. So I chose not to use it.

Re: React Makes You Sad?

#46

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.

I lol'd the minute I saw the flow chart. It's absurd. Helpful and well-intentioned, but absurd.

Re: React Makes You Sad?

#47

Lol. I found React interesting, too, but I don't like to read Javascript code, so I rolled my own React-like framework in Scala. Life is so much easier if you don't have to depend on other peoples mess.

Sounds like you just made your own mess

Re: React Makes You Sad?

#48

Lol. I found React interesting, too, but I don't like to read Javascript code, so I rolled my own React-like framework in Scala. Life is so much easier if you don't have to depend on other peoples mess.

...where "other peoples mess" is based on battle-hardened production code from Facebook...

On the other hand, React is from the same Facebook which determined that the same technologies which Apple uses to write, build and debug an entire OS aren't powerful enough to write a social media app which runs on that OS.

Re: React Makes You Sad?

#49
post #28

Earlier quoted context omitted.

What were you doing?

Writing a 'driver' to integrate my low level UI component library to be usable with React. My major issue was the 'rule' that a parent can't access the 'state' of it's children; this turned a 2 hour job into a 3 day job for me just trying to find a way to get access to this state through all of the lifecycle callbacks while instantiating children at the same time. When asked in #reactjs, they said that if you need ac…

  > this turned a 2 hour job into a 3 day job for me
  > just trying to find a way
That basically summarizes my entire career with CSS/HTML/Javascript.

"Oh, the page you made looks great! Can you just move that image 10 pixels to the left?" Spend two days hitting my head on the desk trying to figure out why it won't align correctly

"Oh, the page you made looks great! Except in IE and the version of Chrome on Android 4.0.3" Spend two days trying to fix those browsers without breaking the others

Re: React Makes You Sad?

#50
Where's the branch for "sad because I know react, and have to change half a dozen files with dozens of lines of boilerplate each for each change request"?

I know a few of those - folks who aren't beginners and who loved react to begin with, but are getting slowly disillusioned by the sheer volume of changes required to modify a data source or add a new widget.

Dropping flux or changing bundlers won't change the core of react... nor will writing any number of "helpful criticism" blog posts.

Post reply on HN