Yet Another Linux Nerd

m/few grams of( code)? peotry in a world of brute( force|s)/

Tag archive for ‘php’

The iBuildings Test Driven Challenge

For those who do not know iBuildings, it is a company based in the Netherlands, England and Italy, which provides consulting services around PHP since 1999. During the last months, they organized contests consisting in writing PHP code with a specific goal. The last contest (ended 30th June 2010) was about creating the smallest class that has to pass tests from a provided PHPUnit file but after a few days, they divided the contest in two categories : one for a class with the lowest amount of lines while being respectful of good practices, and another one for class with the lowest amount of bytes.

I sent entries for both categories, and I’ll describe the assumptions I made and the tricks I used for my files.

Read more…