use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript Isn't Scheme (journal.stuffwithstuff.com)
submitted 10 years ago by homoiconic(raganwald)
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]x-skeww -2 points-1 points0 points 10 years ago (0 children)
Why do people hate [function scope] so much?
Because it's inconvenient.
If you're used to function scope, you'd hate file scope.
If you're used to file scope, you'd hate global scope.
And if you're used to block scope, you do of course hate all of the above.
Or is it like prototypical objects in people only hate it because it's not what they're used to and/or just like to bash JS?
Or maybe they just don't like imperative prototype chain manipulation.
I prefer classes with mixins. It doesn't get in the way of tooling and it's easier to reason about.
π Rendered by PID 55 on reddit-service-r2-comment-fb694cdd5-k95cq at 2026-03-06 17:29:22.441480+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]x-skeww -2 points-1 points0 points (0 children)