• DocumentCode
    1936157
  • Title

    What´s in a Name? A Study of Identifiers

  • Author

    Lawrie, D. ; Morrell, C. ; Feild, H. ; Binkley, D.

  • Author_Institution
    Loyola Coll., Baltimore, MD
  • fYear
    2006
  • fDate
    14-16 June 2006
  • Firstpage
    3
  • Lastpage
    12
  • Abstract
    Readers of programs have two main sources of domain information: identifier names and comments. When functions are uncommented, as many are, comprehension is almost exclusively dependent on the identifier names. Assuming that writers of programs want to create quality identifiers (e.g., include relevant domain knowledge) how should they go about it? For example, do the initials of a concept name provide enough information to represent the concept? If not, and a longer identifier is needed, is an abbreviation satisfactory or does the concept need to be captured in an identifier that includes full words? Results from a study designed to investigate these questions are reported. The study involved over 100 programmers who were asked to describe twelve different functions. The functions used three different "levels" of identifiers: single letters, abbreviations, and full words. Responses allow the level of comprehension associated with the different levels to be studied. The functions include standard algorithms studied in computer science courses as well as functions extracted from production code. The results show that full word identifiers lead to the best comprehension; however, in many cases, there is no statistical difference between full words and abbreviations
  • Keywords
    reverse engineering; program comments; program comprehension; program identifier names; Code standards; Computer science; Data mining; Educational institutions; Natural languages; Production; Programming profession; Quality assessment; Software quality; Software systems;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Program Comprehension, 2006. ICPC 2006. 14th IEEE International Conference on
  • Conference_Location
    Athens
  • ISSN
    1092-8138
  • Print_ISBN
    0-7695-2601-2
  • Type

    conf

  • DOI
    10.1109/ICPC.2006.51
  • Filename
    1631100