Abstract | ||
---|---|---|
Code duplication is a serious problem with no easy solution, even in industrial-strength code. Single inheritance cannot provide for effective code reuse in all situations, and sometimes programmers are driven to duplicate code using copy and paste. A language feature called traits enables code to be shared across the inheritance hierarchy, and claims to permit the removal of most duplication. We attempted to validate this claim in a case study of the java.io library. Detecting duplication was more complex than we had imagined, but traits were indeed able to remove all that we found. |
Year | DOI | Venue |
---|---|---|
2005 | 10.1145/1094855.1094963 | OOPSLA Companion |
Keywords | Field | DocType |
industrial-strength code,inheritance hierarchy,detecting duplication,io library,removing duplication,language feature,easy solution,effective code reuse,code duplication,case study,single inheritance,refactoring | Inheritance hierarchy,Duplicate code,Programming language,Code bloat,Computer science,Code reuse,Gene duplication,Java,Code refactoring | Conference |
ISBN | Citations | PageRank |
1-59593-193-7 | 11 | 0.48 |
References | Authors | |
5 | 3 |
Name | Order | Citations | PageRank |
---|---|---|---|
Emerson R. Murphy-hill | 1 | 1284 | 74.35 |
Philip J. Quitslund | 2 | 20 | 1.35 |
Andrew P. Black | 3 | 1566 | 366.84 |