
I recently found twenty old Subversion repositories I’d forgotten about on my home Linux server. They seem to be from early 2004 to the end of 2007, and most hold code developed during and for my graduate studies.
I’m pleased to say that the code is horrifically bad. I’ve learned quite a lot in the last few years, and I can’t wait to look back at this era of code and shudder.
The image above is from a PHP function that counts the number of neighbors a given cell has in a generation instance in Conway’s Game Of Life . While the Game of Life is normally played in two dimensions, this function actually incorporates the third dimension, so a cell could have twenty-six neighbors instead of the standard eight. It is also edge-aware and wraps the playing surface appropriately.






