News for hackers. Stuff that matters.
Re:Vanilla JavaScript by nickthemagicman on Thursday March 04, 2021 @02:31PM (#26347039)
To be fair vanilla jS was a NIGHTMARE a decade ago when it was the wild wild west of standards and every browser for itself.

To do anything required 20 lines of code testing for browser compatibility, and jquery took care of that.

Re:Vanilla JavaScript by tpetry on Thursday March 04, 2021 @02:41PM (#26347153)
Doing DOM modifications is still much more verbose than using jquery.
Re:Vanilla JavaScript by leerob on Thursday March 04, 2021 @03:23PM (#26347742)
Recently, there was a linked shared with a cheatsheet for modern JS that would replace needing to use jQuery. Does anyone have that link? Essentially a guide for building framework-less apps with vanilla JS.
Re:Vanilla JavaScript by mekster on Thursday March 04, 2021 @04:51PM (#26348928)
http://youmightnotneedjquery.com

I feel the site is being sarcastic how jQuery is easier to write than vanilla JS.

Re:Vanilla JavaScript by tengbretson on Thursday March 04, 2021 @03:25PM (#26347781)
Good grief. Tell me more about how wonderful Vanilla JavaScript's "Math" and "String" libraries are.
Re:Vanilla JavaScript by jrururufuf666 on Thursday March 04, 2021 @02:06PM (#26346682)
wow finally a framework i like