Bad Code


Bad Code is a small indie dev group that focuses on mobile applications.  We work hard to improve our content with every release and love interacting with users.  We don't try to be anything other than what we are; that is, a small group of independent developers and designers.  

My Hand + Face Moment

Like most indi developers I often find myself jamming out lines of code while the rest of the world is fast asleep; and I’m sure many of you, like myself, find a certain level of tranquility in doing so.  Of course the downside of this practice is that often times we make mistakes—but not ordinary mistakes— I’m speaking of the types of mistakes that make us feel as if the twilight magically shed 50 or 60 points off our IQ.  Code has a very unique ability to make us feel like absolute morons, and the worst part is, we normally deserve it.

Today I spent the better part of six hours chasing down a bug that was causing an infinite loop.  I assumed the bug was in a parse script I had recently added so I combed over this script endlessly for many hours with no sign of an issue.  Finally, defeated and felling very much like a grubby sleestak I decided to switch gears for a bit and do some maintenance on a few switch statements.

Screen Shot 2014-09-19 at 1.53.14 AM.png

Now, I consider switch statements to be pretty forgiving and certainly rank high on the “idiot-proof” meter, so the thought of a bug residing in the switch had not occurred to me.  As I scrolled down to case three I froze… Gee, I wonder why I was getting an infinite loop?  Could it perhaps be because I was essentially ordering the program to do it?  As I said above, code has a very special way of making us feel like total morons, and I of course deserved it.  This was my hand + face moment for the week, and a subtle reminder that I may actually require sleep after all.  I hope you enjoyed the read, or at the very least found amusement in my suffering : ).  Take care and I will talk to you soon.      

© 2015 Bad Code Studios All Rights Reserved