The best way to learn java script


Published on

Published in: Technology, Design
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

The best way to learn java script

  1. 1. The Best Way to Learn JavaScript
  2. 2. <ul><li> </li></ul>
  3. 3. <ul><li>Learning something new is scary. For me, the biggest issue with picking up a new skill is that I don’t know what I don’t know. Given that, it’s often useful to find a plan for learning whatever you’re interested in. </li></ul>
  4. 4. <ul><li>That’s what this post is: your blueprint, your roadmap, your plan of action for learning JavaScript! You don’t have to worry about finding the best resources, sorting out the bad ones, and figuring out what to learn next. It’s all here. </li></ul>
  5. 5. Assignment 0: Understand what JavaScript Is and Isn’t
  6. 6. <ul><li>JavaScript is the language of the browser (not exclusively these days, though). </li></ul><ul><li>It’s primary purpose is to add interactivity to an otherwise static page. </li></ul><ul><li>In the browser, it’s not going to replace PHP or Ruby for you. </li></ul><ul><li>It’s not even going to replace your HTML or CSS; you’ll use it in conjunction to them.  </li></ul>
  7. 7. <ul><li>you’ve heard about jQuery, which is probably the most widely-used JavaScript library. Or maybe you’ve heard about one of the other popular JavaScript frameworks, like Mootools, YUI, Dojo, and others.  </li></ul><ul><li>Consider them a collection of JavaScript helper utilities </li></ul>
  8. 8. Assignment 1: Work Through the Courses at
  9. 9. <ul><li>Codecademy  is a relatively new website that bills itself as “the easiest way to learn how to code.” </li></ul>
  10. 10. Assignment 2: AppendTo’s  Screencasts
  11. 11. <ul><li> </li></ul>
  12. 12. Assignment 3: Read A Good JavaScript Introduction
  13. 13. <ul><li>A Re-introduction to JavaScript  – This introduction is on the Mozilla Developers Network, and certainly does the language justice. It’s a dense work, with almost as many code examples as paragraphs. </li></ul><ul><li>Eloquent JavaScript  – This book, by Marijn Haverbeke, is available freely online, but you can also get it on Amazon if you’d like a hard copy. It goes beyond the MDN intro, because it covers not only the JavaScript language, but also coding style and using JavaScript in the browser. Also, “eloquent” isn’t an overstatement. </li></ul><ul><li>Getting Good with JavaScript  – Okay, yes, this is my own book, but there’s another reason I’m including it here. It’s really pretty different from the other two intros I’ve listed here; I only cover what you’ll need to know to get up and running as quickly as possible. Also, it comes with over 6 hours of screencasts, so if that you’re thing, check it out. (And yes, this one costs.) </li></ul>
  14. 14. Assignment 4: Install and Learn Firebug (or the Developer Tools)
  15. 15. <ul><li>Firebug </li></ul><ul><ul><li>Firebug website and wiki </li></ul></ul><ul><ul><li>Introduction to Firebug  on  CSS-Tricks </li></ul></ul><ul><ul><li>10 Reasons Why You Should Be Using Firebug  here on Nettuts+. </li></ul></ul><ul><ul><li>Firebug: White to Black Belt  by me, on the Tuts+ Marketplace. </li></ul></ul><ul><li>Developer Tools </li></ul><ul><ul><li>Developer tools website </li></ul></ul><ul><ul><li>Google I/O 2011: Chrome Dev Tools Reloaded  by Paul Irish </li></ul></ul><ul><ul><li>Google Chrome Developer Tools: 12 Tricks to Develop Quicker  by Paul Irish </li></ul></ul>
  16. 16. Assignment 5: Read a Book
  17. 17. <ul><li>Professional JavaScript for Web Developers  – Written by Nicolas C. Zakas, this book could hardly cover more than it does. If you’ve seen any of Zakas’ work before, you’ll know he’s incredibly thorough. Besides covering the JavaScript language, this book will give you a good handle on using JavaScript in the browser. </li></ul><ul><li>JavaScript 24-hour Trainer  – This awesome resource was put together by  Jeremy McPeak , who writes for Nettuts+ as well. It’s not just a book: it comes with over 4 hours of video tutorials on DVD. There are 43 lessons, covering everything from syntax to coding guidelines and code optimization. </li></ul><ul><li>JavaScript Patterns  – Written by Stoyan Stefanov. I just finished reading this book, and, boy, do I wish I had read it sooner. After reading the resources above, you’ll know how to write JavaScript, but this book will teach you how to organize it, an important skill that isn’t as common as you’d think. </li></ul><ul><li>JavaScript: The Good Parts  – Written by Douglas Crockford. This little gem will explain what’s good and what’s bad about the JavaScript language. </li></ul>
  18. 18. Assignment 6: Build Something!
  19. 19. <ul><li>A Photo Gallery : Display a set of photo thumbnails and a main photo. When a user clicks a thumbnail, have the larger version of the thumbnail (not the thumbnail itself) replace the current main photo. Bonus points if you can overlay a caption coming from the thumbnail alt tag, or loop through the photos if the user hasn’t clicked one for a minute. </li></ul><ul><li>A To-do List : This might sound tougher than it is; but I’m not suggesting you build a full-fledged to-do application. Just have a text box with a button beside it; when you click the button, the entered text becomes an item in an unordered list below. Clicking on a list item removes it. It sounds simple enough, but there are several gotchas that it will be good for you to think about as a beginner. </li></ul><ul><li>An Animating Box : Animation is always tricky, but it doesn’t have to be complex. Have a div with some text in it, and several buttons above. One button can adjust the width; one, the height; and one, the background colour. The key is not to have the changes happen immediately, but over the course of, say, a second. Remember, Google is your friend, especially if you haven’t done any animation in JavaScript thus far. </li></ul>
  20. 20. Assignment 7:Begin Learning a JavaScript Library
  21. 21. <ul><li>jQuery </li></ul><ul><li>Dojo </li></ul><ul><li>YUI </li></ul><ul><li>MooTools </li></ul><ul><li>Prototype </li></ul>
  22. 22. Assignment 8: Keep up with the Masters
  23. 23. <ul><li>33 Developers you MUST Subscribe to as a JavaScript Junkie </li></ul><ul><li> </li></ul>
  24. 24. <ul><li>John Resig </li></ul><ul><li>Find his musings on JavaScript at his  blog . </li></ul><ul><li>Creator of the  jQuery library ,  Sizzle  selector engine and the  JavaScript port  of  Processing . </li></ul><ul><li>Author of  Pro JavaScript Techniques  and  JavaScript Secrets . </li></ul><ul><li>Works at Mozilla. </li></ul><ul><li>Tweets at  @jeresig </li></ul>
  25. 25. <ul><li>Douglas Crockford </li></ul><ul><li>Find his musings on JavaScript at his  blog . </li></ul><ul><li>Author of  JavaScript: The Good Parts </li></ul><ul><li>Popularized  JSON . </li></ul><ul><li>Works at Yahoo. </li></ul><ul><li>Lectures on JavaScript </li></ul>
  26. 26. <ul><li>Brendan Eich </li></ul><ul><li>Find his musings on JavaScript at his  blog . </li></ul><ul><li>Inventor of the  JavaScript language . </li></ul><ul><li>Works at Mozilla. </li></ul><ul><li>Remember to check out his  podcast , as well. </li></ul><ul><li>Tweets at  @BrendanEich </li></ul>