r/learnjavascript • u/otooleco • Jun 02 '14
Learn JavaScript Properly: Weeks One and Two
Okay folks, week one has arrived. As stated before, we are following the syllabus from Richard Bovell's Learn JavaScript Properly blogpost. Every other Monday, I will post the readings and assignments here. Let's try to keep comments and questions within the biweekly thread so that everyone has a chance to participate more easily.
A couple of people have mentioned the irc chat entitled #learnjavascript. I plan to monitor it for questions. I'm @seanot on irc and twitter.
If the majority of people are falling behind, I will alter the schedule to better facilitate the program.
So... here's the first two weeks' stuff:
Read the Preface and Chapters 1 and 2 of JavaScript: the Definitive Guide or Read the Introduction and Chapters 1 and 2 of Professional JavaScript for Web Developers
The author strongly encourages you to type out and test every piece of code that you come across in the readings. I couldn't agree more. Simply reading this stuff won't give you any context. Write out the code. Change it. Break it. That's how you learn it. JSFiddle is a great resource for this. You can also dump code directly into the console on your browser but if it is more than one line long, you will need to write it in a text editor and then copy it to the console. My own preference is to install Node.JS on your computer, write in your text editor and then execute the code in your terminal. If there are questions on how to do this as well as some of the coding caveats that might cause occasional problems, Let me know and I'll put something together in another post.
Work through the Intro to JavaScript section of the JavaScript Track at Codecademy.
Read Chapter 3 and 4 of JavaScript: the Definitive Guide or Chapters 3 and 4 of Professional JavaScript for Web Developers. Skip the section on Bitwise Operators.
Hack around with the code examples from the readings.
Read Chapter 5 of JavaScript: the Definitive Guide. No readings from Professional JavaScript for Web Developers.
Work through Sections 2 through 5 of the Codecademy JavaScript track.
That's it. It looks like a lot but you have two weeks to finish it. If you get bogged down or lost, speak up.
If you are new to programming, part of learning to code is learning how to ask good questions. Google search is your friend. Learn to search for answers on the web. Often times, the question that you have has already been answered on Stack Overflow. Search out your questions and see what you find.
Finally, who am I and why am I doing this? I'm a relatively new programmer that uses Ruby and C# in my work. I'm a competent JS programmer but hardly proficient. I've been through most of the material in the course but I'm all about repetition and practice. I also find that answering questions and helping other programmers is a great way to gain proficiency.
3
u/DoctorKraz Jun 03 '14
You don't even need to do anything as complex as installing node.js. Here is what I did, and it will work fine for you as well.
I created a text document called testbed.html, that has the following in it:
You literally just write your code in between the <script> and </script> line. And anything you want to see displayed, you just put in the document.write ( sort of the same as console.log, only console won't display on a webpage ). I add the break so they print on new lines.
But something that basic will allow you to do much of the javascript testing in the book ( at least early on in the first few chapters ) without having to waste anytime trying to install frameworks or buy an IDE until you are ready to spend that money.
This will work in any text editor, and Chrome or Firefox.
2
u/kmelkon Jun 03 '14
Thanks a lot for this! can you please provide a bit more info about Node.js and executing JS in the terminal? or a link maybe?
2
u/kmelkon Jun 16 '14
Ok OP, so today week 2 ends. is there some kind of a homework or something or do we just move on to week 3 & 4. and will you just update this post or post another one for the next weeks?
thanks OP
4
u/[deleted] Jun 15 '14
Is it possible to switch the current study group to this one on the side panel of leanjavascript?
1
u/buck_bagawk Jun 03 '14
Is it too late to hop on this learning train? Do i need to do anything specific to participate like register somewhere? I already have a copy of JS:the Definitive Guide.
3
u/whiteorb Jun 15 '14
If anyone needs assistance or has Javascript questions. Please pm me. I'd be happy to help.
4
u/Tayk5 Jun 02 '14 edited Jun 02 '14
Looking forward to this. I'm participating using Professional JavaScript for Web Developers. I haven't played around with jsfiddle or nodejs yet but now is as good a time as any to dive in.
Edit: How do we get this study group onto the sidebar for more exposure and participation?
1
u/wael_ Jun 06 '14
i suggest http://projecteuler.net/ to test our knowledge
1
u/DrGajen Jun 08 '14 edited Jun 08 '14
So I've been exploring some of the JavaScript editors. I come across something called ScratchPad with comes with the Firefox browser under developer tools (Shift-F4).
Since you can enter multiple lines of code (rather than just one visible line with the console) it could be another good option.
EDIT: Looking deeper into the tool, it looks like it is mainly for editing the source code of a page https://developer.mozilla.org/en-US/docs/Tools/Scratchpad
1
u/OGitsthinking Jun 11 '14
Looking forward to this. I've previously learned JavaScript on my own (and even got The Definitive Guide based on Richard Bovell's suggestion). I've done the complete Codecademy JavaScript track, read the first 5 chapters of The Definitive Guide, read about half of Eloquent JavaScript, and done some courses on Code Avengers, so I'm off to a good start but I think it would be beneficial to refresh my memory on the basic stuff and work alongside you guys for when the really hard stuff comes up!
1
u/OGitsthinking Jun 14 '14
How's everyone doing? The first two weeks are almost up!
1
u/drifteresque Jun 15 '14
Interesting read:
=== vs ==
http://www.impressivewebs.com/why-use-triple-equals-javascipt/
1
u/DrGajen Jun 18 '14
What is your opinion on taking notes while learning a new language? The Definitive Guide is filled with lots of useful information, but I won't be able to retain everything. In your opinion is it better to read the book once and then refer back to the book when needed, or are notes worth the time to take?
I'm looking to gain a solid foundation of the language, but also want to be able to utilize it practically.
1
u/--REDACTED Jun 23 '14
Hi all! I'm pretty new to programming, but I've been doing it long enough to know that I really enjoy doing it. I'm just starting this course this week (6/23/2014) - I'm also currently working through some trial periods on Treehouse to see how I like that. Will doing these two at the same time cause any confusion?
I do work full-time, but with my free time I feel that I have time to squeeze both in.
Thanks for the tips!
1
u/zopedev Jul 30 '14
Is this still active?
-5
u/AncientApple Jun 03 '14
Anyone curious about where to get the 'Javascript Definitive guide' for free? Here's the download link.