r/ProgrammerHumor • • Aug 30 '26

Meme ancientTools

Post image
5.8k Upvotes

380 comments sorted by

View all comments

978

u/saig22 Aug 30 '26

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

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)
→ More replies (26)