Ask HN: Learning Javascript & AJAX
Hey Everyone,
I've taken a class in javascript before, and I've been using mootools and JQuery for awhile - but I haven't really kept up with it enough to become a hand coder. Can anyone recommend any great books or online tutorials?
23 comments
[ 0.23 ms ] story [ 55.9 ms ] threadAs a side note, I attended a talk by him last night on this topic, and wrote up a summary. For a preview of the book, you may be interested in checking out http://www.felixcrux.com/posts/douglas-crockford-talk-waterl...
also heard an oreilly cookbook for js is coming out soon, may be worth looking into if youre into those.
As I was reading this book at the same time I set myself a goal to build a simple implementation of Lightbox without using Jquery or any framework. As I read more, the easier it became. So as you read, you might want to choose something to construct to practice and fully understand what you're reading.
A great continuation for it was Pro Javascript Techniques by John Resig.
At that point you stop, thank the deity of your choice for the existence of people who abstract away browser incompatibility so you don't have to worry about it, and move on to something else.
GWT may not be the solution for you if you aren't a Java guru, but if you are, it is a godsend if you need to develop ajax ria apps quickly and you don't want to learn (deal with) all the browser incompatibilities and js nuances.
Learning the former is good for you. jQuery will help you do that.
Learning the latter is actively bad for you. You're learning a technology that is already obsolete.
(Edit: I'd also recommend any time you need anything, look to see if it exists first regardless of how small it is. And http://www.w3schools.com/jsref/ will help you enormously.)
As far as AJAX, I'd recommend to just understand how it SHOULD work. Understand what the Xhrconn object you have should contain and what you should be able to retrieve from the "raw" object if you need to do so. Trying to understand where it fails in IE, Firefox, Safari, and Opera is overkill (there are so many little bugs!).
I think the JQuery website provides a great resource for learning and using it.
http://docs.jquery.com/Main_Page
http://www.reddit.com/comments/6y1km/ask_reddit_good_javascr...
http://www.reddit.com/r/programming/comments/9gy1e/askproggi...
http://www.reddit.com/r/programming/comments/8ptt5/ask_reddi...
usual suspects: Flanagan, "Good Parts" and Crockford's Videos, Resig, Harmes/Diaz...
I want to understand javascript better, so my implementations of mootools and JQuery tools could become more impressive.