News for hackers. Stuff that matters.
Re:Ask HN: How do I learn JavaScript? by Jefro118 on Wednesday February 19, 2020 @05:56AM (#22364517)
Read the You Don't Know JS series [0] - this tackles much of what people with mediocre proficiency overlook. To go beyond that you would probably want to dive deep in to the ECMAScript specs [1] to really master the language. I don't think it will be that hard, just a slog.

[0] - https://github.com/getify/You-Dont-Know-JS

[1] - https://www.ecma-international.org/publications/standards/Ec...

Re:Ask HN: How do I learn JavaScript? by enumjorge on Wednesday February 19, 2020 @06:37AM (#22364704)
OP, this is the best answer to your question. Lots of other answers on this thread are either ignoring the part where you said you wanted to really master the language and recommending introductory JS materials, or, bizarrely, telling you to learn something else instead.

I don’t think you can master a language in one go. It’s not how most people’s brains work. I think you do it in stages. Get yourself a good introductory JS resource. The eloquent javascript book others posted looks good although I haven’t read it myself. Then read You Don’t Know JS. And then study the spec. Almost by definition the spec is the only thing that can give you a perfect and complete understanding the language. But don’t start there as a complete beginner is not its intended audience.

Be sure to apply what you learn from each book by working on projects. Don’t just read the books. The material won’t stick that way.

Re:Ask HN: How do I learn JavaScript? by RodgerTheGreat on Wednesday February 19, 2020 @08:46AM (#22365342)
Reading the spec will convey many useful details. If you truly want to master them, though, implement the spec and pass the conformance suite.

If Fabrice Bellard can do it, in C, with no dependencies, you can do it in whatever language you're already comfortable with, using the standard library. It's simply a matter of sustained effort and focus over time.

Re:Ask HN: How do I learn JavaScript? by mras0 on Wednesday February 19, 2020 @12:32PM (#22367756)
This is a good idea, but I'd be selective about it. There's a lot of tedious and uninteresting (IMO) stuff in there, like https://tc39.es/ecma262/#sec-array.prototype.splice or how unicode is handled in the source text.

But looking into the details of how object prototypes and properties really work is essential for getting a good grasp of the language.

Re:Ask HN: How do I learn JavaScript? by tlarkworthy on Wednesday February 19, 2020 @09:42AM (#22365788)
Yes I discovered so much unexpected combinations of features after implementing a Java parser. Totally pointless for actually writing Java though, so I question the motivation here. Just coz something is permitted in the language doesn't mean you should. I bet the corners of JavaScript are deep. Mastering them is a party trick, rather than something practical.
Re:Ask HN: How do I learn JavaScript? by xendipity on Wednesday February 19, 2020 @08:49AM (#22365361)
Agreed, the You Don't Know JS series is very good for solid fundamentals.

At some point, that knowledge can then be applied by learning more advanced language features such as implementing Proxies, Generators, and template literal functions.

To do so, some here are suggesting you read the language spec. I think Rau schmaer's series "Exploring ES6" [0] (and then ES7/8/9) is a great alternative to the actual spec. In those books he basically goes through the new features of each version of the language and does the deepest dive I've seen, with examples and references to the spec.

[0] - https://exploringjs.com/es6.html

Re:Ask HN: How do I learn JavaScript? by jkcchan on Wednesday February 19, 2020 @08:26AM (#22365201)
wow, I've never heard of the first resource but it's amazing so far. There should be a directory for these types of resources (I'm thinking of Why's Poignant Guide for Ruby, which also helped me a lot in the past.)
Re:Ask HN: How do I learn JavaScript? by logosmonkey on Wednesday February 19, 2020 @10:04AM (#22366022)
After about a year of building a few larger web apps to get my base working knowledge down I am competent and can build and understand most things. I started reading YDKJS earlier this month and I think it has been the single biggest knowledge accelerator for me. Really understanding core principles has illuminated so many gotchas I ran into over the course of the previous year.

I do believe you need to have worked in JS for a while before jumping into YDKJS though. Having hit some of the idiosyncrasies of the language in the real world makes the book a much richer learning experience.

Re:Ask HN: How do I learn JavaScript? by jacobpake on Wednesday February 19, 2020 @07:06PM (#22371534)
I’ve read this series twice whilst learning Javascript, once towards the start and again more recently. As others are saying, the lessons had a much greater impact after having some proper experience with the language.

The author, Kyle Simpson, has some really good video courses available online as well. He goes further in depth about some of the more interesting topics in YDKJS and is really able to sell some of his patterns.

Again, Kyle’s material was better digested after some practical experience with the language.

Re:Ask HN: How do I learn JavaScript? by Swtrz on Wednesday February 19, 2020 @08:48AM (#22365353)
Is there something like You Dont Know but for python? Im a sys eng thats been thrust into Python, I really enjoy the language but Im missing fundamentals
Re:Ask HN: How do I learn JavaScript? by oefrha on Wednesday February 19, 2020 @08:59AM (#22365436)
The official tutorial covers most of the fundamentals. https://docs.python.org/3/tutorial/index.html
Re:Ask HN: How do I learn JavaScript? by rhizome31 on Wednesday February 19, 2020 @10:05AM (#22366024)
Fluent Python by Luciano Ramalho is very good.
Re:Ask HN: How do I learn JavaScript? by Swtrz on Wednesday February 19, 2020 @10:32AM (#22366321)
It has great GR reviews, thanks for the rec