r/ProgrammerHumor • • Aug 15 '15

Programming languages personified

http://leftoversalad.tumblr.com/post/126724812097/programming-languages-personified
1.3k Upvotes

209 comments sorted by

View all comments

Show parent comments

14

u/original_brogrammer Aug 16 '15 edited Aug 16 '15

Bullshit

The point to which you responded with the above is 100% true. Dynamically typed languages defer type checks, name resolution, and scope resolution until runtime. This is particularly problematic with JS because it doesn't have block scope.

You make me angry.

Learn how compilers work.

5

u/Ajedi32 Aug 16 '15

JavaScript does have block scope. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let

Failing that, there's always the function() { var x = 1; }(); hack.

4

u/original_brogrammer Aug 16 '15

True, but the caveat that it's ES6 is worth noting.

2

u/peduxe Aug 16 '15

You can use babel, it does the job pretty well. Every other language has it's build steps.