Evaluation of design pattern alternatives in Java. (31st December 2021)
- Record Type:
- Journal Article
- Title:
- Evaluation of design pattern alternatives in Java. (31st December 2021)
- Main Title:
- Evaluation of design pattern alternatives in Java
- Authors:
- Bijlsma, Lex A.
Kok, Arjan J. F.
Passier, Harrie J. M.
Pootjes, Harold J.
Stuurman, Sylvia - Abstract:
- Abstract: Design patterns are standard solutions to common design problems. The famous Gang of Four book describes more than twenty design patterns for the object‐oriented paradigm. These patterns were developed more than twenty‐five years ago, using the programming language concepts available at that time. Patterns do not always fit underlying domain concepts. For example, even when a concrete strategy is a pure function, the classical strategy pattern represents this as a separate subclass and as such obscures the intent of this pattern with extra complexities due to the inheritance‐based implementation. Due to the ongoing development of oo ‐languages, a relevant question is whether the implementation of these patterns can be improved using new language features, such that they fit more closely with the intent. An additional question is then how we can decide which implementation is to be preferred. In this article, we investigate both questions, using the strategy pattern as an example. Our main contribution is that we show how to reason about different implementations, using both the description of a design pattern and design principles as guidance.
- Is Part Of:
- Software, practice & experience. Volume 52:Number 5(2022)
- Journal:
- Software, practice & experience
- Issue:
- Volume 52:Number 5(2022)
- Issue Display:
- Volume 52, Issue 5 (2022)
- Year:
- 2022
- Volume:
- 52
- Issue:
- 5
- Issue Sort Value:
- 2022-0052-0005-0000
- Page Start:
- 1305
- Page End:
- 1315
- Publication Date:
- 2021-12-31
- Subjects:
- design patterns -- features of programming languages -- functional features -- multiparadigm -- programming languages
Computer software -- Periodicals
Computer programming -- Periodicals
Computer programs -- Periodicals
005.3 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/spe.3061 ↗
- Languages:
- English
- ISSNs:
- 0038-0644
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.453000
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 21234.xml