Some Servicelocator pattern stinks

added by JefClaes
4/18/2012 8:55:46 AM

4 Kicks, 263 Views

I have been working on a somewhat legacy codebase which makes use of the Servicelocator pattern. Although I always thought of Dependecy Injection to be the superior pattern, I was pleased to find some Inversion of Control implementation in there. Working with the codebase, I discovered first hand how easily, when used without caution and discipline, the Servicelocator pattern can introduce code rot.


1 comments

dpeterson
4/18/2012 8:54:58 AM
Nice read; I've not come across the ServiceLocator pattern in anything I've worked on so I haven't had the displeasure. I'll be sure to not waste my time reading up on it too much.