Inversion of Control
-1
votes
0answers
23 views
Autofac equivalent of this Ninject setup [on hold]
I am looking for an equivalent way to register using Autofac what is done below with Ninject.
The broader context is to implement the Domain Events pattern as proposed by Udi Dahan in his blog here.
...
1
vote
0answers
51 views
Should IoC container be part of portable library?
I am seeing the benefits of Portable Class Libraries for centralizing Models and ViewModels to a single code-base. Where should dependency injection management (IoC container) take place, though? My ...
3
votes
2answers
145 views
Is Convention Over Configuration “Knowledge in the World” or “Knowledge In Your Head”?
In Don Norman's seminal work "The Design of Everyday Things", the author coined the phrases and explains the difference between "Knowledge in the World" and "Knowledge In Your Head"; an example of ...
0
votes
1answer
115 views
it is a good approach to implement dependency injection in a desktop app?
Well, the thing is that I am just about to create a Desktop App (with .NET windows forms)
And now I just wonder if it would be really a wise choise to use any IoC (StructureMap,Ninject,Spring .Net), ...
0
votes
0answers
52 views
Software Architecture and MEF composition location
Introduction
My software (a bunch of webapi's) consist of 4 projects: Core, FrontWebApi, Library and Administration.
Library is a code library project that consists of only interfaces and ...
41
votes
5answers
2k views
Why is Inversion of Control named that way?
The words invert or control are not used at all to define Inversion of Control in the definitions that I've seen.
Definitions
Wikipedia
inversion of control (IoC) is a programming technique, ...
1
vote
5answers
1k views
Dependency Injection Confusion
I think I have a decent grasp of what Dependency Inversion principle (DIP) is, my confusion is more around dependency injection.
My understanding is the whole point of DI is to decouple parts of an ...
1
vote
3answers
208 views
Shall we always use IoC in our designs?
I was studying Mediator Pattern and I noticed that to use this pattern you should register the Colleagues into Mediator from the Colleague concrete classes. for that we have to make an instance of ...
2
votes
1answer
181 views
Is it a bad design to specify default bindings when using Inversion of Control (IOC) containers and dependency injection (DI)?
I'm using Ninject, but this is not a Ninject-specific question. I'm wondering if the advanced and flexible capabilities of the IoC container are giving me enough rope to hang myself with a bad ...
8
votes
1answer
2k views
Dependency Injection/IoC container practices when writing frameworks
I've used various IoC containers (Castle.Windsor, Autofac, MEF, etc) for .Net in a number of projects. I have found they tend to be frequently abused and encourage a number of bad practices.
Are ...
12
votes
5answers
997 views
Does following TDD inevitably lead to DI?
I learned to do Test Driven Development (TDD), Dependency Injection (DI) and Inversion of Control (IoC) all at the same time. When I write code using TDD I always end up using DI in my class's ...
2
votes
2answers
314 views
DI/IoC in Java for a .NET'er used to Castle.Windsor
Is there a Java DI container that works in a similar way to the most excellent Castle.Windsor container on the .NET side?
The Java containers I've had a look at all seem to rely on annotations ...
4
votes
1answer
1k views
Is IoC feasible in winforms?
I'm coming back into the winform world after being in the web world for a while. Is it common or otherwise feasible for developers to use IoC in winform?
My concern is mainly with performance. I ...