Monthly Archives: March 2010

Optional constructor parameters

One thing that really irks me about PHP is the way parameters are passed into functions and constructors. A typical constructor will look like this: $col = new Column($id, $label, "50%", true, false); While that’s nice and compact, it’s impossible … Continue reading

Posted in Coding Practices, PHP | Leave a comment

Unit testing with PHP

You’ve probably heard of unit testing. If you are like I was a few years ago, your mouse is hovering over the “close” button right now. But wait! Don’t go away just yet. Over the past few years I have … Continue reading

Posted in PHP, Testing | Leave a comment