Live data from Hacker News

React is the new jQuery

bradfrost.com

41–50 of 206 posts

Re: React is the new jQuery

#41
post #35

This comes from a well-known and respected thought leader. There are different types of thoughts, though. This is simply an observation: > Don’t @ me I’m not trying to start a controversy. I’m only stating an observation. https://twitter.com/SaraSoueidan/status/1001189524477743105 React, like jQuery, could have done more to keep people from writing bad code. With React, they made the same mistake that Angular did, wh…

They should done more to keep people from writing bad code, they should have less rule. What does that even mean?

In this case, doing more means responding to the real-world usage of React, and making it so that lifting state up isn't the only recommended option. Vue did this and is grabbing some market share from React. https://reactjs.org/docs/lifting-state-up.html

Re: React is the new jQuery

#42

> React is the new jQuery Anyone who uses "the new jQuery" as some sort of insult (as it seems Sara did in her tweet) probably hasn't been a developer for more than a few years or is just trying to sound smarter than they are by bashing an easy target. The reason jQuery got so popular is that it made common tasks so much easier than anything else at the time. Anyone who was doing web development before jQuery knows w…

Unless you were doing custom jQuery builds per project (which no-one was), it was always bad. People would routinely drop in the 35kb lib and only use 3-4 functions.

Re: React is the new jQuery

#44
i just find it amusing that everyone gets up in arms what Brad Frost struggles with in React because he's famous. news flash: hundreds of devs face these issues every day and figure it out. Brad is famous and has problems with React; that's fine. He'll figure out a way that works for him. Doesn't mean his opinion at all reflects the experience of the thousands of devs who are happy with React. Let's move on and talk about more interesting things.

Re: React is the new jQuery

#45
I think people got carried away with the JSX side of React (which IMO is really just the icing on the cake) and forgot that React was probably the first view library that introduces the notion of the DOM as a pure function of data. It made functional programming mainstream in front-end development. This purity makes UI extremely easy to reason about and makes all DOM changes tractable. I was in a Backbone shop before using React and I remember Backbone was such a chore to manage in a large application. We switched to React and never looked back.

Re: React is the new jQuery

#46

Earlier quoted context omitted.

That's because you aren't using Reason-React

Could you explain more about Reason? I've been curious about it for awhile.

It's typechecked with redux and router built in already but still early so not all bindings are there yet for libs easily found for react/typescript. Maybe not for all projects that need that strict of type checking.

Re: React is the new jQuery

#47
The JS world is so much more hype driven than say ruby, every few months they will have a new framework that promises to solve all the problems in ui land or the backend. They write songs in its praise everyone worships it like this is the one true framework a panacea for all evils. And then when the hype cycle winds down a new framework emerges. I am totally bored of looking at this cycle for the past few yrs. This just leaves a ton of unmaintainable projects in its tracks because the devs have found a new toy to play with. I have seen clients struggle to find backbone devs because no body in interested in Backbone this is a repeated pattern among JS Devs.

JQuery -> Backbone -> [Tons of Backbone wannabe's written in Coffeescript Batmanjs/Bananajs/what not..] -> Angular -> [Angular lookalikes with tons of magic] -> Ember -> Meteor -> React -> Vue -> [Wait a few months new framework in the Pipeline].

Unfortunately very few want to agree to the truth.

Re: React is the new jQuery

#48
Sort of tangential, but React is way less painful with TypeScript/tsx. I combine that with an IntelliJ IDE (RubyMine specifically) and honestly, it's a lot of fun to write web apps this way. (Maybe that's because I come from an iOS background?)

Anyway, I recommend giving this setup a go.

Re: React is the new jQuery

#49

I think there is some confusion comparing jquery with frameworks in general heh- time for a history lesson! So back in the mid-aughts right before jquery there was prototype. I got hired into a job where I had to maintain sites written with both in the past and they were very similar to each other. Ajax was new and so was the class based handling of JS to make it more object oriented. It could be done but prototype m…

There were also mootools and dojo.

I was more into those two but jQuery made everything dead simple.

Re: React is the new jQuery

#50

The JS world is so much more hype driven than say ruby, every few months they will have a new framework that promises to solve all the problems in ui land or the backend. They write songs in its praise everyone worships it like this is the one true framework a panacea for all evils. And then when the hype cycle winds down a new framework emerges. I am totally bored of looking at this cycle for the past few yrs. This…

This just isn’t true. React has been going strong for 4 years with no sign of slowing down.
Post reply on HN