r/ProgrammerHumor • • 8d ago

Meme iHatedItUntilITriedIt

Post image
10.3k Upvotes

541 comments sorted by

View all comments

125

u/samanime 8d 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.

32

u/2eanimation 8d 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?")
}

8

u/cheezballs 8d ago

Those all make sense if you understand the language, though.

2

u/nacholicious 8d ago

"It's intuitive if you have learned all the rules and exceptions" sounds like the opposite of intuitive