News for hackers. Stuff that matters.
Re:JQuery 3.4.0 Released by onion2k on Thursday April 11, 2019 @03:36AM (#19631928)
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.

Re:JQuery 3.4.0 Released by chipsambos on Thursday April 11, 2019 @04:27AM (#19632095)
There are still a lot of extremely useful JQuery plugins and widgets with JQuery as a dependency.
Re:JQuery 3.4.0 Released by neokantian on Thursday April 11, 2019 @03:42AM (#19631946)
JQuery 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.
Re:JQuery 3.4.0 Released by petepete on Thursday April 11, 2019 @03:51AM (#19631982)
As 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.

Re:JQuery 3.4.0 Released by onion2k on Thursday April 11, 2019 @04:08AM (#19632024)
Without 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.

Re:JQuery 3.4.0 Released by tehbeard on Thursday April 11, 2019 @04:14AM (#19632042)
> 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.