React is the new jQuery
141–150 of 206 posts
Re: React is the new jQuery
#142Earlier quoted context omitted.
Es2018 all the way. Web workers, classes, Isomorphic code, generators, async await, etc with a splash of Babel Devs have never been happier. Everything just works and online documentation is Rich and plentiful. Plus as I said, core logic works on both server and client and we have offline support as an added bonus.
No bundle but you use Babel? How does that work?
Re: React is the new jQuery
#143Earlier quoted context omitted.
>cant even name a similar piece of software in web development history that is as important as jQuery. Php?
Nah, there were always tons of alternatives to PHP. What real alternatives were there to jQuery? There were none.
Re: React is the new jQuery
#144> 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 would understand if comparing VueJS with jquey. Even if they are very different, the philosophy is the same: a small elegant easy to use versatil tool.
Re: React is the new jQuery
#145I am learning to code and a newbe. I think jQuery != react. I do not understand, why experienced people like to compare jQuery with react when both the lib have different goal ? And show that jQuery is bad. React can be used with jQuery for DOM manipulation. Described in react doc ( https://reactjs.org/docs/integrating-with-other-libraries.ht... ). Shall I learn jQuery at all ? Please, guide me.
The problems with jQuery is that it's mostly a set of functions to simplify Ajax and DOM manipulation so it's not really helpful for the structure of an application.
React (and other frameworks surch as Angular, Ember and Vue), on the other hand, helps you to build reusable component which helps a lot to scale.
Also jQuery's golden age was when browser compatibility was a big issue, nowaday, most browsers behave properly.
There's no harm in learning jQuery, its interface is way more intuitive than native DOM apis. It could be a good idea to try and build a simple app with jQuery and see what are the pain points and then compare with a modern framework.
Re: React is the new jQuery
#146Nitpicks aside, it seems to me that React/Vue are only/mainly useful for two-way data binding. If it's just one-way binding (i.e. JSON to template), then jQuery with something like Handlebars will be just fine. Correct me if I've misunderstood.
jQuery and the plain DOM are retained mode APIs. You manipulate stateful objects to achieve your goals. It is ok for simple interactions, but it quickly becomes unmanageable for more complex apps.
Re: React is the new jQuery
#147Earlier 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.
Re: React is the new jQuery
#148When 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.
Sorry for being terribly pedantic, but the "vanilla" version just does not do what the jQuery code does: - `this` might not be document - find might return multiple elements, not just one - if nothing matches, jQuery does not throw unlike the vanilla version I do understand it's just an example, but if you'd consider all the implicit cases the jQuery example covers, you'd end up with a lot more than a single line. I…
Re: React is the new jQuery
#149Earlier quoted context omitted.
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 that Javascript didn't just adopt the best parts of JQuery.