loading
Papers Papers/2022 Papers Papers/2022

Research.Publish.Connect.

Paper

Paper Unlock

Authors: Francisco Ortin and Miguel García

Affiliation: University of Oviedo, Spain

Keyword(s): Design patterns, Refactoring, Software design, Parametric polymorphism, Generics.

Related Ontology Subjects/Areas/Topics: Architectural Design and Meta Architectures ; Cross-Feeding between Data and Software Engineering ; Design Thinking as a Paradigm for Software Development ; Paradigm Trends ; Service-Oriented Software Engineering and Management ; Software Engineering ; Software Quality Management

Abstract: The Tease Apart Inheritance refactoring is used to avoid tangled inheritance hierarchies that lead to code duplication. This big refactoring creates two parallel hierarchies and uses delegation to invoke one from the other. One of the drawbacks of this approach is that the root class of the new refactored hierarchy should be general enough to provide all its services. This weakness commonly leads to meaningless interfaces that violate the Liskov substitution principle. This paper describes a behavioral design pattern that allows modu-larization of different responsibilities in separate hierarchies that collaborate to achieve a common goal. It allows using the specific interface of each class in the parallel hierarchy, without imposing a meaningless interface to its root class. The proposed design is type safe, meaning that the compile-time type checking ensures that no type error will be produced at runtime, avoiding the use of dynamic type checking and re-flection.

CC BY-NC-ND 4.0

Sign In Guest: Register as new SciTePress user now for free.

Sign In SciTePress user: please login.

PDF ImageMy Papers

You are not signed in, therefore limits apply to your IP address 54.80.11.160

In the current month:
Recent papers: 100 available of 100 total
2+ years older papers: 200 available of 200 total

Paper citation in several formats:
Ortin, F. and García, M. (2011). A TYPE SAFE DESIGN TO ALLOW THE SEPARATION OF DIFFERENT RESPONSIBILITIES INTO PARALLEL HIERARCHIES. In Proceedings of the 6th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE; ISBN 978-989-8425-57-7; ISSN 2184-4895, SciTePress, pages 15-25. DOI: 10.5220/0003418000150025

@conference{enase11,
author={Francisco Ortin. and Miguel García.},
title={A TYPE SAFE DESIGN TO ALLOW THE SEPARATION OF DIFFERENT RESPONSIBILITIES INTO PARALLEL HIERARCHIES},
booktitle={Proceedings of the 6th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE},
year={2011},
pages={15-25},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0003418000150025},
isbn={978-989-8425-57-7},
issn={2184-4895},
}

TY - CONF

JO - Proceedings of the 6th International Conference on Evaluation of Novel Approaches to Software Engineering - ENASE
TI - A TYPE SAFE DESIGN TO ALLOW THE SEPARATION OF DIFFERENT RESPONSIBILITIES INTO PARALLEL HIERARCHIES
SN - 978-989-8425-57-7
IS - 2184-4895
AU - Ortin, F.
AU - García, M.
PY - 2011
SP - 15
EP - 25
DO - 10.5220/0003418000150025
PB - SciTePress