Principle of Least Knowledge

One very important (yet often overlooked) design guideline which I advocate is the Principle of least knowledge. The Principle of Least knowledge, also known as The law of Demeter, or more precisely, the Law of Demeter for Functions/Methods (LoD-F) is a design principle which provides guidelines for designing a system with minimal dependencies. It is typically summarized as “Only talk… Continue Reading