CodeSOD: We Don't Need no Stinking Elses |
We've all seen it before. I dare say we've all been a party to it.
First, we look at a block of code that needs to be modified. Then we determine which criteria needs to be added to address the case that we've been tasked to implement. Next, we add the condition and walk away before the waft from the code smell reaches our nostrils. Over time, a monstrosity like the following arises from the depths. Not something that couldn't be greatly improved by some fava beans and a nice refactor. I'm sure the unit tests that cover your production code base will ensure that your refactoring was successful. Right? Right??
Photo credit: Foter / CC BY-SA
[Advertisement] Have you seen BuildMaster 4.3 yet? Lots of new features to make continuous delivery even easier; deploy builds from TeamCity (and other CI) to your own servers, the cloud, and more.http://thedailywtf.com/Articles/We-Dont-Need-no-Stinking-Elses.aspx
| Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |