Archive for February, 2009:

Creating JavaScript Classes, Part 3: Method Inheritance (with screencast)

View Screencast | Download code
For a complete explanation of the following code, watch the screencast. In the previous post, I looked at how JavaScript can access properties of ancestor classes in descendant classes. In this post, I am going to look at how to do the same with JavaScript functions. To keep things [...]

Tags:

Comments (1)

Creating JavaScript Classes, Part 2: Property Inheritance (with screencast)

View Screencast | Download code
The JavaScript programming language does support extending classes through the use of constructors and prototypes. As you’ll see in the next series of posts, it is more complicated to implement than using a simple “extends” keyword or similar construct like other programming languages. This is especially true if we [...]

Tags:

Comments (2)

Creating JavaScript Classes, Part 1: Constructors (with screencast)

View Screencast | Download code
JavaScript does not support classes. At least, not in the traditional sense. It does support basic class features, such as inheritance and method overrides. However, it does all of this though functions and function prototypes, making the implementation of class features is a bit more complicated.
JavaScript works well [...]

Tags:

Comments (2)

Test-driven development (with screencast)

View Screencast | Download code
Before I begin posting code for this library, I just wanted to say a few words about how I develop software. I generally follow a test-driven development (TDD) methodology when writing code. For those not familiar with TDD, it is an automated unit testing method where you write a single [...]

Leave a Comment