CSC/ECE 517 Fall 2007/wiki1b 8 sa: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
** Santthosh ** (sbselvad@ncsu.edu) and  
Note: Santthosh (sbselvad@ncsu.edu) and Agustin (agusvega@nc.rr.com) are editing this page.
** Agustin ** agusvega@nc.rr.com are editing this page.
 
= Strategy Pattern =
== Concept to explore ==
 
''Take a case of the Strategy pattern and implement it as succinctly as possible in Ruby and Java. Compare the two implementations in terms of clarity and succinctness. The example should be a "real-world" example. While it may be grossly oversimplified for the purpose of illustration, it should not be totally contrived (i.e., should not raise the question, Why would anyone ever want to do that?).''
 
== Definitions ==
=== Design Patterns ===
=== Strategy Pattern ===
=== Polymorphism ===
== Related Patterns ==
== Alternatives ==
== Examples ==
= Illustration =
= Real World Problem =
== Java's Solution ==
== Ruby's Solution ==
= Java versus Ruby =
== Comparision ==
== Where Ruby wins? ==
= References =
== See Also ==

Revision as of 22:19, 28 September 2007

Note: Santthosh (sbselvad@ncsu.edu) and Agustin (agusvega@nc.rr.com) are editing this page.

Strategy Pattern

Concept to explore

Take a case of the Strategy pattern and implement it as succinctly as possible in Ruby and Java. Compare the two implementations in terms of clarity and succinctness. The example should be a "real-world" example. While it may be grossly oversimplified for the purpose of illustration, it should not be totally contrived (i.e., should not raise the question, Why would anyone ever want to do that?).

Definitions

Design Patterns

Strategy Pattern

Polymorphism

Related Patterns

Alternatives

Examples

Illustration

Real World Problem

Java's Solution

Ruby's Solution

Java versus Ruby

Comparision

Where Ruby wins?

References

See Also