Programming

Classes and Inheritance in TypeScript

Posted on

Yesterday I wrote a very brief introduction to TypeScript. Today, I’m going to talk more about some of the object orientation TypeScript can add to your JavaScript code. The two topics for conversation today are classes and inheritance – topics that you’ll be familiar with if you are using a first class object oriented language, […]

Programming

TypeScript Adds Static Typing to JavaScript

Posted on

It seems like a new solution to the problem of JavaScript is being invented every couple of months at the moment. We saw CoffeeScript giving us shortened scripts, Dart fail to replace JavaScript entirely and now Microsoft have waded into the same space with TypeScript. This time, though, things might be different, because TypeScript is […]

Programming

Always Use Those Curly Braces

Posted on

I write a lot of code in a lot of different languages – but there is one common rule I apply to all of them… when you use an “if” block, always put in the curly braces even if you don’t need them. Many errors are related to violations of this simple style rule. I […]