Thursday, January 22, 2009

Collection of Code Smells

Here's a nice collection of code smells. It's been a while since I've had to suffer the stench of really bad code smells.

The non-obvious-names smell is my own least favorite. I remember wondering what the class ApplyMeToo.java was supposed to do. Apparently it was meant to complement the logic in ApplyMe.java.

I can't recall the exact logic that ApplyMeToo.java was doing, but I think it had something to do with assigning drugs to a benefit plan, or some such. Like doctors, health insurance companies get to bury their mistakes.

No comments: