Archive for February, 2009

Strategy-like Pattern in PHP

February 19th, 2009 Posted in Design Patterns, PHP | Comments »

Today, I had some time to write a little program while I was watching people work on the infrastructure at the office. I wrote up a couple of functions that calculated the n-th Fibonacci number, and wanted to display the sequence of the first 100 numbers as they were calculated by these functions. At first, [...]