CSC/ECE 517 Fall 2007/wiki1b 3 an: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 43: | Line 43: | ||
==External Links== | ==External Links== | ||
[http://www.ruby-doc.org/core/ Ruby Standard Library Documentation] | [http://www.ruby-doc.org/core/ 1. Ruby Standard Library Documentation] | ||
[http://www.zorched.net/2006/02/19/ruby-features-youll-wish-you-had-in-other-languages/ Features of Ruby] | |||
[http://www.artima.com/intv/closures.html 3. Closures in Ruby ] |
Revision as of 00:14, 11 October 2007
We have said that closures in Ruby can be used to implement the Command and Strategy patterns. Closures are useful in implementing various other design patterns too. Explain which patterns, and give examples, using pseudo-Ruby code (i.e., your code should illustrate how to solve the problem with closures in Ruby, but it doesn't actually have to run, if it would be too complicated to give a running example).
Closures
What are Closures?
A Simple Closure Example
Advantages of Closures
Design Pattern
Closures And Design Patterns
Observer Pattern
Description
Typical Uses
Examples
Terminology
Structure
Closures and Observer Pattern
Pseudocode
Iterator Pattern
Description
Typical Uses
Examples
Terminology
Structure
Closures and Iterator Pattern
Pseudocode
References
1. Programming Ruby:The Pragmatic Programmers Guide
3. Design Patterns - Elements Of Reusable Object Oriented Software