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
saved by
related reading
- Clean Coder Blogblog.cleancoder.com
- SOLID Design Principles Explained: Building Better Software Architecture | DigitalOceandigitalocean.com
- Information hidingen.wikipedia.org
- artima - Josh Bloch on Designartima.com
- P2900R13.pdfisocpp.org
- p2899r0.pdfopen-std.org
- No, dynamic type systems are not inherently more openlexi-lambda.github.io
- The Shape of the Systemshapeofthesystem.com
- Reading 4: Specificationsweb.mit.edu
- Favoring Composition Over Inheritance In Java With Examples - GeeksforGeeksgeeksforgeeks.org
- LEAP 71 | PicoGK.org Blogpicogk.org
- Critically Conscious Computing: Methods for Secondary Educationcriticallyconsciouscomputing.org