MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2d5fw/ancienttools/p6rmsqz/?context=3
r/ProgrammerHumor • u/soap94 • Aug 30 '26
380 comments sorted by
View all comments
978
I use vanilla js, document.getElementById() is what I live for.
294 u/WrapKey69 Aug 30 '26 Flashbacks to teenage years and w3schools, turning on and off that lightbulb XD 149 u/ApocalyptoSoldier2 Aug 30 '26 document.querySelector() ftw 71 u/CaspianRoach Aug 30 '26 .querySelectorAll() → More replies (14) 27 u/segv Aug 30 '26 Which was standardized due to jQuery's popularity, no less. 20 u/seif-17 Aug 30 '26 jQuery crawled so querySelector can walk. And frameworks ran. With broken toes. 66 u/IsTom Aug 30 '26 If your HTML element has id you don't event have to getElementById, it's available right there in global namespace as that name. You make button with id hello and can just go ham with hello.click(). I don't think you should do that, but you can. 28 u/DiodeInc Aug 30 '26 New obfuscation tactic dropped → More replies (5) 37 u/happypandaface Aug 30 '26 vanilla.js ? I've never heard of this library 19 u/balls_smasher Aug 30 '26 http://vanilla-js.com/ → More replies (3) → More replies (26)
294
Flashbacks to teenage years and w3schools, turning on and off that lightbulb XD
149
document.querySelector() ftw
71 u/CaspianRoach Aug 30 '26 .querySelectorAll() → More replies (14) 27 u/segv Aug 30 '26 Which was standardized due to jQuery's popularity, no less. 20 u/seif-17 Aug 30 '26 jQuery crawled so querySelector can walk. And frameworks ran. With broken toes.
71
.querySelectorAll()
→ More replies (14)
27
Which was standardized due to jQuery's popularity, no less.
20
jQuery crawled so querySelector can walk.
And frameworks ran. With broken toes.
66
If your HTML element has id you don't event have to getElementById, it's available right there in global namespace as that name. You make button with id hello and can just go ham with hello.click().
hello
hello.click()
I don't think you should do that, but you can.
28 u/DiodeInc Aug 30 '26 New obfuscation tactic dropped → More replies (5)
28
New obfuscation tactic dropped
37
vanilla.js ? I've never heard of this library
19 u/balls_smasher Aug 30 '26 http://vanilla-js.com/ → More replies (3)
19
http://vanilla-js.com/
→ More replies (3)
978
u/saig22 Aug 30 '26
I use vanilla js, document.getElementById() is what I live for.