Wednesday, September 30, 2009

Lessons Unlearned

Can a technique you would have never thought of be a more natural way of writing code?

Dependency Inversion.

DI is a far more natural way to write code. Robert Martin wrote about DI in 1996 and seven years later, Inversion of Control containers were the big new thing.

And here it is, almost another seven years later and a lot of code still reflects top-down design that is the antithesis of DI.