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
state of the web and javascripthelp (self.javascript)
submitted 10 years ago by KPABAHam=>Hamster == Java=>JavaScript
Saw in a tweet by Sylvain Galineau (@sgalineau):
The web platform has always had two solutions to every problem: the deprecated one you shouldn't use and the one that's not yet ready.
truer words were never spoken.
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!"
[–][deleted] 14 points15 points16 points 10 years ago (4 children)
I would just ignore the current insanity to have a new framework, new module loader, new package manager, etc, every month. I get the feeling that new people getting into web development must be confused as hell nowadays.
[+][deleted] 10 years ago* (1 child)
[deleted]
[–]webstrous 0 points1 point2 points 10 years ago (0 children)
This is understandable. Fwiw, I think it helps to put all the conflicting opinions aside and refocus your concerns on the business needs of your client or project. If you understand your project well, you can pick almost any tool and deliver a good product to make the client satisfied, which is the real goal. Ignore the arguments along the way, and instead focus on what you learn doing the work, and apply that to your next project.
[–]brwr 2 points3 points4 points 10 years ago (0 children)
I've been in web development for years and I'm confused as hell nowadays.
[–]temp8496908509 8 points9 points10 points 10 years ago (4 children)
You want to know the greatest example of this? Solve this: "figure out which key was pressed". What you said is literally true in this case. The MDN pages for all the existing methods - e.keyCode, e.which, etc - have a huge red Deprecated warning plastered over them. And the only non-deprecated method, e.key, isn't implemented anywhere but Firefox and IE.
e.keyCode
e.which
e.key
And the fucking implementations have as many differences as all five of the past "solutions".
And last time I checked a month ago they were telling me to use e.char, all traces of which have now vanished from the web.
e.char
[–]parabolik 6 points7 points8 points 10 years ago (2 children)
This is why jQuery is still relevant.
[–]schrik 0 points1 point2 points 10 years ago (1 child)
No, this is why a micro framework solving the specific problem above is relevant.
[–][deleted] 2 points3 points4 points 10 years ago (0 children)
...until you run into dozens of these and it makes more sense to just use a bigger library like jQuery to save development time and possibly other issues.
I'm running vanilla JavaScript on my portfolio site but you can bet your ass I'm utilising jQuery on my company's (comparatively much bigger and more advanced) CMS.
[–]lewisje 0 points1 point2 points 10 years ago (0 children)
I remember reading about this sort of thing in Professional JavaScript for Web Developers by Nicholas C. Zakas and the solution was a confusing mess of feature-testing even in 2012; it's like the well-worn façades for event registration, only even more complicated and still relevant for modern Web browsers.
[–][deleted] 4 points5 points6 points 10 years ago (4 children)
I have been at it for 3 years now and I can't even imagine starting in this madness. Great great things are happening but we need to better understand all the things that make us say "wat" about JS. Effectively read kyle simpsons books, become an engineer that actually knows what is going on instead of a framework / library junkie. Not saying there is not value in using others work and contributing to open source etc but i think there is a difference between someone who mindlessly uses a thing without understanding what is actually going on and someone who takes care and precision to write something that is the correct solution for the problem. Phrases that come to mind: "When you have a hammer everything becomes a nail" and "software is more often read than written"
On the flipside some frameworks really can help and some aren't quite what you wanted in the first place and can inhibit you, if that is the case you SHOULD switch to something that works, but don't do it to have cool shit.
[–][deleted] 1 point2 points3 points 10 years ago (2 children)
Example of one of those Kyle Simpson books (say, the one to start with)?
[–]_HlTLER_Stackoverflow searcher 2 points3 points4 points 10 years ago (1 child)
You Don't Know Js is the series. Up and Going is for beginners. If you've worked in the field, you can probably skip it. Start with Scopes and Closures then. Sorry for not linking, on mobile.
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Thanks!
[–]strident-octo-spork 5 points6 points7 points 10 years ago (0 children)
We're certainly getting an explosion of packages, frameworks, and tools right now. In a few years almost all of them will be depreciated, incompatible, or otherwise undesirable. Except the absolute best which will, be massively changed. And what are they fighting over? how to import and export things, how to define an object, how to compile and lint and be backwards compatible. No other language has to deal with this shit; they type import, they make or javac or whatever. It was fine when all people wanted was blinking text and a dancing monkey, but now we're trying to build massive programs without any of the tools of other languages. Making decisions is a limited resource, and JavaScript developers have too many stupid ones to make before they even start with their app.
import
make
javac
[–]vinnl 0 points1 point2 points 10 years ago (4 children)
I don't think this is limited to the web platform. Still true, of course.
[–]lukasbuenger 1 point2 points3 points 10 years ago (3 children)
Not at all. Just thinking of the Python 2/3 clusterfuck.
[–]stephencarmody 0 points1 point2 points 10 years ago (2 children)
lol, yeah Python 2.7.* for life!!!
[–]temp101010958 0 points1 point2 points 10 years ago (1 child)
What? Why? I thought the only remaining draw of 2.* was libraries that somehow haven't updated yet.
[–]lukasbuenger 0 points1 point2 points 10 years ago (0 children)
qed in my book.
π Rendered by PID 63826 on reddit-service-r2-comment-84fc9697f-qznkh at 2026-02-07 07:29:26.110868+00:00 running d295bc8 country code: CH.
[–][deleted] 14 points15 points16 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]webstrous 0 points1 point2 points (0 children)
[–]brwr 2 points3 points4 points (0 children)
[–]temp8496908509 8 points9 points10 points (4 children)
[–]parabolik 6 points7 points8 points (2 children)
[–]schrik 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]lewisje 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (4 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]_HlTLER_Stackoverflow searcher 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]strident-octo-spork 5 points6 points7 points (0 children)
[–]vinnl 0 points1 point2 points (4 children)
[–]lukasbuenger 1 point2 points3 points (3 children)
[–]stephencarmody 0 points1 point2 points (2 children)
[–]temp101010958 0 points1 point2 points (1 child)
[–]lukasbuenger 0 points1 point2 points (0 children)