loading
Documents

Research.Publish.Connect.

Paper

Paper Unlock

Authors: Fernando Barbosa 1 and Ademar Aguiar 2

Affiliations: 1 Instituto Politecnico de Castelo Branco, Portugal ; 2 INESCTEC and Faculdade de Engenharia da Universidade do Porto, Portugal

ISBN: 978-989-8565-62-4

Keyword(s): Roles, Traits, Code Reuse, Modularity, Composition, Inheritance.

Related Ontology Subjects/Areas/Topics: Service-Oriented Software Engineering and Management ; Software and Systems Development Methodologies ; Software Engineering

Abstract: Code replication has significant drawbacks in system maintenance. Code replication can have its origins in the composition limitations of the language. Several proposals have tried to overcome these limitations. A popular one is traits. However, traits do not support state or visibility control. Static roles are also a way of composing classes that has the benefits of traits and offers state, visibility control and other advantages as block renaming. We compare both approaches on how they are used to compose classes, and how they can be used to reduce code replication caused by composition limitations. As a case study we will compare how both approaches can reduce code replication by detecting and removing code clones within the JHotDraw framework. Results show that roles are capable of reducing a larger amount of replicated code than traits.

PDF ImageFull Text

Download
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 34.204.194.190

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:
Barbosa, F. and Aguiar, A. (2013). Composing Classes - Roles Vs Traits.In Proceedings of the 8th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-8565-62-4, pages 63-73. DOI: 10.5220/0004424000630073

@conference{enase13,
author={Fernando Barbosa. and Ademar Aguiar.},
title={Composing Classes - Roles Vs Traits},
booktitle={Proceedings of the 8th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2013},
pages={63-73},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0004424000630073},
isbn={978-989-8565-62-4},
}

TY - CONF

JO - Proceedings of the 8th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - Composing Classes - Roles Vs Traits
SN - 978-989-8565-62-4
AU - Barbosa, F.
AU - Aguiar, A.
PY - 2013
SP - 63
EP - 73
DO - 10.5220/0004424000630073

Login or register to post comments.

Comments on this Paper: Be the first to review this paper.