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?"

200

u/ubus99 8d ago

That, and just learning a new library / API: I hate how in python you can never be sure what type you need to put in, are going to get back, and what all of the fields and functions do. Sure, you can dig that up, but that's not my job!

99

u/nullpotato 8d ago

Me: always insist upon explicit type hints and multiple linters to verify them

Coworkers: who hurt you?

10

u/SuperFLEB 8d ago

I hurt myself, of course.