CSC/ECE 517 Fall 2007/wiki3 7 cl: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
== Bertrand Meyer's Set of Principles == | == Bertrand Meyer's Set of Principles == | ||
Bertrand Meyer is the developer of the Eiffel programming language. As a developer, Dr. Meyer participates in the evolution of the Eiffel method and language which includes a set of principles that he developed. | Bertrand Meyer is the developer of the Eiffel programming language. As a developer, Dr. Meyer participates in the evolution of the Eiffel method and language which includes a set of principles that he developed. Some of the more important principles are the principle of small interfaces, explicit interfaces, the uniform-access principle, the self-documentation principle, and the single-choice principle. | ||
===Principle of Small Interfaces === | |||
The principle of small interfaces, also known as weak coupling, states that if any two modules communicate at all, they should exchange as | |||
little information as possible. | |||
====Example of Principle of Small Interfaces ==== | |||
===Principle of Explicit Interfaces === | |||
====Example of Principle of Explicit Interfaces ==== | |||
===Uniform-access Principle === | |||
====Example of Uniform-access Principle ==== | |||
===Self-documentation Principle === | |||
====Example of Self-documentation Principle ==== | |||
===Single-choice Principle === | |||
====Example of Self-documentation Principle ==== | |||
== Resources == | == Resources == | ||
[http://en.wikipedia.org/wiki/Bertrand_Meyer Bertrand Meyer Wiki] | [http://en.wikipedia.org/wiki/Bertrand_Meyer Bertrand Meyer Wiki] <br> | ||
[http://www.cs.wustl.edu/~levine/courses/cs342/c++/design-principles_4.pdf List of Principles] <br> |
Revision as of 21:57, 16 November 2007
Bertrand Meyer is a prominent author in o-o design. He has developed a set of principles, many of which are embodied in the Eiffel language. Consider the principles of small interfaces, explicit interfaces, the uniform-access principle, the self-documentation principle, and the single-choice principle. What are good examples of each? Do other languages besides Eiffel support them? Is it difficult to follow these principles in certain o-o languages?
Bertrand Meyer's Set of Principles
Bertrand Meyer is the developer of the Eiffel programming language. As a developer, Dr. Meyer participates in the evolution of the Eiffel method and language which includes a set of principles that he developed. Some of the more important principles are the principle of small interfaces, explicit interfaces, the uniform-access principle, the self-documentation principle, and the single-choice principle.
Principle of Small Interfaces
The principle of small interfaces, also known as weak coupling, states that if any two modules communicate at all, they should exchange as little information as possible.