this post was submitted on 12 Mar 2024
78 points (87.5% liked)
Programming
17538 readers
143 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I wonder what’s the better API jQuery has compared to vanilla Js Tbf
Jquery is just shorthand, really -- unless things have changed in the last decade (which doesn't seem likely in the world of technology! /s), jquery is basically a way to stop writing
document. GetElementById()
andelement.classList.add()
over and over.Don't get me wrong, that shorthand was a valuable and unique addition to a tool set -- jQuery code was much easier to read and maintain than vanilla js, for sure. But I feel like now that websites usually have build steps, using jQuery involves a lot more effort than just not using it, that, with its kind of naive approach to DOM manipulation, is where the hate comes from, imo. It's probably still a great choice in a traditional LAMP stack build.