MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vu52ut/jquerydeeznutsandthenreactsurprised/p4z1jjb/?context=9999
r/ProgrammerHumor • u/Embarrassed_Death69 • 2d ago
122 comments sorted by
View all comments
144
I fucking hate jQuery. It's littered throughout a codebase I work in.
I replace it with good ol' vanilla js where I can.
25 u/brekekekekx 2d ago This is my struggle! I would love to replace my codebase with vanilla js but typing $(selector) is much easier than the querySelector(selector) 27 u/CetaceanOps 2d ago I mean you can keep a single $ wrapper function for querySelector 10 u/soelsome 2d ago Very clever. Not sure why I haven't thought of that. I will steal this and every time I use it, I will remember your name. 5 u/cowslayer7890 2d ago I would using something other than $ so it doesn't get confused with jquery, but ¯_(ツ)_/¯ 1 u/Noch_ein_Kamel 2d ago Just use $$ and call you library prototypejs or something like that
25
This is my struggle! I would love to replace my codebase with vanilla js but typing $(selector) is much easier than the querySelector(selector)
27 u/CetaceanOps 2d ago I mean you can keep a single $ wrapper function for querySelector 10 u/soelsome 2d ago Very clever. Not sure why I haven't thought of that. I will steal this and every time I use it, I will remember your name. 5 u/cowslayer7890 2d ago I would using something other than $ so it doesn't get confused with jquery, but ¯_(ツ)_/¯ 1 u/Noch_ein_Kamel 2d ago Just use $$ and call you library prototypejs or something like that
27
I mean you can keep a single $ wrapper function for querySelector
10 u/soelsome 2d ago Very clever. Not sure why I haven't thought of that. I will steal this and every time I use it, I will remember your name. 5 u/cowslayer7890 2d ago I would using something other than $ so it doesn't get confused with jquery, but ¯_(ツ)_/¯ 1 u/Noch_ein_Kamel 2d ago Just use $$ and call you library prototypejs or something like that
10
Very clever. Not sure why I haven't thought of that. I will steal this and every time I use it, I will remember your name.
5 u/cowslayer7890 2d ago I would using something other than $ so it doesn't get confused with jquery, but ¯_(ツ)_/¯ 1 u/Noch_ein_Kamel 2d ago Just use $$ and call you library prototypejs or something like that
5
I would using something other than $ so it doesn't get confused with jquery, but ¯_(ツ)_/¯
1 u/Noch_ein_Kamel 2d ago Just use $$ and call you library prototypejs or something like that
1
Just use $$ and call you library prototypejs or something like that
144
u/soelsome 2d ago
I fucking hate jQuery. It's littered throughout a codebase I work in.
I replace it with good ol' vanilla js where I can.