Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li>You should have a reference to Ninject anyhwere you use it to register &amp; resolve your dependencies. Most obvious place for this is in your application shell / entry point.</li> <li>Yes</li> <li><p>On Dependency Injection... Depending on what language you are talking about this might not be true. In C# / VB.NET case, yes. In dynamic language such as JavaScript, Ruby, etc. not really. I guess nowadays, it can also be wrong w/ C# if you are using DynamicObject. By specifying that your class depends on an interface instead of a concrete class, you can easily inject a different implementation of that interface either manually or by using IoC Container like Ninject. </p> <p>On Inversion of Control... It is basically saying instead of having a calling class / method creates what other components it needs to do its work, let it be created somewhere else and have it passed to your class / method. Breaking this concrete dependency chain will make your code more loosely coupled and allow you to replace one implementation of the required component with a different component that implemented the same interface / contract.</p> <p>An excellent explanation on Dependency Inversion Principle / IOC can be found in <a href="http://www.objectmentor.com/resources/articles/dip.pdf" rel="nofollow">http://www.objectmentor.com/resources/articles/dip.pdf</a>.</p> <p>Other good resources on this topics:</p> <ul> <li><a href="http://www.dotnetrocks.com/default.aspx?showNum=362" rel="nofollow">http://www.dotnetrocks.com/default.aspx?showNum=362</a></li> <li><a href="http://www.dnrtv.com/default.aspx?showNum=126" rel="nofollow">http://www.dnrtv.com/default.aspx?showNum=126</a></li> </ul></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload