Spinning Wheels

What I should have done last night was a hard coding challenge. Instead, I spent way too many hours trying to clean up an easy challenge to get a full score. The challenge itself wasn’t hard, but getting it to not suck up time and memory was difficult. What’s worse, figuring out how to test it so every contingency was covered left me in a nightmare spiral that consumed hours of Tuesday evening and early Wednesday morning. Instead of taking a step back and reassessing the problem, I just kept trying to patch over the holes. The code kept getting uglier and uglier, and yet I pushed on. And in the end, I scrapped all of the code and have decided to start over with it.

Once I took the steps to get out of that mess (at least for the time being) the rest of the day went better. I made it through five easy challenges (three PHP, one Ruby, one Python) and a moderate PHP challenge. One of the challenges involved regex (regular expressions), which are a wonderful thing to deal with on top of the languages themselves. Regex would be useless if it wasn’t so useful.

Share
Andrew

Andrew

I've been a programmer for almost 15 years, back in the rough early days of PHP 3. Am well versed in the world of PHP and MySQL. I have a deep appreciation of ZF2 and Doctrine. The thought of all the spaghetti code I've dug through (and written) keeps me up at night sometimes. My profile picture is not of me.
Andrew

Leave a Comment

Your email address will not be published.