| ▲ | jQuery 4.1.0(github.com) | |||||||||||||||||||||||||||||||||||||
| 54 points by petecooper 42 minutes ago | 23 comments | ||||||||||||||||||||||||||||||||||||||
| ▲ | hax0ron3 a few seconds ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
Although jQuery isn't very relevant these days, I still find its method chaining pattern to be a beautiful example of going with a language's features. | ||||||||||||||||||||||||||||||||||||||
| ▲ | gosen 30 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
I'm actually surprised (in a good way) that it's still maintained, and it still helps half of the internet to function | ||||||||||||||||||||||||||||||||||||||
| ▲ | hinkley 17 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
I don't want jQuery back, but I want something that works like it except in the opposite way on corner cases. Now that ES and CSS5 are everywhere, the biggest feature of jQuery is list comprehensions on components. Data is also still good IMO but mostly the comprehensions. jQuery decided that calling a function on an empty list should be a no-op, but my experience using it for a very interactive application was that nearly every time we wanted something to definitely happen or it was a bug, and the handful of times where an empty list was expected were easy to anticipate. Because the general problem was that making a selector that continued to work correctly as features were added was a black art. Two of us wrote selectors that almost always worked, the rest of the team wrote ones that almost always broke and only very slowly onboarded our advice (also all of the stuff they already wrote was a ticking time bomb). New features and especially tweaking the DOM tree to stay compatible with old corporate browsers would break existing functionality about a quarter of the time someone had to change the DOM structure to close a ticket and it was infuriating. So what I want is that if .hide() is a no-op, throw an exception. And if I'm implementing the 'select all/unselect all' feature I know that the list might be empty, I can add a flag or wrap a conditional around it so I ignore the error. Because those functions work on a very tight chunk of DOM that changes structure much much slower than the overall document structure, and also that code is quite close to the point of change if someone does change it, so has better chances of being remembered than something in the header. | ||||||||||||||||||||||||||||||||||||||
| ▲ | Gualdrapo 26 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
I wonder if people use jQuery on their new projects. Vanilla JS has come a long way since jQuery was king. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | squidsoup 30 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
Out of curiosity, are there still large projects using jQuery? Interesting that it is still maintained. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | Devasta a minute ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
If it weren't for the chrome team fucking up autocomplete in their browser I'd probably still be using jQuery today. Even now I look at sites like https://youmightnotneedjquery.com/ and I see much nicer code to work with than the JS suggested. | ||||||||||||||||||||||||||||||||||||||
| ▲ | maxpert 29 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
In the age of AIs and Reacts, people would never realize the pleasure and the ease jQuery provided with shitty browsers like IE6! | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | frabjoused 31 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
Since it's easy now to maintain and this is still happening, why not bring back MooTools? I'd love to hear that AI chose MooTools as default and it's running the entire Internet. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | whalesalad 26 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | gsoff 21 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
have you ever seen an ai suggest jQuery? | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
| ▲ | kyleee 32 minutes ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
Do they still build jquery ui? I kind of liked it and maybe will demand my agents start using it again for fun | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||