Monthly Archives: June 2015

Following the Law of Demeter

LODThis post is on the Low of Demeter (LoD) in OO services implementations. The goal here is to take into account exemplary implementation in Java and consider it how it respects the Low of Demeter. Thanks to the code examples it is easier imagine how the LoD may affect implementation. Knowing the practical usage of the Low it will be more convenient designing and implementing solutions based on best practices. LoD prefers loose coupling and allows creating more maintainable code. The use case follows a simple service to transfer money between two accounts.

Continue reading