ACM Home Page
Please provide us with feedback. Feedback
Traits: experience with a language feature
Full text PdfPdf (320 KB)
Source Conference on Object Oriented Programming Systems Languages and Applications archive
Companion to the 19th annual ACM SIGPLAN conference on Object-oriented programming systems, languages, and applications table of contents
Vancouver, BC, CANADA
SESSION: Practitioner reports table of contents
Pages: 275 - 282  
Year of Publication: 2004
ISBN:1-58113-833-4
Authors
Emerson R. Murphy-Hill  The Evergreen State College, Olympia, WA
Andrew P. Black  Oregon Health and Science University, Beaverton, OR
Sponsors
ACM: Association for Computing Machinery
SIGPLAN: ACM Special Interest Group on Programming Languages
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 7,   Downloads (12 Months): 19,   Citation Count: 1
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1028664.1028771
What is a DOI?

ABSTRACT

This paper reports our experiences using traits, collections of pure methods designed to promote reuse and understandability in object-oriented programs. Traits had previously been used to refactor the Smalltalk collection hierarchy, but only by the creators of traits themselves. This experience report represents the first independent test of these language features. Murphy-Hill implemented a substantialmulti-class data structure called ropes that makes significant use of traits. We found that traits improved understandability and reduced the number of methods that needed to be written by 46%.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
A. P. Black, "Cords," 1.0 ed. Beaverton, Oregon, USA: OGI School of Science & Engineering, 1998, http://www.cse.ogi.edu/ black/3AspectExamples/cords.html
3
 
4
 
5
N. Schärli, S. Ducasse, O. Nierstrasz, and A. P. Black, "Traits: Composable Units of Behavior," European Conference on Object-Oriented Programming (ECOOP), Springer LNCS 2743, Darmstadt, Germany, June 2003.
 
6
 
7
Squeak, "Squeak, Home Page" accessed June 2003: Squeak Foundation, 2000. http://www.squeak.org
8


Collaborative Colleagues:
Emerson R. Murphy-Hill: colleagues
Andrew P. Black: colleagues