Learning JavaScript 2

Following my first attempt at the name game, I released that my hint code was rubbish (but really, I knew that at the time) and that it’s very difficult to guess a random name with so few clues.

First of all, the code has been improved. It will tell you how many letters you have correct from the first letter, ie first 3 letters or first 100 letters. Secondly, as additional help it can tell you every letter that is correct. This major addition should make guessing from scratch much easier. Version 2 of the name game never made it online as I was already working on version 3. Version 3 got updated to v4 since being posted!

Guess The Name Game v4

Make a guess at the name:


Continue reading
Continue reading...

Learning JavaScript – Name Game

When I was younger I found it really interesting you could piece together ‘tags’ to make web pages. More recently, I’ve found it fascinating how the guys at Cyanogenmod and ModaCo can hack through source code for phones. They improve not only the speed but also the functionality of android phones sometimes far beyond where the original manufacturer gave up. My example is my old HTC Magic which was running Android 2.1 reasonably well thanks to Cyanogen and team but HTC left me high and dry on Android 1.6!

So the point is, I’d love to be able to do that too. I told myself while I was in Canada I would learn Java but never got round to it (busy life!). Since then I’ve been spending my time filling in job applications…

Lifehacker brought my attention to Codecademy, an interactive teach-yourself site currently focused on javascript, so I decided to give it a bash. Within a few minutes I was hooked and completed the whole thing in one sitting. Not terribly long but it put wood on the fire. I decided to do something with what I learnt and the result is below.

I just hope that Codecademy update with more detailed lessons in more languages in the near future.

Continue reading
Continue reading...