DEV Community

Discussion on: Must Know: Basic Engineering Principles for Programming

Collapse
 
tam360 profile image
Mirza

Question: Doesn't the Law of Demeter violate the idea of using composition (from OOP)?

Collapse
 
shravan20 profile image
Shravan Kumar B

Highly depends on Use Cases again.

If you have used Mongoose ODM,
One simple example would be the findOne().populate ();