Abstract:
This paper analyzes and presents alternative implementations of three well-known Gang of Four design patterns: Decorator, Observer, and Visitor. These implementations are more than mere refactorings and take advantage of a variant of context-oriented programming that unifies classes and layers to overcome shortcomings in a conventional, object-oriented implementation.
Reference:
Classes As Layers: Rewriting Design Patterns with COP: Alternative Implementations of Decorator, Observer, and Visitor (Matthias Springer, Hidehiko Masuhara and Robert Hirschfeld), In Proceedings of the 8th International Workshop on Context-Oriented Programming, ACM, 2016.
Bibtex Entry:
@inproceedings{springer2016cop,
author = {Matthias Springer and Hidehiko Masuhara and Robert Hirschfeld},
title = {Classes As Layers: Rewriting Design Patterns with {COP}: Alternative Implementations of Decorator, Observer, and Visitor},
pdf = {cop2016.pdf},
booktitle = {Proceedings of the 8th International Workshop on Context-Oriented Programming},
series = {COP'16},
month = jul,
year = {2016},
isbn = {978-1-4503-4440-1},
date = {2016-07-19},
location = {Rome, Italy},
pages = {21--26},
numpages = {6},
opturl = {http://doi.acm.org/10.1145/2951965.2951968},
doi = {10.1145/2951965.2951968},
acmid = {2951968},
publisher = {ACM},
address = {New York, NY, USA},
keywords = {Context-Oriented Programming, Decorator, Design Patterns, Layers, Observer, Visitor, Squeak, Smalltalk},
abstract = {This paper analyzes and presents alternative implementations of three well-known Gang of Four design patterns: Decorator, Observer, and Visitor. These implementations are more than mere refactorings and take advantage of a variant of context-oriented programming that unifies classes and layers to overcome shortcomings in a conventional, object-oriented implementation.}
}