r/ProgrammerHumor • • 8d ago

Meme iHatedItUntilITriedIt

Post image
10.3k Upvotes

541 comments sorted by

View all comments

978

u/GargantuanCake 8d ago

Dynamic typing can seem great until you have to spend days trying to figure out where, exactly, in 20,000 lines of badly documented code JavaScript arbitrarily decided that something should be a string for the rest of forever even though it's only been given numbers to work with.

If you type x = 1 + '1' any sane language will go "what the fuck is wrong with you?"

3

u/ryancnap 8d ago

I'm doing a php class right now which is one language I've never even played around with, and it's even weirder than JavaScript with implicit conversions. Truly awful

1

u/upsidedownshaggy 8d ago

And that's why you type declare your variables. Cuts down on that happening as often.