News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Reddit.com:
An interesting negative take on Dependency Injection
July 23, 2012 @ 10:06:03

In this recent post to Reddit.com there's some commentary about an older article sharing a negative spin on dependency injection and how it could cause more trouble that it's worth.

The attitude of these pattern junkies doesn't work with me. *I* will decide whether or not I will use a particular design pattern, and *I* will decide how I implement it. This usually means that I don't use design patterns at all, and those that I do use are implemented in my own unique way. Because of this I am widely regarded as a maverick, a heretic and an outcast by those who consider themselves to be "proper" OO programmers.

Comments in the Reddit post talk about DI not being a "silver bullet", how it "empowers polymorphism" and how design patterns should not be done for the same of using design patterns

0 comments voice your opinion now!
dependency injection di negative opinion


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Pimple, the small dependency injection container for PHP 5.3

Reddit.com: Let's Make PHP's Function Names Consistent!

Matthew Turland's Blog: Models in Zend Framework

Keith Casey's Blog: php|tek 2011 Closing Remarks

Jani Hartikainen's Blog: A simple way to make your code better: Stop adding more parameters


Community Events

Don't see your event here?
Let us know!


laravel5 version community introduction opinion series unittest security language symfony interview extension api laravel podcast voicesoftheelephpant release library threedevsandamaybe framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework