Timeline for Manual Dependency Injection Examples Still Tightly Coupled
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 4, 2015 at 7:20 | vote | accept | JᴀʏMᴇᴇ | ||
| Sep 3, 2015 at 16:58 | comment | added | maple_shaft♦ | @JayMee I am not saying that DI could not or should not be done without a framework. What I am saying is that whether you use a framework or roll your own using Factory pattern, it should be an all or nothing. If you choose to Roll Your Own then you should do so exclusively and not having competing containers. It sounded as if you were trying to do your own DI when you are already using AutoFac for your project. | |
| Sep 3, 2015 at 16:08 | comment | added | JᴀʏMᴇᴇ | Bit more context: I'll have an interview in the coming weeks, one part of which will be a technical test. I'd like to demonstrate awareness of patterns I've used, and although I've had a reliance upon AutoFac, I think I'd like to incorporate DI into what I produce without AutoFac. I also want to unit test 'properly'. I'm not sure I understand what you mean fighting against it - do you mean the examples I'm following are bad? Or are they just that way purely for demonstration sake? Is it the case that without a framework/container - DI is not as effective/wrong? Thanks very much for your reply. | |
| Sep 3, 2015 at 15:52 | history | answered | maple_shaft♦ | CC BY-SA 3.0 |