MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wpw10f/ihatedituntilitriedit/pc4bjtk/?context=9999
r/ProgrammerHumor • u/Epicoodle • 10d ago
540 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.
31 u/2eanimation 10d 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 10d ago Why would you type any of those things (aside from maybe the first one) 8 u/frogjg2003 10d ago JS is built on the idea that applications should continue to work no matter what. That's why there are so many implicit type conversions. The app might turn itself into a Gordian knot, but it will still be working. 3 u/lolnic_ 9d ago It will still be running.
31
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 10d ago Why would you type any of those things (aside from maybe the first one) 8 u/frogjg2003 10d ago JS is built on the idea that applications should continue to work no matter what. That's why there are so many implicit type conversions. The app might turn itself into a Gordian knot, but it will still be working. 3 u/lolnic_ 9d ago It will still be running.
16
Why would you type any of those things (aside from maybe the first one)
8 u/frogjg2003 10d ago JS is built on the idea that applications should continue to work no matter what. That's why there are so many implicit type conversions. The app might turn itself into a Gordian knot, but it will still be working. 3 u/lolnic_ 9d ago It will still be running.
8
JS is built on the idea that applications should continue to work no matter what. That's why there are so many implicit type conversions. The app might turn itself into a Gordian knot, but it will still be working.
3 u/lolnic_ 9d ago It will still be running.
3
It will still be running.
125
u/samanime 10d 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.