Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One elementary need DI (or perhaps IoC more generally) provides is the ability to mock certain parts of your application for automated tests. While I'm not a fan of mocking too much and prefer higher-level tests (integration/component), mocking is still quite often needed. Is there some alternative to IoC/DI?


Effect systems spring to mind but they're rather esoteric (in the Java world).




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

Search: