2 ms·
I remember getting into an argument with my boss in 2005 because I told him that I mainly used jQuery to avoid having to deal with browsers having entirely diff
by PaulHoule 3y ago
I remember getting into an argument with my boss in 2005 because I told him that I mainly used jQuery to avoid having to deal with browsers having entirely different APIs to do AJAX request and otherwise avoid learning all the details of Javascript that were different on different browsers.
That’s not necessary today because so much has been standardized. I find the CSS-selector based model to be appealing but you can get so many “spooky action at a distance” problems and it particularly drives me nuts in React applications where application state (not necessarily React state) can be manipulated both in React and also by jQuery behind React’s back.
People who are interested in declarative approaches are into HTMX and similar toolkits now.
- deleted 3y ago[deleted]
- StreamingCat 3y agoI think the css vs query selector debate really boils down to personal preference. Especially in combination with modern frontend frameworks, complex frontend libraries like jQuery can cause all sorts of chaos. I remember it breaking one of my personal projects a while back that was using AngularJS.
- dustymcp 3y agoWas it not abit of a sin to include jQuery in angularJS back then? It's been awhile :)