Live data from Hacker News

Ask HN: How do I learn JavaScript?

news.ycombinator.com

81–90 of 128 posts

Re: Ask HN: How do I learn JavaScript?

#81

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...

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?

#82
post #55

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...

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

Fluent Python by Luciano Ramalho is very good.

Re: Ask HN: How do I learn JavaScript?

#84

A little side note; You could consider ClojureScript. I've worked with JavaScript many times through the years, and never felt that I got close to becoming an expert no matter what. The language it self is in the way. Browser compatibility, language weirdness (like the =, == or === mess) and there are a lot of standards around. But now a days working with ClojureScript, which settles the language problems, I get to f…

Unfortunately, when one is seeking to learn JavaScript, you will encounter all variations of: + Use Typescript (no, it's not the same as JS) + Use ClojureScript + Use Elm + Use Reason + Use ... If you go back about five years, you'll find this pattern also exists, except all the things people were saying to use are dead. Dead like a forgotten Egyptian pharaoh - buried and never to be seen again. Unfortunately, all th…

JavaScript is still alive not because it's worthy of being alive (compared to the four other languages you mentioned), but because it was first and became well entrenched. COBOL is still alive too...

ClojureScript and Reason are superior languages, period. They will live long happy lives, too.

Re: Ask HN: How do I learn JavaScript?

#85
post #22

A little side note; You could consider ClojureScript. I've worked with JavaScript many times through the years, and never felt that I got close to becoming an expert no matter what. The language it self is in the way. Browser compatibility, language weirdness (like the =, == or === mess) and there are a lot of standards around. But now a days working with ClojureScript, which settles the language problems, I get to f…

I would second this, CLojureScript is the first language that has made front end seem sane to me. Unfortunately your chances of getting a job doing ClojureScript is probably slim to none :(

There was a time when you couldn't get a job with Linux, and you couldn't convince a company to try Linux. So you snuck it in, and in some cases the company never knew (partly because it was so much more reliable than other options that it didn't crash nor reboot).

Sneak ClojureScript in. I know of one shop that trained its JavaScript engineers to use ClojureScript in two weeks. Quite frankly, if one is smart enough to write actual good, safe JavaScript, then one can definitely grok ClojureScript.

Re: Ask HN: How do I learn JavaScript?

#86
If you don't have much programming experience, you should start with The JavaScript Way (https://github.com/thejsway/thejsway), which was written with beginners in mind (disclaimer: i'm the main author). Then you should study the YDKJSY series like many others have said.

IMHO, Eloquent JavaScript is a great book but not really beginner-friendly. It's a solid choice if you are already proficient with another language.

Re: Ask HN: How do I learn JavaScript?

#87
> I believe this is possible (and maybe not even hard) as I only mean the language itself

Javascript doesn't exist in a vacuum, and focusing on becoming an expert on just the language is IMHO a misguided effort.

The language is a means to an end and the most useful bits are exactly in the API's that the runtime provide, be they the browser or something like node / react-native.

The advice I often give for "how do I learn ___" is find something you want to make, do what you need to do to arrive at the most basic version that you possible can, then iterate.

If you have someone who can help direct you when you get stuck, or can point out ways things can be vastly better with minimal effort that will be a real boon to your efforts.

Focusing on arcane corners of the language just isn't productive. If you have a mission, you can deal with those when they come up (which due to their arcane nature, will be rarely if at all).

Re: Ask HN: How do I learn JavaScript?

#89
[Eloquent Javascript](https://eloquentjavascript.net/) -- A general intro to JS/Programming.

[Javascript: The Good Parts](http://shop.oreilly.com/product/9780596517748.do) -- Once something makes it into Javascript, it's there forever. While this book only covers up to ES5, it creates a good foundation for things to use and things to avoid. This is especially relevant if you wind up working with older codebases.

[Exploring ES6](https://exploringjs.com/es6/) -- This book will take you from the ES5 land into the world of ES6 (ES 2015). It does NOT cover newer features from ES2016-ES2019, but only a couple of those are major updates.

[Javascript Allonge](https://leanpub.com/javascriptallongesix/read) -- A nice, soft introduction to functional JS concepts.

[You don't know JS](https://github.com/getify/You-Dont-Know-JS/blob/2nd-ed/READM...) -- an overview of the language feature by feature. I feel it's a bit too advanced for an introduction on quite a few things though.

I'd avoid Javascript: The Definitive Guide. It doesn't do a great job of distinguishing between the good and bad parts of the language and some examples aren't best practice anymore. Maybe they'll get around to creating a 7th edition one day that'll be worth reading. Likewise, I'd avoid reading the spec until you've worked with the language for a while. It's not light reading. I'd start with the 5.1 edition because it's much easier to approach (and much smaller at only around 250 pages). Once you've read that, it'll make reading the newer specs much easier (ES2019 spec is over 3x as long).

Re: Ask HN: How do I learn JavaScript?

#90
post #55

Earlier quoted context omitted.

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

Fluent Python by Luciano Ramalho is very good.

It has great GR reviews, thanks for the rec
Post reply on HN