This is the ‘eye’ of SOLID software design principles.
Definition:
Clients should not be forced to depend on methods that they do not use.
Alternate Definition (s):
The dependency of one class to another one should depend on the smallest possible interface
The idea
Consider two components- which interact with each other. The interaction between the two is defined by the [...]
This is one of the most powerful principle of OOP.
The Principle
Simply stated- what this means is- once you are done coding an entity - e.g Class,function etc- you should have no reason to modify it again (…hence closed), but that entity should be available for modification via extensions e.g inheritance or any other smart mechanism [...]
Following is a collection of some principles\suggestions\rules\guidelines- whatever you wish to call them- to be kept in mind while designing software.
Some of this was inspired by Head-First Design patterns book- which I concluded recently. An excellent read- BTW.
I would recommend every earnest programmer to keep these principles posted at a visible location in his/her work place.
A) [...]
Recent Comments