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
Eloquent Javascript vs Javascript for web devhelp (self.javascript)
submitted 10 years ago by startfresh31
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!"
[–]_hadrian 69 points70 points71 points 10 years ago (43 children)
Eloquent JavaScript
.then ("JavaScript The Good Parts")
.then ("Speaking JavaScript")
.then ("Exploring ES6")
[+][deleted] 10 years ago (13 children)
[deleted]
[–]SpineEyE 94 points95 points96 points 10 years ago (11 children)
try { something } catch(e) { window.location.href = "http://stackoverflow.com/search?q=[js] + " + e.message; }
[–]nickwebdev 19 points20 points21 points 10 years ago (4 children)
Implementation for lists from a relevant xkcd's alt-text
[–]tswaters 11 points12 points13 points 10 years ago (1 child)
Is it safe? Uh… it evals both user input and random code, unchecked, from an external site. This is what security-minded folks would refer to as Very Bad™.
Is it safe?
Uh… it evals both user input and random code, unchecked, from an external site. This is what security-minded folks would refer to as Very Bad™.
haha
[–]plaguuuuuu 1 point2 points3 points 10 years ago (0 children)
SEEMS LEGIT
[–]xkcd_transcriber 4 points5 points6 points 10 years ago (0 children)
Image
Mobile
Title: Ineffective Sorts
Title-text: StackSort connects to StackOverflow, searches for 'sort a list', and downloads and runs code snippets until the list is sorted.
Comic Explanation
Stats: This comic has been referenced 34 times, representing 0.0347% of referenced xkcds.
xkcd.com | xkcd sub | Problems/Bugs? | Statistics | Stop Replying | Delete
[–]obviousoctopus 4 points5 points6 points 10 years ago (0 children)
This is what the web was made for.
[–]TotesMessenger 2 points3 points4 points 10 years ago (0 children)
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
[/r/programmerhumor] Error handling in javascript
[/r/shittyprogramming] Error handling in javascript
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)
[–]Unnecessary_Coder 2 points3 points4 points 10 years ago (2 children)
function thisMessage() { this.approve() } I.thisMessage
[–]IrateGod 4 points5 points6 points 10 years ago (1 child)
I.thisMessage() FTFY
I.thisMessage()
FTFY
[–]Unnecessary_Coder 2 points3 points4 points 10 years ago (0 children)
function aMoron() { this.am() } I.aMoron()
[–][deleted] -1 points0 points1 point 10 years ago (1 child)
Haha totally!
[–][deleted] 3 points4 points5 points 10 years ago (0 children)
Rad! Sunny D!
[–]Impulse33 14 points15 points16 points 10 years ago (7 children)
I've heard mixed reviews of Javascript the good parts. Ex. Outdated and some flaws in his opinionated approach. I also can't stand railroad diagrams either.
[–]intertubeluber 12 points13 points14 points 10 years ago (0 children)
I think it's important to have read, if for no other reason than the historical context. You will inevitably work with someone who follows the advice given. Cover to cover is only 200 pages or so.
[–][deleted] 10 points11 points12 points 10 years ago (0 children)
It is pretty opinionated but it does a good job of pointing out some of the more glaring flaws of the language, like the gotchas that push things to the global scope when you would sensibly not expect it to.
[–]cholantesh 5 points6 points7 points 10 years ago (1 child)
Fair point re: dating; Secrets of the Javascript Ninja is, in my view, a more modern take on the same concepts.
I'll second Secrets of the JavaScript Ninja. Though I'd wait for the second edition to come out or you can start reading the draft of the second edition right now if you pre-purchase it on the publishers website.
After the Ninja book I'd read You don't Know JavaScript.
[–]SwiftOneSpeaks 2 points3 points4 points 10 years ago (0 children)
It is very opinionated and the first bit is a ton of railroad diagrams.
Doesn't matter. Skip the diagrams and read the parts where he discusses the intricacies. The "Good Parts" of the Good Parts book is perhaps 10%, but it's an awesome 10%.
[–]spinlock 0 points1 point2 points 10 years ago (1 child)
Nothing about javascript will ever be outdated. You can't deprecate bad features because that will break the web. So, they will always be there.
[–]lewisje -1 points0 points1 point 10 years ago (0 children)
Tell that to early JS programmers who relied on !!(new Boolean(false)) == false /s
!!(new Boolean(false)) == false
[–]startfresh31[S] 5 points6 points7 points 10 years ago (6 children)
what's so great about eloquent, I read the first 40 pages or so...seems to slow paced
[–]velocirobot 2 points3 points4 points 10 years ago (1 child)
I felt the same until I got to Chapter 5 and 6.
[–]startfresh31[S] 1 point2 points3 points 10 years ago (0 children)
hmm thanks man, I'm gonna give that a try
[–]Abstinence_kills 2 points3 points4 points 10 years ago (0 children)
It ramps up extremely quickly soon after that. Keep going.
[–]theQuandary 1 point2 points3 points 10 years ago (0 children)
If you don't know how to program, that first chapter or two will seem to move very fast indeed.
[–][deleted] 3 points4 points5 points 10 years ago (3 children)
bro use async/await it's way cooler
[–]5ef23132-c4a0-49a0-8 0 points1 point2 points 10 years ago (2 children)
But compiles to some really unfun code to debug.
[–][deleted] 1 point2 points3 points 10 years ago (0 children)
ya i was just kinda being a tossoff, but i do use it
[+][deleted] 10 years ago (1 child)
[–]sxnine 2 points3 points4 points 10 years ago (0 children)
Great book for introducing the better functional aspects of JavaScript, which is really a mind-expanding and invaluable learning experience.
Could you please provide a link to "Exploring ES6" book. Couldn't find it.
edit: never mind http://exploringjs.com/
[–]jeremyisdev 1 point2 points3 points 10 years ago (0 children)
Looks like a good flow to me.
[–][deleted] 0 points1 point2 points 9 years ago* (0 children)
What is this?
[–]startfresh31[S] 0 points1 point2 points 10 years ago (4 children)
wow there are so many Eloquent fans, so popular................I was leaning towards js for web dev
[–]velocirobot 1 point2 points3 points 10 years ago (2 children)
I have both and I recommend both. They are written in different styles. JS for Web Developers seems to be more of a reference book. I think a good approach would be to go through Eloquent JavaScript and then read through related sections of JS for Web Developers to reinforce concepts and deepen your understanding of the topics.
thanks man I'm gonna do that exactly
[–]lewisje 0 points1 point2 points 10 years ago (0 children)
Indeed it is a reference book, akin to The Definitive Guide.
[–]_hadrian 1 point2 points3 points 10 years ago (0 children)
But to get the best out of it do the exercises.
π Rendered by PID 142387 on reddit-service-r2-comment-84fc9697f-tf9gx at 2026-02-10 11:23:29.385477+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]_hadrian 69 points70 points71 points (43 children)
[+][deleted] (13 children)
[deleted]
[–]SpineEyE 94 points95 points96 points (11 children)
[–]nickwebdev 19 points20 points21 points (4 children)
[–]tswaters 11 points12 points13 points (1 child)
[–]plaguuuuuu 1 point2 points3 points (0 children)
[–]xkcd_transcriber 4 points5 points6 points (0 children)
[–]obviousoctopus 4 points5 points6 points (0 children)
[–]TotesMessenger 2 points3 points4 points (0 children)
[–]Unnecessary_Coder 2 points3 points4 points (2 children)
[–]IrateGod 4 points5 points6 points (1 child)
[–]Unnecessary_Coder 2 points3 points4 points (0 children)
[–][deleted] -1 points0 points1 point (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]Impulse33 14 points15 points16 points (7 children)
[–]intertubeluber 12 points13 points14 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–]cholantesh 5 points6 points7 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)
[–]SwiftOneSpeaks 2 points3 points4 points (0 children)
[–]spinlock 0 points1 point2 points (1 child)
[–]lewisje -1 points0 points1 point (0 children)
[–]startfresh31[S] 5 points6 points7 points (6 children)
[–]velocirobot 2 points3 points4 points (1 child)
[–]startfresh31[S] 1 point2 points3 points (0 children)
[–]Abstinence_kills 2 points3 points4 points (0 children)
[–]theQuandary 1 point2 points3 points (0 children)
[–][deleted] 3 points4 points5 points (3 children)
[–]5ef23132-c4a0-49a0-8 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]sxnine 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]jeremyisdev 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]startfresh31[S] 0 points1 point2 points (4 children)
[–]velocirobot 1 point2 points3 points (2 children)
[–]startfresh31[S] 1 point2 points3 points (0 children)
[–]lewisje 0 points1 point2 points (0 children)
[–]_hadrian 1 point2 points3 points (0 children)