Some Servicelocator pattern stinks

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


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.


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.