Where's my inheritance?

I like working with data. As a graphic designer structured information is like M&Ms to a three year old. Sort all the colours! The lesson I just completed dealt with objects, classes and prototypes and explained inheritance. Being familiar with CSS inheritance and classes were ringing a solid brass bell. Basic inheritance looks something like this:

What is the difference between a function() and a method()

I found myself asking this question because the two seem painfully similar. I found the following answer at Stackoverflow, Andrew Edgecombe explains

A function is a piece of code that is called by name. It can be passed data to operate on (i.e. the parameters) and can optionally return data (the return value).

All data that is passed to a function is explicitly passed.

Objects in Array

In the latest lesson we looked at dealing with objects as an array, in the specific example we had a family array containing members of the family with their respective details. We constructed objects using the object constructor and then ran a couple of functions on that object.

The following is my practice code using fictional rocket ships as objects. First we'll create a set of rockets ships with all their details. Then we'll compare them to see which is the fastest.

Object Oriented Programming (OOP)

It's all nice and dandy that I've heard this term before and can even sorta figure out what it means, but what does it really mean?

The top results in Google for OOP comes from It reads:

Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data.


Subscribe to RSS - blogs