1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Design Pattern Gallery

From oorexx

(Difference between revisions)
Jump to: navigation, search
(correcting my corrections - when will I learn to read?)
(linked Decorator page nicely - added section headings)
 
(One intermediate revision not shown)
Line 5: Line 5:
If you want to submit a sample implementation, please send it to the RexxLa mailing list and I will post it here if it merits it.
If you want to submit a sample implementation, please send it to the RexxLa mailing list and I will post it here if it merits it.
-
----
 
-
[[Singleton]] by Prof. Rony Flatscher - A singleton ensures that there is only ever one instance of a class.  Rony's example shows a meta-class that ensures only one instance of a class can be created.
+
 
 +
== Creational Patterns ==
 +
 
 +
* [[Singleton]] by Prof. Rony Flatscher - A singleton ensures that there is only ever one instance of a class.  Rony's example shows a meta-class that ensures only one instance of a class can be created.
 +
 
 +
== Structural Patterns ==
 +
 
 +
* [[Decorator]] by Jon Wolfers - Attaches additional responsibilities to an object dynamically.
 +
Jon provides a decorator class to subclass from.
 +
 
 +
== Behavioural Patterns ==

Current revision as of 17:32, 23 December 2011

This is a chance for us to create a gallery of design patterns in ooRexx.

To read about the concepts of Design Patterns please refer to works such as "Design Patterns - Elements of Reusable Object-Oriented Software" by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides isbn 0-201-63361-2.

If you want to submit a sample implementation, please send it to the RexxLa mailing list and I will post it here if it merits it.


Creational Patterns

  • Singleton by Prof. Rony Flatscher - A singleton ensures that there is only ever one instance of a class. Rony's example shows a meta-class that ensures only one instance of a class can be created.

Structural Patterns

  • Decorator by Jon Wolfers - Attaches additional responsibilities to an object dynamically.

Jon provides a decorator class to subclass from.

Behavioural Patterns

Personal tools