Live data from Hacker News

Ask HN: Best current book to learn JavaScript?

news.ycombinator.com

51–60 of 99 posts

Re: Ask HN: Best current book to learn JavaScript?

#51

The problem with this question is by the time I finish typing my answer, the JS world will have moved on to the next big thing

Yes, React will be baked into the browser, wasm will be supported widely and everyone will write JS in their favorite language. Not to mention JS will have threads.

Re: Ask HN: Best current book to learn JavaScript?

#53
And anti-answer: consider learning JavaScript from something other than a book. The publication cycle for conventional box is relatively long, relative to the pace of technology evolution.

By the time the author writes it, it's published, and you read it, the information can be dated, sometimes extremely so.

There are gobs of online resources, and the best resource is rarely mentioned: reading other peoples code.

Once you get a basic understanding, you can start right clicking on webpages, "inspect source", opening the console window, and looking at how pages actually work. The debugger and single stepping chrome are quite good.

Re: Ask HN: Best current book to learn JavaScript?

#55

Secrets of the JavaScript Ninja, Second Edition along with You Don't Know JS are always my two recommendations. The two together shore up the weaknesses in the other.

Ninja is the best mid-level book period. Little heavy to starr out with, I think.

Re: Ask HN: Best current book to learn JavaScript?

#58
post #53

And anti-answer: consider learning JavaScript from something other than a book. The publication cycle for conventional box is relatively long, relative to the pace of technology evolution. By the time the author writes it, it's published, and you read it, the information can be dated, sometimes extremely so. There are gobs of online resources, and the best resource is rarely mentioned: reading other peoples code. Onc…

Agree with most of your answer but your last point is pretty optimistic. Nowadays most Javascript is a bundled package of 100 minified npm modules.

Also there are many books online which don't need to go through the hoops you describe.

Re: Ask HN: Best current book to learn JavaScript?

#59
post #53

And anti-answer: consider learning JavaScript from something other than a book. The publication cycle for conventional box is relatively long, relative to the pace of technology evolution. By the time the author writes it, it's published, and you read it, the information can be dated, sometimes extremely so. There are gobs of online resources, and the best resource is rarely mentioned: reading other peoples code. Onc…

This is so true! Especially the part about reading other people's code. It seems boring and tedious, but it becomes eye-opening and really helps improve the quality of the code you write as well

Re: Ask HN: Best current book to learn JavaScript?

#60
post #53

And anti-answer: consider learning JavaScript from something other than a book. The publication cycle for conventional box is relatively long, relative to the pace of technology evolution. By the time the author writes it, it's published, and you read it, the information can be dated, sometimes extremely so. There are gobs of online resources, and the best resource is rarely mentioned: reading other peoples code. Onc…

Agree with most of your answer but your last point is pretty optimistic. Nowadays most Javascript is a bundled package of 100 minified npm modules. Also there are many books online which don't need to go through the hoops you describe.

If you visit a website owned by a company you're probably right. If you visit a little demo (like the type of thing someone would hack up in a day and put up on show HN) you'd be surprised by how much investigation you can do.

I agree that there are many books online though, and they can provide a lot of nice things like running code samples in your browser. However, I find video tutorials to provide a better experience than books, online or not. I suppose that's just a matter of personal preference though.

Post reply on HN