3 ms·
Dealing with dependencies is almost always the toughest part of making code modular. This seems to be good advice for a small, simple app. But as your code ge
by j_baker 16y ago
Dealing with dependencies is almost always the toughest part of making code modular. This seems to be good advice for a small, simple app. But as your code gets more complex, you need a strategy for dealing with dependencies somehow. I'm not saying that needs to be a DI framework of course. But I start to appreciate them more and more as my codebase grows.
- darkxanthos 16y agoYou're on a great track with this comment. It is also important to not forget that instantiating objects is a part of our domains not just some wart to be hidden.
- jedbrown 16y agoSometimes the instantiation is really private. Lifting all dependencies to the top level isn't progress, especially if you want plugins or a friendly interface.