News for hackers. Stuff that matters.
Re:JQuery 3.4.0 Released by BilalBudhani on Thursday April 11, 2019 @03:18AM (#19631863)
I still write applications where I don't need modern frameworks like Vue/React at all. These apps follow traditional framework generating HTML, it makes so much sense to just add jQuery to enhance the user experience by sprinkling JS snippets.

I believe there is a use case of every technology. There are use cases where React/Vue makes sense, similarly, there are still use cases where jQuery can be useful.

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.

Re:JQuery 3.4.0 Released by pier25 on Thursday April 11, 2019 @01:56PM (#19637324)
I've found that I generally prefer using Vue when sprinkling JS snippets over static or server rendered HTML.

Vue is definitely lighter than jQuery, and the reactive model with components tends to work better. Also you don't need any building process (Babel, Webpack, etc) unlike React. You can perfectly write your templates in the DOM.

That said, for some use cases I still prefer using vanilla or a Cash (a jQuery replacement).