If you learn a programming language it is unlikely that you will read the formal language specification that defines all the laws of the syntax. You may never read it at all. It is more useful to learn by example, or at least topic-by-topic. However, a mere ten years after writing my first few lines of JavaScript, I read the ECMAScript standard and it threw up some things I did not know.

There are many things that you can write in JavaScript that are perfectly valid syntax, but that you probably never will write. Here are a few that raised an eyebrow or two.

Continue reading…

Out of the frying pan, into the fire.

I recently watched the internet film, Zeitgeist. After which I was burning to write my opinions here, but unfortunately that’s not really what my blog is about, so instead I turn my attention to the internet as Information Technology. At least this is what IT stood for when I was at school, but ironically this was a time when I was much more likely to turn to books for information. More to the point, I was likely to go to much greater lengths to find out facts than doing a quick Google.

Continue reading…