4 ms·
I developed with jQuery for nearly a decade and I would disagree. No one who argues for this seems to remember the mess of jQuery dependencies in the form plug
by someothherguyy 1y ago
I developed with jQuery for nearly a decade and I would disagree.
No one who argues for this seems to remember the mess of jQuery dependencies in the form plugins people would include in projects, before HTTP/2, just to have some simple functionality like a carousel, transitions, submitting forms with AJAX (XHR), and so on. Many of those things are a few lines of code now, where they were sometimes hundreds of lines of code in the past when people developed this way.
The prototype pollution and general undefined behavior introduced by plugins was nearly impossible to track in projects where teams were plugin hungry.
Additionally, the spaghetti that existed where people would interweave on element event attributes (onclick, etc) with scripts lead to huge headaches debugging events before devtools in browsers was mature as it is today.
Honestly, I could go on forever.
Walk into a large project that is 15 years old and still using jQuery UI, and you might change your mind on the merit of its elegance.
jQuery was one of the nicest things around at a time when it was needed, but pining for this version of the past boggles my mind.
- ivape 1y agoJquery developers were just uneducated on structure. That's why the code was spaghetti. I would say your average Jquery developer didn't even know how to structure a well defined singleton: App = { } People are a lot more educated now. But you're right, we can't go backward, but there are many good things about Jquery that were mostly thrown out by Angular and React, and I think there's a middle-ground here somewhere. Anyways, not like it matters, AI has arrived.
- deleted 1y ago[deleted]