What exactly should be split from what? Different frameworks answer the question slightly differently. They do at least 1 of these three:
- Eliminate direct constructor calls. All dependency injection frameworks do that.
- Strictly separate business logic from object creation. Google Guice, among others, allows that, but doesn't enforce that.
- Eliminate all static references. Newspeak makes all lookups dynamic, thereby eliminating global state.
All three are compatible with one another. Can they be combined in practice? I'm working on it …
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.