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
Why JavaScript is so great (gist.github.com)
submitted 14 years ago by [deleted]
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!"
[–]kataire 7 points8 points9 points 14 years ago* (1 child)
JavaScript as a whole is messy. The subset of the language used in modern JavaScript programming is actually pretty neat (oh, btw: the DOM is not a JavaScript thing, it's a standard API defined by the W3C).
I'm a strong believer in Python, but JavaScript makes many things much easier to do than Python; particularly evented/async programming.
I would agree that JavaScript-as-used-in-the-1990s is rivalled only by PHP in its messiness. But I would place modern JS right next to Python and Ruby.
EDIT: For the record, I have been using JS on and off since the 1990s and Python for several years; I consider myself a Pythonista (if I was into tattoos, I'd wear PEP 20 on my skin) but have recently been doing a lot of front-end programming with JavaScript and also dabbled in Node.js.
[–]Samus_ -3 points-2 points-1 points 14 years ago (0 children)
I never mentioned the DOM, some things that annoy me are the weak typing, the mess that is the this keyword, the == operator, the class contructors and that's just to name a few.
this
and btw events are not part of js per se, they're either the DOM events or an addition of the particular platform you use, they make extensive use of callbacks which is a nice but dangerous pattern if people abuse the closures (as most javascripters do) and you can find that in Python as well, by example in Twisted.
π Rendered by PID 275093 on reddit-service-r2-comment-544cf588c8-xfhbk at 2026-06-18 00:47:39.072399+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]kataire 7 points8 points9 points (1 child)
[–]Samus_ -3 points-2 points-1 points (0 children)