flâneur — a map of the web's best reading

Service Locator violates encapsulation

blog.ploeh.dk · 1,164 words · saved by 1 readers

Service Locator violates encapsulation in statically typed languages because it doesn't clearly communicate preconditions.

Service Locator violates encapsulation Service Locator violates encapsulation by Mark Seemann Service Locator violates encapsulation in statically typed languages because it doesn't clearly communicate preconditions. The horse has been long dead, but some people still want to ride it, so I'll beat it yet again. Over the years, I've made various attempts to explain why Service Locator is an anti-pattern (e.g. that it violates SOLID ), but recently it struck me that most of my arguments have been focused on symptoms without ever addressing the fundamental problem. As an example of discussing sym

Explore this link on the map →

saved by

related reading