Inherited code

I think I've just inherited what is possibly some of the worst code ever written. As I look at it, I really wonder what the hell was going through their minds when they wrote it.

And I'm not talking about poor style, although it certainly has that. The general architecture is relatively solid, but some of the implementation choices are just absurd. It seems they've chosen the least obvious and most complicated approaches - ones that don't offer any performance, scalability, or extensibility benefits. In fact, because of their implementation, performance and extensibility are non-existent.

Their implementation only complicated things for them - and now me - and has transformed what should have been a very useful and flexible application into something that will only ever fill a very specific set of requirements.

Sigh.

Engineering