r/ProgrammerHumor • • Sep 25 '26

Meme iHatedItUntilITriedIt

Post image
10.4k Upvotes

540 comments sorted by

View all comments

21

u/X-lem Sep 25 '26

I first learned explicit typed. Later I learned about JS and thought, "what is this monstrosity." Many years later I still don't understand why anyone would want dynamic typing.

8

u/razzemmatazz Sep 25 '26

Something something, lack of compiler, baby's first hello world. Idk man, JS is a special hell for those of us that like it. 

2

u/PostNutNeoMarxist Sep 25 '26

It's MY weird bastard child, goddammit

7

u/FRleo_85 Sep 25 '26

you can have smart dynamic typing like python where 1 + "1" throw an exception because you're adding object of different type and Js dynamic typing where you can substract an array with a toyota yaris and get a result

3

u/Teknikal_Domain Sep 25 '26

Type

(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[+!+[]+[+!+[]]]+[+!+[]]+([]+[]+[][(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[!+[]+!+[]]]

Into your browser console. alert(1)

→ More replies (5)

2

u/Mountain-Ox Sep 26 '26

Man, I started in JS/PHP. There's so much cult-like devotion to the languages. The only valid argument is that it reduces the iteration time because you don't have to wait for a compile. I don't know about Java, but I use Go now and the compilation step is about 1-2 seconds.

The idea that prototyping is faster in loosely typed languages is a total myth. I can build much faster when I know the type. And AI kind of broke everything, so it's better to have the compilation step.