News for hackers. Stuff that matters.
Re:I loved jQuery, and still do (2019) by claviska on Tuesday June 29, 2021 @09:21PM (#27683864)
You can, and some JS consoles provide this for convenience if those vars are unused, but jQuery really shines with method chaining. That’s what I miss the most from it. You could manipulate the DOM in incredible ways in “one line” of code.
Re:I loved jQuery, and still do (2019) by hoten on Tuesday June 29, 2021 @10:28PM (#27684234)
FYI chaining and a handful of the most common operations can be implemented in just a few lines of code: https://gist.github.com/paulirish/12fb951a8b893a454b32

(Although I reach for the "cash" library instead of this or jQuery when I need something jQuery like)

Re:I loved jQuery, and still do (2019) by emodendroket on Tuesday June 29, 2021 @09:37PM (#27683931)
Depends what you want to do, but I've kind of come around because I feel like if what I want to do is so complicated that I can't easily do it in vanilla JS, it's also complicated enough that I don't necessarily want to do it by manual DOM manipulation. Changes the calculation if you have to support older browsers and such though.