Embrace Your Legacy Code. But Only Once.

If you have to deal with legacy code (and we all do) one of the standard techniques to deal with it is to hide it behind a layer of abstraction. While this is a valid pattern that helps in many cases, it comes with its own anti pattern. I call it Legacy in an Onion. [...]

Posted in: Softwaredevelopment by Jens Schauder No Comments , ,

Ratchet Tests with ScalaTest

Ever found more broken things in a project than you possible could fix in one go? I’m exactly in that situation. We have a test which checks for certain dependencies in our project. The problem: We discovered that the test was broken and didn’t report all disallowed dependencies. We do know how to fix it, [...]

Posted in: Softwaredevelopment by Jens Schauder 4 Comments , ,

Honor Your Legacy Code

Many of us groan when they have to deal with legacy code. Especially those among us who fancy themselves to be craftsmen or clean coders often complain about long convoluted classes and methods, no tests and a tangle of dependencies. I wrote before that you should shy away from the temptation to rewrite a legacy [...]