CSC/ECE 517 Summer 2008/wiki3 8 smr: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 8: Line 8:
=== Small Interfaces ===
=== Small Interfaces ===


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?  
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?
 
"The small interface or weak coupling principle states that if any two modules or objects communicate they should exchange as little information as possible" [http://www.cit.gu.edu.au/~francis/sa2000/unit2.htm].


=== Explicit Interfaces ===
=== Explicit Interfaces ===

Revision as of 02:50, 24 July 2008

Meyer's principles. 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?


Introduction

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?

Small Interfaces

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?

"The small interface or weak coupling principle states that if any two modules or objects communicate they should exchange as little information as possible" [1].

Explicit Interfaces

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?

Uniform-access

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?

[2]

Self-documentation

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?

Single-choice

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?

[3]

Conclusion

Also See