Hi you there, I have said that the design means does not have to be applied, but their applications can bring huge benefits. Design means, this word is actually my own definition, the reason has never thought of how to describe better, here I use a better vocabulary to describe these means, "Design Guidelines). I think it is good to describe the nature of these design means. They are some policy, you can choose to comply or don't comply, of course, it will have a certain benefit, and the benefits here are not a general advantage, You will slowly experience this! ^ _ ^ As for each rule in the policy, I still call it means, so this title also uses the word. If you haven't read the first article yet: "The design of OOD is summarized", I suggest you read it first, and make your own opinion. Ok, let's talk about this means. Another means of object-oriented design, this time is the least responsibility.
Define a responsibility: The Objects Are Well Defined Responsibilities in the last discussion has said that the object is a clear definition, then the least responsibilities are proposed to have the responsibility of the requirements of the requirements. Great. This will produce a lot of small objects with their respective duties. This is a big support for the OCP principles. Remember Objects Are Well Defined Responsibilities, but if it is an object contains a big duty, the change inside the object is very likely to affect other duties in the object. In addition, the expansion of responsibilities, because there are now many small responsibilities, so if they are designing, they can easily add responsibilities to expand the entire system's duties.
In fact, I think this is a design means, it is better to say that this is a more appropriate, such as the principle of the least responsibility (LRP, Least Responsibility Principle). ^ _ ^ The above design means is completely I personally summed up. Maybe in reality is not recognized, but in a summary of personal experience, this design means makes me benefit. So I hope to share it, I hope I can help everyone! Finally, I'm old, I have to share it, if you have any good ideas, you must leave a statement! ^ _ ^