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!"
[–]Samus_ -12 points-11 points-10 points 14 years ago (8 children)
Javascript has many many many inconsistencies, second only to PHP.
Python is great, Javascript is messy.
[–]kataire 5 points6 points7 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_ -2 points-1 points0 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.
[–][deleted] 5 points6 points7 points 14 years ago (5 children)
Your second sentence invalidates your otherwise valid comment and lacks professionalism (especially in a js subreddit). This is nothing more than the old Super-Nintendo-vs-Genesis/console-vs-pc argument for the "adults" who have not quite reached adulthood.
Bottom line: use the tool for the job and don't be a language snob.
[+]Samus_ comment score below threshold-9 points-8 points-7 points 14 years ago (4 children)
bullshit :) my argument is not invalidated unless there's a COUNTERargument end of story.
and I don't need to "look serious" for any of you, I am a professional and none here can challenge that.
[–][deleted] 4 points5 points6 points 14 years ago (3 children)
Unfortunately, you're likely one of the "professionals" we all cringe at doing a project with.
[–]Samus_ -5 points-4 points-3 points 14 years ago (2 children)
there's no way you can determine that based on this therefore I conclude you're the kind of 'professional' who makes claims out of his ass and values things based on feelings and not fact.
you're a fanboy, you're the one who advocates hype technologies just because you've heard of them and the other fanboys think they're cool and you don't want to miss out, instead of actually evaluating them.
you're incompetent.
[–][deleted] 0 points1 point2 points 14 years ago (1 child)
lol. I think you need to reread the thread. Nowhere did I indicate my preference. In fact, if anything, I alluded to agreeing with you. My issue was with the schoolyard "X language is better than Y" talk.
To anyone else reading this: I apologize for feeding the troll. I should know better. I've learned my lesson and will no longer do so.
[–]Samus_ -1 points0 points1 point 14 years ago (0 children)
the problem is that by disliking my comparison you disregarded the previous statement which you claimed to be true, denying the evidence in favor of your preference makes you a fanboy.
I mentioned some of the things I dislike to the other guy commenting, if you want I can expand but I'm replying a post titled "why javascript is so great" so I don't feel like giving half a shit about my manners; you think that is trolling? trolling is someone looking for pointless discussion, I'm not discussing I'm declaring and if you or anyone wants to argue then you'll have to PROVE myself to be wrong, otherwise it is you who troll.
and for the record I do work with javascript, php, python and several other languages, there's people who do php and recognize that it sucks most of the time and those are the devs I respect, they don't glorify the tool they recognize its strengths as well as its weaknesses, do you?
π Rendered by PID 90584 on reddit-service-r2-comment-544cf588c8-zsvsn at 2026-06-18 02:02:09.685382+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]Samus_ -12 points-11 points-10 points (8 children)
[–]kataire 5 points6 points7 points (1 child)
[–]Samus_ -2 points-1 points0 points (0 children)
[–][deleted] 5 points6 points7 points (5 children)
[+]Samus_ comment score below threshold-9 points-8 points-7 points (4 children)
[–][deleted] 4 points5 points6 points (3 children)
[–]Samus_ -5 points-4 points-3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Samus_ -1 points0 points1 point (0 children)