Evaluation of design pattern alternatives in Java

Autor: Lex A. Bijlsma, Arjan J. F. Kok, Harrie J. M. Passier, Harold J. Pootjes, Sylvia Stuurman
Přispěvatelé: RS-Research Line Teaching and learning (part of THIS program), Department of Computer Science, RS-Research Line Learning (part of LIRS program), Faculty of Science, RS-Research Line Software quality (part of THIS program)
Jazyk: angličtina
Rok vydání: 2022
Předmět:
Zdroj: Software-Practice & Experience, 52(5), 1305-1315. John Wiley and Sons Ltd
Stuurman, S, Bijlsma, A, Kok, A J F, Passier, H J M & Pootjes, H J 2022, ' Evaluation of design pattern alternatives in Java ', Software-Practice & Experience, vol. 52, no. 5, pp. 1305-1315 . https://doi.org/10.1002/spe.3061
ISSN: 0038-0644
DOI: 10.1002/spe.3061
Popis: 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.
Databáze: OpenAIRE