Dependency injection and open vs. closed designs

Rickard has written a blog entry about dependency injection and open vs. closed designs and I’ve come to the same conclusions as he when maintaining a huge Java system at work. Without consciously thinking about it I’ve been re-writing parts into a more “open” design as Rickard calls it. It just seems to simplify things a lot and at the same time it makes the components more independent, which simplifies unit testing a lot.