4 ms·
I still write applications where I don't need modern frameworks like Vue/React at all. jQuery is not an alternative to React or Vue. It's an alternative to van
by onion2k 8y ago
I still write applications where I don't need modern frameworks like Vue/React at all.
jQuery is not an alternative to React or Vue. It's an alternative to vanilla JS.
When you're writing something that doesn't obviously need everything a reactive app framework like React offers the question you need to be asking isn't "Do I need React or do I only need jQuery?", it's simply "Do I need jQuery?". These days, unless you need to support very old browsers, most of the time the jQuery code isn't that much simpler than writing plain old JS.
- neokantian 8y agoJQuery is an alternative to React or Vue. JQuery is philosophically another approach to solving the same problem. JQuery offers you functions to call without telling you how to write your program. JQuery is a philosophy about respect, and about not knowing better, because you actually know that you don't.
- petepete 8y agoAs is plain old JavaScript. React and Vue are geared towards solving a specific part of that problem. Without a very good reason, most developers shouldn't be trying to solve the problems Vue and React solve in jQuery/JS. Of course, some will want to and nothing's stopping them, but I wouldn't recommend it for _normal_ projects.
- onion2k 8y agoWithout a very good reason, most developers shouldn't be trying to solve the problems Vue and React solve in jQuery/JS. That's a much clearer way of explaining the point I was trying to make.
- tehbeard 8y ago> JQuery is a philosophy about respect, and about not knowing better, because you actually know that you don't. Advocating ignorance seems, I don't know... ignorant? The only sound argument for JQuery when not using react/vue/Ang. is the plugin ecosystem. Otherwise current browser techniques (document.querySelector/All, fetch, map/reduce/filter/some etc) with polyfills does a better job.
- chipsambos 8y agoThere are still a lot of extremely useful JQuery plugins and widgets with JQuery as a dependency.