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…
Ask HN: Best current book to learn JavaScript?
81–90 of 99 posts
Re: Ask HN: Best current book to learn JavaScript?
#82And 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…
Re: Ask HN: Best current book to learn JavaScript?
#83Previous versions of Javascript make JS a mediocre language, while ES2016 makes it a pretty good and powerful one. So try to look for a tutorial that is very recent and focused on the latest javascript idioms.
I think that if you already know how to program in at least one of the following languages: C++/C#/Java/Python, you will learn Javascript in no time, no need for a book, to be honest.
Javascript is a very simple language, my recommendation would be to start as follows: 1. First learn how to create a JSON (javascript object notation) object 2. Then understand how to define a function (better if you do it the ES6 way, that is, using the "=>" operator), and how to call it. 3. Learn how to use lists and hashtables(dictionaries). 4. After this, learn how to use JSON objects, that is, how to access each member of a JSON object. This will be trivial after step (3). 5. Then, learn the simple logic constructs: if, for, etc. They are easy, really.
Now comes the slightly more difficult part. I'm assuming you want to try Node.js development.
6. Learn what is the Node.js "event loop". IN other words, the philosophy behind Node and why most operations are "asynchronous" in Node.js. Learn about callbacks. 7. Now learn about "Promises" and learn how to use "async" and "await" to consume Promises easily. In other words, to program using asynchronous functions with no sweat. 8. Learn "express.js" web framework. It is really easy.
And don't forget to take a look to the ES6 and ES7 features and make sure you take advantage of them:
Re: Ask HN: Best current book to learn JavaScript?
#84And 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.
However Javascript (in its current ES7 version) is a pretty good language.
Re: Ask HN: Best current book to learn JavaScript?
#85Earlier quoted context omitted.
I'm learning Javascript. I can safely say im comfortable with most fundemental programming concepts...then the book starts talking about recursive functions. Suffice to say once I hit that section I went back to codeacademy finished the course (which never brought them up and I'm not sure if that's good or bad) now I'm back in Eloquent Javascript...it get's really hard really fast.
Not having any real experience with JS programming, is this talking about privately named functions (e.g. var MyFunction = function MyHiddenName (blah){}) or was this not being familiar with recursion? Or is there something else funky in JS that I just don't know about?
The examples in Eloquent Javascript need to be studied by the reader to get the most out of that book. I think people just glance at them with out typing them up and running them.
Re: Ask HN: Best current book to learn JavaScript?
#86You don't know JS is a good book to start with and explains ES6 too. It is available for free on github so you can evaluate before buying. https://github.com/getify/You-Dont-Know-JS
I wish more authors would publish the markdown or asciidoc. I'd pay for it.
Re: Ask HN: Best current book to learn JavaScript?
#87https://github.com/MostlyAdequate/mostly-adequate-guide
Re: Ask HN: Best current book to learn JavaScript?
#88It only focuses on the concepts that make Javascript different from (let's say) Java.
Note: this is a pre-ES6 book.
[1]: http://www.javascriptenlightenment.com/JavaScript_Enlightenm...
Re: Ask HN: Best current book to learn JavaScript?
#89javascript : good parts - https://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockfo...
Re: Ask HN: Best current book to learn JavaScript?
#90And 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…
I generally agree with this. When it comes to languages and implementations it's often better to just learn by doing/hopping around little blogs and documentation here and there. As you said, technology evolves too quickly for authors to keep up. That being said, there are some pretty fundamental abstract concepts behind all forms of programming that have stuck around for a long time: those old comp sci course materi…
Having said that it is a good idea to learn about these early and keep them in mind. Sadly there isn't a good definitive list of JS' idiosyncrasy that I know of.