Sweet Mysteries of Life
by in Coded Smorgasbord on 2014-04-17When you read a lot of bad code, you start to get a sense of why the code exists. Often, it’s ignorance- of the language, of the functional requirements, of basic logic. Sometimes, it’s management interference, and the slavish adherence to policy over practicality. Other times, it’s just lazy or sloppy work.
And sometimes, the mysterious logic that gave birth to a WTF is just that- a mystery.