Live data from Hacker News

Learn JavaScript

stackoverflow.com

21–30 of 30 posts

Re: Learn JavaScript

#21

1-write lots of jQuery code. It has a dead simple api; hides most of the ugliness of the language; it slowly introduces you to closures (as opposed to Crockford, who loves them) 2-once you have that, then read Crockford

Here's a javascript + jQuery resource: http://jqfundamentals.com/book/

Re: Learn JavaScript

#22

I have always wondered–is there an obvious/definitive JavaScript reference site like http://php.net/manual , http://ruby-doc.org , etc.? Is it the mozilla site?

The best JavaScript reference is almost certainly the Mozilla docs: https://developer.mozilla.org/en/JavaScript

Re: Learn JavaScript

#25
post #3

Does anybody have a link to some good JavaScript exercises? One answer is "why don't you just try building something" but I personally learn better from progressing through exercises versus doing the "just build anything" or watching videos.

I am but an egg, but . . .

"Test Driven JavaScript Development", Chris Johansen, might serve. Not many exercises, but it walks through some of the core JavaScript principles, using tests as a learning / exploring device. "Here's a test showing how the > keyword works."

It also walks through several examples of test driven development, touching on design principles as it goes. It does a great job of walking through the practicalities forcing some design choices, and the implications of the alternatives.

I came away from this with a much better grasp of JavaScript, development process, and design principles generally. I don't think I've gotten more from any single book.

But I'm a newbie still trying to learn these things. More experienced folks may find the book tiresome.

Re: Learn JavaScript

#26

Best way to learn javascript is to type CTRL+SHIFT+I(in chrome I think its f12 in others) and look at the code. Chrome will even de-obfuscate it for you automatically. Step through the code, maybe write some script in the console, go through some resig tutorials. I really liked looking at the underscore.js literate source but thats a little more theoretical than practical. Also if you are just learning javascript you…

For the record, the dev version (at least) of chrome will now open developer tools with the F12 shortcut, meaning F12 now works in Chrome/FF/IE9

Re: Learn JavaScript

#27
post #20

1-write lots of jQuery code. It has a dead simple api; hides most of the ugliness of the language; it slowly introduces you to closures (as opposed to Crockford, who loves them) 2-once you have that, then read Crockford

Please don't give out advice like this. I'm really fed up with having to deprogramme people who've written too much jQuery and don't actually know JavaScript, or worse, barely realise that there is such a language. I appreciate that your suggestion is to learn jQuery and then go through a language reference, not to stop once you've done the jQuery bit, but trust me, that's just what most people will do. jQuery is a v…

I didn't say stop at jquery. But I do think its the easiest introduction to the language for someone with no functional background. If they stop there, that's they're fault. Once they learn an easy subset, its much easier to transition into the intermediate to advanced parts of the language. Regardless of programming language, if someone stops learning as soon as they can write a functional script, they're a bad dev.

Re: Learn JavaScript

#28

I have always wondered–is there an obvious/definitive JavaScript reference site like http://php.net/manual , http://ruby-doc.org , etc.? Is it the mozilla site?

The ECMAScript standard is very heavy, and doesn't have all the DOM/BOM stuff, but I've found it an indispensible resource.

Re: Learn JavaScript

#29
post #3

Does anybody have a link to some good JavaScript exercises? One answer is "why don't you just try building something" but I personally learn better from progressing through exercises versus doing the "just build anything" or watching videos.

I just put up an interactive javascript tutorial. It starts simple then builds up to passing around functions, closures, continuations. Give it a try and let me know what you think. http://nathansjslessons.appspot.com/

Nathan, great tutorial! This is why I love HN. It reminds me of some of the interactive Ruby tutorials I've done. You've really got something going here.
Post reply on HN