Live data from Hacker News

React is the new jQuery

bradfrost.com

151–160 of 206 posts

Re: React is the new jQuery

#151

Earlier quoted context omitted.

I don't think JQuery ever got bad. It just got unnecessary, like you said. But it took a lot of work to convince people that it was unnecessary. A charitable explanation of Sara's tweet might be that, like with jQuery, it is becoming difficult to convince new developers that React may not be necessary for their next project. The other comparative downside of JQuery was that components started to rely on it as a share…

Being used to jQuery, I really see no reason not to use it in new projects. I could learn all the new native equivalents, and even then still ending up doing more work than if I'd been using jQuery, just to save a little bit of page load time and filesize, but it would almost certainly not be worth it.

it irks me to use common functions such as selectors and Ajax in jQuery that are much, much slower than their native counterparts

Re: React is the new jQuery

#152
Mods, can we change the title? The current title was clearly chosen to be inflammatory. Meanwhile, the original title only mentions VueJS, not React: "Replacing jQuery With Vue.js: No Build Step Necessary"

Re: React is the new jQuery

#153
post #86

When I see this: var formname = $(this).find('.formname'); formname.empty(); formname.append(n_input); I think why not just use plain Javascript and do this: document.querySelector('.formname').innerHTML=n_input; Coders that are attached to libraries and frameworks always seem so afraid to use the tech already available. That they don't even look at how the basic solution would look like.

I'm currently refactoring a jQuery frontend to native Web. The verbose naming is really unfortunate, jQuery wins here.

Re: React is the new jQuery

#154
post #137

Earlier quoted context omitted.

Nah, there were always tons of alternatives to PHP. What real alternatives were there to jQuery? There were none.

I know this is a rhetorical question, but Prototype.js was pretty similar to jQuery; although jQuery won the popularity contest.

I don't presume to be an expert on history (only entered the webdev domain in 2010), but didn't prototype come out at least a couple of years after jQuery?

Re: React is the new jQuery

#155
post #154
post #137

Earlier quoted context omitted.

I know this is a rhetorical question, but Prototype.js was pretty similar to jQuery; although jQuery won the popularity contest.

I don't presume to be an expert on history (only entered the webdev domain in 2010), but didn't prototype come out at least a couple of years after jQuery?

Prototype was released like a year before jQuery.

Re: React is the new jQuery

#156

Earlier quoted context omitted.

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

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).

Re: React is the new jQuery

#157

I don’t really agree for various reasons. That said, I’m not a huge fan of react, but am stuck working with a few code bases that use it. I prefer vue, but I dislike that it’s essentially a one man show.

Vue isn’t a one man show. It has a sizable team behind it.

> essentially

And when compared to React, he's absolutely right.

Re: React is the new jQuery

#158
Vue is for enhancing web pages.. you can do applications, but they get very complex beyond small-mid sized apps.

React is made for building web-based applications. You can do small stuff with it, but it's often overkill.

Just because you can use a butter knife to turn a flathead screw, doesn't mean it's the right tool for the job. These days I might reach for Vue as a jQuery stand-in, but more likely, I'd use a smaller jQuery-like library, or just use straight vanilla JS, or other micro libraries. For anything big enough to deserve a build process React is absolutely my first choice.

Re: React is the new jQuery

#159

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

I know what a pain Prototype.js and others got to be... jQuery was a lot cleaner, though in retrospect, I wish they'd passed the context in as a property, instead of relying on "this", also wish they'd passed it as an already jQuery wrapped representation.
Post reply on HN