On a quest for the silver bullet..

» Currently browsing: Patterns


Law of Demeter: A real-world example

Number of Comments » 0

The Law of Demeter (LOD) helps decouple objects, it makes mocking intensive tests much easier to write, and it offers a concrete set of rules that can make things clearer.
I recently ran into an example in Glue where I refactored towards LOD. I will share my thoughts on that here.
The problem
I am working on [...]