Geeks With Blogs
Lee Brandt's Blog You're only as smart as your last line of code

I know you've probably heard it before: "There is no silver bullet." Basically, this means that there is no right answer for a particular problem in every situation. There is only the best solution that you know for each individial scenario. For instance, if you have to load a dependency for an object, you could use dependency injection or a provider model; but if you have to load an object's dependencies and that dependency's dependencies (the leg bone depends on the ankle bone and the ankle bone depends on the foot bone), there's no way to get there using the provider model.

I've been pounding the pavement to understand the gives and takes of DI vs PMP lately and it's pretty murky waters. First, not many people understand both completely, and those who do, will definitely have their preference one way or another. I have found this to be the case with most technologies, taxonomies, methodologies, language-onomies and IDE (no onomy OR ology), and if you dig far enough, you'll usually find that each of the most popular tools used, has it's own advantages and drawbacks. While Structure Map is an awesome, easy-to-use DI container, Unity, nInject or Windsor might be more appropriate for your organization, personality, codebase or even this particular implementation.

The problem is, most of us have work to do and we don't have time to go exhaustively research each framework, tool, methodology, ... you get the idea. Over the coming months and weeks, I will try to make some posts giving as objective a comparison as I can give (remember, my personality will color my opinion) of different "ologies", "onomies" and tools.

I am neck-deep in framework building right now, but I should still have some time to dedicate tothis research. I know it will help me, and it will hopefully help some of you also.

'til then...

~L

Posted on Thursday, May 8, 2008 8:44 AM Learning , Software , Rants | Back to top


Comments on this post: There is no right answer

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Lee Brandt | Powered by: GeeksWithBlogs.net