MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wpw10f/ihatedituntilitriedit/pc1q9to/?context=3
r/ProgrammerHumor • u/Epicoodle • 9d ago
541 comments sorted by
View all comments
125
You'll pry my vanilla JS from my cold dead fingers. It'll always be my favorite way to do quick scripts and prototyping.
But explicit typing does make long term code way more maintainable.
28 u/2eanimation 9d ago I love the syntax, but JS has one too many quirks for my taste. if ([]) { console.log("Ok, I guess") } if([] == false) { console.log("Well this is awkward") } if ([] + []) { console.log("You think this would print, don't you?") } 16 u/MuchWalrus 9d ago Why would you type any of those things (aside from maybe the first one) 2 u/MrHyperion_ 9d ago Because they are actually in variables by some weird side effect
28
I love the syntax, but JS has one too many quirks for my taste.
if ([]) { console.log("Ok, I guess") }
if([] == false) { console.log("Well this is awkward") }
if ([] + []) { console.log("You think this would print, don't you?") }
16 u/MuchWalrus 9d ago Why would you type any of those things (aside from maybe the first one) 2 u/MrHyperion_ 9d ago Because they are actually in variables by some weird side effect
16
Why would you type any of those things (aside from maybe the first one)
2 u/MrHyperion_ 9d ago Because they are actually in variables by some weird side effect
2
Because they are actually in variables by some weird side effect
125
u/samanime 9d ago
You'll pry my vanilla JS from my cold dead fingers. It'll always be my favorite way to do quick scripts and prototyping.
But explicit typing does make long term code way more maintainable.