Category Archives: Refactoring

function dry(){echo “Do not repeat yourself”;} dry(); dry(); dry();

Jumpy Thumbnails It was a snowy Saturday morning and I didn’t have a lot of pressing matters, so I decided to track down a silly issue, off the clock, for a client of mine. On two similar pages, the space … Continue reading

Posted in Refactoring, Web programming | Leave a comment

A visual checksum for your PHP output

Refactoring the code on my billing system, I was promoting a method to its parent object. If I did it right, the output from the code wouldn’t be any different before and after the refactor. Unfortunately, the output page was … Continue reading

Posted in Debugging, Refactoring, Web programming | Leave a comment