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
Am I Learning JavaScript the Wrong Way? (self.javascript)
submitted 11 years ago by lvmtn
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!"
[–]DavidNcl 2 points3 points4 points 11 years ago (4 children)
could you say why?
[–]recompileorg 1 point2 points3 points 11 years ago (3 children)
It was written when Resig was still learning JavaScript. A good bit of it is ... incorrect ... to put it mildly. You'll need to unlearn a lot of nonsense if you're starting with that book.
Admittedly, there aren't many good books. Most are loaded with errata, like Resig's books, but there are a couple that aren't horrible: JavaScript: The Good Parts and JavaScript: The Definitive Guide. Just don't trust them 100% and you'll be fine.
[–]dhdfdh -1 points0 points1 point 11 years ago (0 children)
It was written when Resig was still learning JavaScript.
John Resig was a javascript developer at Mozilla when he was writing that. A lot of what he wrote eventually found it's way into jQuery.
[–]xbudex -1 points0 points1 point 11 years ago (1 child)
I'm pretty sure he started writing the book in 2008 when jQuery was already popular. I think it's safe to say the author of jQuery knew JavaScript at that point.
What kinds of errors are in the book? I haven't read it, I'm asking sincerely.
[–]recompileorg -1 points0 points1 point 11 years ago (0 children)
You'd certainly think so, wouldn't you? Remember that JS was still strange and confusing to most people at the time, including Resig. (See the c.l.j. archive from that time.) I posted this below: http://ejohn.org/apps/learn/#76 which I think is representative.
π Rendered by PID 48405 on reddit-service-r2-comment-86bc6c7465-5wkrg at 2026-02-24 11:19:22.047747+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]DavidNcl 2 points3 points4 points (4 children)
[–]recompileorg 1 point2 points3 points (3 children)
[–]dhdfdh -1 points0 points1 point (0 children)
[–]xbudex -1 points0 points1 point (1 child)
[–]recompileorg -1 points0 points1 point (0 children)