Archive

Archive for the ‘MEF’ Category

Dependency Injection Inversion

January 19th, 2010 stiiifff No comments

Seems there is still a lot of confusion about what is Inversion of Control, what is Dependency Injection, what are the differences between the two, and how to apply one or the other properly.

Several people have reacted to a controversial post by Uncle Bob on that topic with, among the most vocal ones, Davy. ;-)

IMHO, some of the best posts on the subject that really make a clear distinction between IoC & DI are the following ones:

The whole point of IoC (forget a minute about DI) is to break the dependencies between your classes and design them asĀ  loosely-coupled as possible (to the point that it’s actually useful of course, it’s not an engineering contest).

All the benefits that you get:

  • Dependency Injection
  • Better testability
  • Better maintainability

are just consequences of the good design of your classes (read about SOLID also).

In the end, it’s just good Object-Oriented design, nothing more. And by good, it doesn’t mean complex, it’s actually quite simple once you got it.

Categories: Castle Project, MEF Tags: , ,

MEF Preview 5 – Recomposition, POCO & Custom Type Systems

April 28th, 2009 stiiifff 3 comments

Go & take the time to read those posts about the latest drop (preview 5) of MEF (Managed Extensibility Framework):

All of this will come for free as part of .Net 4.0 … isn’t that cool or what? :)

Categories: MEF Tags: , , ,

Cool stuff

February 23rd, 2009 stiiifff No comments

Dependencies, ownership & lifetime

October 23rd, 2008 stiiifff No comments

A quick post to link Hammett's (creator of Castle Project, Windsor IoC container, and now PM on the MEF project) very interesting article about Dependencies, ownership & lifetime of components.

MEF – Managed Extensibility Framework first CTP just released

June 5th, 2008 stiiifff No comments

The MEF Team has just released its first CTP of the Managed Extensibility Framework.

This is a project to keep an eye on as it will bring Dependency Injection (and much more) right at the heart of the .Net Framework, in a new System.ComponentModel.Composition namespace (still subject to change).

The project page is here. The CTP contains some very nice demos of the early possibilities.

Categories: MEF, Patterns Tags: , ,