Take a break, then take another look

Some say great code is like artwork.


Well, as long time readers are aware, yours truly can be a little on the humble side. That being said, as far as code goes, this was not merely art. No, this was the software equivalent of Monet.


Just imagine if Michelangelo painted the Sistine Chapel roof in perfectly formed, well documented PHP code. This is the type of programming masterpiece we’re talking here.


After countless hours fuelled by Dr. Pepper and Red Bull, surrounded by the caskets of dead pizzas, the masterpiece was complete.


Then came the moment of revelation. I loaded it up onto the dev site, opened the page.


Then it happened. The moment of terror.


PHP Fatal error: Call to undefined function genius_tasmaster() in holy-taskie.php on line 147.


Well, Old Taskmaster took a look at line 147. It was perfect.


Old Taskamster took a look where genius_taskamster () was declared.


Every “<”, “?”, “PHP” and semicolon appeared to be in place.


There were no typos. There were no upper case letters where lower case ones were supposed to be.


After an hour or so rummaging through code and trying different things, the error was still there!


This was beautiful code! Worthy of Picasso or Giotto! If da Vinci wrote webscripts, this is what would have been produced! Why, this code could be framed and hung on a wall next to a Cézanne in the Lourve and become world famous for its beauty.


It was about then that Old Taskmaster stepped away and watched some TV.


Except while watching TV, a strange thing happened. Maybe the error wasn’t in holy-taskie.php. Maybe it was in another file?


Sure enough, upon coming back to the computer, the answer became obvious. A cursed missing semicolon. A blemish, a fly on this technical masterpiece worthy of Piero della Francesca.


The moral? Those who code and walk away find the bug another day.


Get it done – after a break!


Image credit: Flickr/Colin Tsoi


Notify of
Inline Feedbacks
View all comments