Designing the Entry Point - The Code Whisperer

December 2, 2015 Dependency Inversion Principle (DIP)

The entry point. Sometimes it’s main(). Sometimes it’s an extension point in some complicated framework. Most importantly, it is the border where Their Stuff runs Your Stuff. When I see entry points in other applications, I don’t see a lot of evidence of having thought about the design much. It becomes a kind of junk drawer for code. This happens especially when programmers are working in environments they don’t feel particularly comfortable in. (I don’t know where to put things, so I’ll put them here, since that seems to work.)


This is a companion discussion topic for the original entry at https://blog.thecodewhisperer.com/permalink/designing-the-entry-point