News for hackers. Stuff that matters.
Re:jQuery 3.6.0 by snemvalts on Tuesday March 02, 2021 @02:49PM (#26319646)
There's no need to complicate static sites with jQuery. All it does can be achieved with vanilla.
Re:jQuery 3.6.0 by cookingmyserver on Tuesday March 02, 2021 @03:02PM (#26319820)
Vanilla has always been able to do what jQuery can, otherwise jQuery wouldn't exist. It all depends on what your threshold for abstraction and verbosity is. That is going to depend on what you are doing and who you are.
Re:jQuery 3.6.0 by Turing_Machine on Tuesday March 02, 2021 @03:41PM (#26320351)
Exactly.

I mean, all you really need is a Turing Machine, but they're not very pleasant to program.

Same thing with vanilla JS and jQuery.

Re:jQuery 3.6.0 by colejohnson66 on Tuesday March 02, 2021 @03:21PM (#26320081)
> All it does can be achieved with vanilla.

Well, yes. Every JS library can be written in vanilla JS. The point of jQuery, React, etc. is to make it easier for the programmer to reason about what is going on while avoiding bugs.

Re:jQuery 3.6.0 by cphoover on Tuesday March 02, 2021 @02:54PM (#26319723)
I tend to agree, and unless you have to support like IE prior to IE9 it will probably easily support all of your target browsers.
Re:jQuery 3.6.0 by WhyCause on Tuesday March 02, 2021 @03:07PM (#26319888)
Promises aren't available in IE11, and as the last "true" IE, I imagine it'll be around a bit longer than it should be.

I recently had to rewrite a bunch of vanilla promise-based code to use jQuery promises once I realized IE11 didn't work.

Re:jQuery 3.6.0 by labster on Tuesday March 02, 2021 @03:10PM (#26319943)
As a competitive code golfer, I can confidently say that vanilla JS has never offered the raw performance of jQuery.