Monthly Archives: October 2009

Linked Lists in C: push, pop, shift and unshift

A sound understanding of linked lists and how to use them is a prerequisite for programming in C, or indeed most programming languages for that matter.   Most scripting languages provide built-in helper functions for dealing with arrays and linked lists, … Continue reading

Posted in C | Tagged , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Transparent aggregation in PHP5

The other day a Ruby developer was extolling the virtues of Ruby on Rails to me, in particular the use of “acts_as_” to make a class magically include all the behaviour from another. It isn’t inheritance, the relationship isn’t “is … Continue reading

Posted in Object oriented programming, PHP | Tagged , , , , , , , | 5 Comments