Bern Open Repository and Information System (University of Bern) · 2017 · 28 citations · 13 references
ComputingComputer ScienceProgramming LanguagesSoftware EngineeringSystems ProgrammingAbstract Syntax TreesSoftware ArchitectureSoftware ConstructionSoftware DesignSoftware RefactoringSoftware ReuseAutomated RefactoringDuplication MechanismsHierarchical Code MaintenanceHierarchyRefactoringReuse
Traits are a programming language technology that promote the reuse of methods between unrelated classes. This paper reports on a refactoring of the Smalltalk collections classes using traits. The original collection classes contained much duplication of code; traits let us remove all of it. We also found places where the protocols of the collections lacked uniformity; traits allowed us to correct these non-uniformities without code duplication. Traits also make it possible to reuse fragments of collection code outside of the existing hierarchy; for example, they make it easy to convert other collection-like things into true collections. Our refactoring reduced the number of methods in the collection classes by approximately 10 per cent. More importantly, understandability maintainability and reusability of the code were significantly improved.
13
Refactoring object-oriented frameworks
William F. Opdyke · 1992 · 1K citations
David Ungar, Randall B. Smith · 1987 · 909 citations
A semantics of multiple inheritance
Luca Cardelli · Information and Computation · 1988 · 627 citations
Language Studies, World Languages, Knowledge Representation +7
Distrbution and Abstract Types in Emerald
Andrew P. Black, N.C. Hutchinson, Eric Jul et al. · IEEE Transactions on Software Engineering · 1987 · 409 citations