Monday, April 9, 2012

An Anti-Pattern Criterion: Requires too much Brain Power

The problem with using a Service Locator isn’t that you take a dependency on a particular Service Locator implementation (although that may be a problem as well), but that it’s a bona-fide anti-pattern. It will give consumers of your API a horrible developer experience, and it will make your life as a maintenance developer worse because you will need to use considerable amounts of brain power to grasp the implications of every change you make.


http://blog.ploeh.dk/2010/02/03/ServiceLocatorIsAnAntiPattern.aspx

No comments:

Post a Comment