News for hackers. Stuff that matters.
Re:Web Components Will Outlive Your JavaScript Framework by Devasta on Wednesday October 25, 2023 @10:58AM (#38013523)
And jQuery will likely outlive both.
Re:Web Components Will Outlive Your JavaScript Framework by recursivedoubts on Wednesday October 25, 2023 @11:05AM (#38013608)
as i pass through my incarnations in every conference & youtube vid,

i make my proper prostrations to the gods of the hot new thing

peering through reverent fingers I watch them flourish and fall,

and silent old jquery, I notice, outlast them all

Re:Web Components Will Outlive Your JavaScript Framework by joelfried on Wednesday October 25, 2023 @11:24AM (#38013785)
Selecting an element right from the DOM,

With syntax so simple (and not a fork bomb),

No matter the changes in chorus and verse,

Every new framework . . . will make it all worse.

Within your questions and inner for loop,

Is readable syntax (not alphabet soup),

Give up on your promises, avoid callback hell,

Just keep using jQuery - I promise, it's swell!

Re:Web Components Will Outlive Your JavaScript Framework by klysm on Wednesday October 25, 2023 @12:23PM (#38014452)
I wouldn't really consider it alive in the grand scheme of things.
Re:Web Components Will Outlive Your JavaScript Framework by caseyohara on Wednesday October 25, 2023 @01:15PM (#38015267)
According to https://w3techs.com/technologies/details/js-jquery:

> jQuery is used by 94.5% of all the websites whose JavaScript library we know. This is 77.5% of all websites.

This appears to be current data too (Oct 2023). I'm not sure how reliable the data is, but it is congruent with my experience that _a lot_ of websites still use jQuery. It's easy to forget the HN crowd is also in a bubble. If you only read articles here, you'd think everyone is using the latest JS framework du jour, but lots of the web still runs on PHP and jQuery.

Re:Web Components Will Outlive Your JavaScript Framework by Kiala on Wednesday October 25, 2023 @02:26PM (#38016354)
Not that surprising actually, since jQuery is bundled with WordPress.
Re:Web Components Will Outlive Your JavaScript Framework by klysm on Wednesday October 25, 2023 @02:35PM (#38016504)
yes, but why on earth would you pick it for something greenfield? The only justification I could see is it being a tool you are personally familiar with.
Re:Web Components Will Outlive Your JavaScript Framework by morbicer on Wednesday October 25, 2023 @12:34PM (#38014641)
Maybe COBOL as well. That doesn't mean I want to use it in my day-to-day life.

Washboards might outlive washing machines but I still prefer the latter to do my laundry.