Live data from Hacker News

React is the new jQuery

bradfrost.com

181–190 of 206 posts

Re: React is the new jQuery

#181
The problem was never jQuery. jQuery performed a very necessary function when it was created. It was always the intention of the lib to cease to be needed over time. The problem was/is the ecosystem created around jQuery. Want to do a thing? Do it with jQuery. Want to read a cookie? Use jQuery. Want an image carousel? Build it with jQuery. Want to do anything at all? jQuery.

I do see something similar happening with our more junior devs. Their Google searches have now turned to "how do I read a cookie with React?"... and sure enough, there is a react-cookie lib - which may or may not be useful for their task... but since it says "react", it'll probably show up in a pull request. React can't be blamed for this though. All the ecosystem being built with the expectation of "well everyone's using React", _is_ a problem.

Education about separation of concerns is the only solution I can see.

Re: React is the new jQuery

#182
post #75

Earlier quoted context omitted.

Do you have any advice for developing this way? I've found myself too sticking in the VanillaJS camp, but not being able to talk about React seems to dissuade potential employers.

My only advice would be to stay consistent, find patterns and genralize stuff. I do see the irony of making a framework of my own in the process of doing all that. I just embrace that. Everything is exactly how we want it and we know each line that executes on the machine. Makes development a breeze. There is nothing that react can do that vanilla js can't with reasonably same amount of effort. But stay open-minded.…

I agree with you and I do most of my stuff in vanilla JS these days, but if I have a complex UI state it can be nice to have a DOM diffing library rather than tracking and editing nodes explicitly.

Mithril is, in my opinion, React done right. The entire framework is contained in four methods. It doesn't have any awkward leaky abstractions like Angular, and it is super light and responsive.

Re: React is the new jQuery

#183

Earlier quoted context omitted.

> I cant even name a similar piece of software in web development history that is as important as jQuery. Apache?

There were other web servers, there weren't other jQuerys.

But Apache was born before jQuery, and continues to live on after jQuery (should have) died.

Re: React is the new jQuery

#184

vue seem to be an evolution of react and angular. it is as if some react developer sat down and said, “how can we make this even simpler so that even my grandson can do it.” i appreciate when we have guys like the authors of Vue come forward driving the community and taking web development to the next level giving us a more elegant solution.

More like a cousin... I see Vue as a nice component system for smaller applications, I don't think I'd want to build anything of even moderate complexity with it. React is for building applications, especially with teams. Combined with redux and a handful of other pieces, it's very nice. Angular, I don't get why anyone would choose it today (I've said it time and again).

I disagree. I would imo recommend you to switch to Vue if your app have gotten too big with React. As I said, Vue is more elegant and it improves the speed of development which also means less errors.

There are many big companies and startups who switched to Vue and loving it so I would say your point is moot.

Re: React is the new jQuery

#185

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

As someone who learned web dev in the era after jQuery was marked by many as deprecated, I started to resent it mainly because of all the StackOverflow posters that give jQuery answers to JavaScript questions. (Plus the cases where CSS would suffice.)

Re: React is the new jQuery

#186

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

> 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. Yet, Sara is neither of those, she's a well respected developer, who's work with CSS and SVG is world-class. If she's using jQuery as a comparison she's doing it from a place of experience and knowledge

Unfortunately the shortness of the tweet leaves much to interpretation. Perhaps the analogy she was getting at is simply that it's being used in solutions that do not benefit from it.

Re: React is the new jQuery

#187
post #66

Earlier quoted context omitted.

Well kids these days. They said webkit is the new IE, and said the IE era was IE7. Sigh I cant even name a similar piece of software in web development history that is as important as jQuery. Despite Web development as a whole, back end or front end is still no where near being good enough, it is still many times better then the old days.

>cant even name a similar piece of software in web development history that is as important as jQuery. Php?

Php is important in the way it exemplifies the total failure of the software industry to take advantage of it's 40-50 years of accumulated knowledge...

Re: React is the new jQuery

#188
post #75

Earlier quoted context omitted.

Do you have any advice for developing this way? I've found myself too sticking in the VanillaJS camp, but not being able to talk about React seems to dissuade potential employers.

My only advice would be to stay consistent, find patterns and genralize stuff. I do see the irony of making a framework of my own in the process of doing all that. I just embrace that. Everything is exactly how we want it and we know each line that executes on the machine. Makes development a breeze. There is nothing that react can do that vanilla js can't with reasonably same amount of effort. But stay open-minded.…

React is a great abstraction, but some projects abuse the virtual DOM concept and you end up with a lot of unnecessary reconciliation (VDOM diffing) going on that slows components down.

Re: React is the new jQuery

#189
post #156

Earlier quoted context omitted.

I dont disagree, React has some solid underpinnings but for now VUE has some momentum, till the next one comes along. Google gave up on the idea long back. Google develops Angular but doesnt use it in any of their core products. They themselves use Google Closure library for gmail or word processor.

Isn't the new YouTube website running Angular? Please don't shoot me if I'm wrong, I don't have any citations, I just presumed (on phone, too lazy to look up).

YouTube was originally built on SPF: https://github.com/youtube/spfjs. Not sure what they're using these days.
Post reply on HN