Hacker News new | past | comments | ask | show | jobs | submit login

You miss the point of DI.

DI is solving a problem common to non-trivial OO apps - where do you create the objects? Every sane approach to this tends to lead to a form of DI.

Spring is a bad example of DI because it encourages an implicit, DI-everything style. Take a look at Guice or other frameworks where bindings are explicit.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: