Live data from Hacker News

React Makes You Sad?

github.com

141–150 of 211 posts

Re: React Makes You Sad?

#141

Earlier quoted context omitted.

Other correct comments about a quite active 'next' branch aside... The latest commit on master is Nov 12, 2015 . That's not even half a year ago . The stable shelf life of software worth mentioning is longer than that, don't you think?

Yes of course, but I would expect many commits between stable releases (patching issues). I guess this is just a different pattern where a solo-dev goes quitely working for a few months and then emerges with the next release.

To give some context, even though the version is at 0.2.x, it's been fairly stable for months, and there have been very few bug reports (despite it being used fairly extensively in relatively big codebases - see lichess.org, for example).

Most of the "bugs" (or rather, limitations) in the issue tracker are either discussions or things that are difficult to address w/ the current codebase - e.g. design/ergonomics issues, as opposed to implementation issues - Those are part of the reason for the rewrite.

Another thing that is worth mentioning is that Mithril's general philosophy is to avoid adding features for features' sake, so it can look less "active" than it actually is.

Re: React Makes You Sad?

#143

I don't know what's worse. A poorly-worded expression of someone's experience with React, or the no-info-or-even-attempt-to-understand judgment from you. Oh man, you're a guy who does a fair amount of React work and tries to pay attention to weird arguments against it? Let me immediately downvote that guy and upvote you! What's so weird about someone not enjoying the rigidity React offers and realizing that Facebook…

By the way, I remember you. You're that guy who was relentlessly defending Facebook's chief of security in the comment thread after he acted like a scumbag. It was so weird how you responded to nearly every comment vindicating your pal.

This is quite off-topic and accusatory. Please don't do that here.

Re: React Makes You Sad?

#144
I think React, in particular in combination with a flux pattern such as redux, has only shifted complexity.

Complexity shifted from a mess of jQuery event handlers shuffling the DOM around to an intimidating mathematical abstraction in the form of functional programming.

The benefit is that you can reason about pure functions, whereas you cannot reason about a mess of intertwined event handlers.

Between to equally complex problems, react forces you to converge on a problem that you can actually solve.

Programming is hard. I think what's happening now is that we're starting to discover issues that were previously hidden by problems that are now solved.

Re: React Makes You Sad?

#145
post #143

I don't know what's worse. A poorly-worded expression of someone's experience with React, or the no-info-or-even-attempt-to-understand judgment from you. Oh man, you're a guy who does a fair amount of React work and tries to pay attention to weird arguments against it? Let me immediately downvote that guy and upvote you! What's so weird about someone not enjoying the rigidity React offers and realizing that Facebook…

By the way, I remember you. You're that guy who was relentlessly defending Facebook's chief of security in the comment thread after he acted like a scumbag. It was so weird how you responded to nearly every comment vindicating your pal. This is quite off-topic and accusatory. Please don't do that here.

No I will continue just for him and hey look at that, you're both in security.

Re: React Makes You Sad?

#146
post #89
post #72

Earlier quoted context omitted.

Put ref properties on the child components. Put public methods on the child components. You can then access the refs from the parent in the parent's componentDidMount or componentDidUpdate methods.

Tried that, couldn't figure out how to get it to work. Still didn't have access to child's state.

Use something like:

    this.yourRef = yourRef}/>
I think you should be able to do this.yourRef.state, but if not, you can always implement a getState() method in YourComponent.

Re: React Makes You Sad?

#147
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…

What resources did you use to learn Javascript properly? I have been meaning to go through this book: http://eloquentjavascript.net/

Re: React Makes You Sad?

#148

I have tried to get in to React all week. The technology is easy, but it's Webpack that I'm having trouble enjoying. All I want is are two simple configs. A dev one with a server/hot loader, and a prod one that concats/minifies. ES2015. That's it. That just doesn't exist out there. It's either no decent production bundler, or it's like 15 files and 900 lines of configuration that seem completely overkill. I don't kno…

Check out https://github.com/ryanflorence/react-project , it’s very new but seems similar to what you are aiming for.

Isn't that exactly what he's not aiming for, namely "15 files and 900 lines of configuration that seem completely overkill"?

This seems to remove complexity but it just hides the complexity in the dependency. When something doesn't work out or he wants to change the behavior he still has to delve into these "15 files and 900 lines of configuration".

Re: React Makes You Sad?

#149

I have tried to get in to React all week. The technology is easy, but it's Webpack that I'm having trouble enjoying. All I want is are two simple configs. A dev one with a server/hot loader, and a prod one that concats/minifies. ES2015. That's it. That just doesn't exist out there. It's either no decent production bundler, or it's like 15 files and 900 lines of configuration that seem completely overkill. I don't kno…

Have you tried ember-cli? It does all of this out of the box.

Re: React Makes You Sad?

#150

Although I like this a lot, and I think it addresses most individual nuggets of React Sadness in a pretty reasonable way, I am still sad. I am sad because every process rectangle in this chart should also point to a decision diamond that says: "Does it seem that the entire industry has migrated to this stack, whether or not it really makes sense for everyone to? That a feedback loop now influences shops to choose the…

Did anyone claim the same about jQuery a few years ago? First people claim about js library fatigue, now we are complaining about there only being "one employable js library."
Post reply on HN