Thursday, June 14, 2012

JavaScript from scratch

Simple makes you happy

So you probably read my previous post where I was talking on the reasons why I started to learn JavaScript.
As a first step I logged into, opened an account and did the first thing which is typing my name “Hod” and see the results.
It is funny to see how a simple thing like typing and see your name as the result  makes you happy, you get the feeling that you can do anything, any program, any coding, any obstacles. I can do JavaScript!

Code Year

Codecademy is a very simple functional site; you understand right away what you should do, what the next steps are and where you are going.
They give you some options to choose of the provided courses and all you have to do is decide on which path will you go and study.
I took the ‘Code Year’ course which contains JavaScript, HTTP and CSS. 
Update- After reading some reader’s comments- I will continue to their JQuery when finish this one.
‘Code Year’ made of 23 subjects, each subject supposed to take you a week and each week get you closer to know how to program and what techniques to use.
I started of course with the basics, lucky me I know the basics from study Python only few months ago, all you need to do is the adaptation from one to the other.
The basics went pretty fast and after few hours I was ready to write my first project- the game ‘Fizz Buzz’.

My projects

Fizz Buzz- See my code over here- Fizz Buzz project inside github
Or inside my Dropbox folder- Fizz Buzz project inside Dropbox
Do not worry; it is my Dropbox folder, no malicious code here.
After few more classes made of Functions and conditionals I was ready for my next project  ‘Roll the Dice’. See github and see Dropbox.
After learning arrays, primitives and some more I was ready for my next project which was creating an address book. See github and Dropbox.
And finally I did my last project which is to build a Blackjack game (well, at least to build the start)
You can see the code and play using github and Dropbox


Objects (Week 5) were the first time I had hard time to learn.
It is a concept I didn’t meet before and I found myself reading lines over and over to understand the terms being used.
I did well in the course and even find myself explaining others how to fix their code but in overall it is a very hard subject and I think I will re-learn it just to be sure I am cover here.
The project over here was to write a Cash Register and you can see my code in github and Dropbox.

Your input …

As I wrote before, I want to re-study Objects / OOP only to be sure I am 100% controlling it.
I hope you (the readers) can tip me about this subject, maybe you know a site that explains it the best.
Also, your comments on my code will be highly appreciated.

On a side note- I got an invitation from Codecademy to be their beta tester for future classes, I already ran few classes, report some bugs and will run more in the future.