Listening to Programmers - Taxonomies and Characteristics of Comments in Operating System Code

被引:57
作者
Padioleau, Yoann [1 ]
Tan, Lin [1 ]
Zhou, Yuanyuan [1 ]
机构
[1] Univ Illinois, Urbana, IL USA
来源
2009 31ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS | 2009年
基金
美国国家科学基金会;
关键词
D O I
10.1109/ICSE.2009.5070533
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Innovations from multiple directions have been proposed to improve software reliability. Unfortunately, many of the innovations are not fully exploited by programmers. To bridge the gap, this paper proposes a new approach to "listen" to thousands of programmers: studying their programming comments. Since comments express programmers' assumptions and intentions, comments can reveal programmers' needs, which can provide guidance (1) for language/-tool designers on where they should develop new techniques or enhance the usability of existing ones, and (2) for programmers on what problems are most pervasive and important so that they should take initiatives to adopt some existing tools or language extensions. We studied 1050 comments randomly sampled from the latest versions of Linux, FreeBSD, and OpenSolaris. We found that 52.6% of these comments could be leveraged by existing or to-be-proposed tools for improving reliability Our findings include: (1) many comments describe code relationships, code evolutions, or the usage and meaning of integers and integer macros, (2) a significant amount of comments could be expressed by existing annotation languages, and (3) many comments express synchronization I-elated concerns but are not well supported by annotation languages.
引用
收藏
页码:331 / 341
页数:11
相关论文
共 37 条
  • [1] [Anonymous], HUMAN INTERACTIONS P
  • [2] [Anonymous], NATURAL PROGRAMMING
  • [3] BUCKLEY J, 2005, J SOFTWARE MAINTENAN, P309
  • [4] Chou A., 2001, SOSP
  • [5] Condit J, 2007, LECT NOTES COMPUT SC, V4421, P520
  • [6] Cox Russ., 2008, ASPLOS
  • [7] DELINE R, 2006, VLHCC
  • [8] Engler D., 2001, SOSP
  • [9] ETZKORN L, 1999, NAT LANG ENG, V5, P219
  • [10] Do code and comments co-evolve?: On the relation between source code and comment changes
    Fluri, Beat
    Wuesch, Michael
    Gall, Harald C.
    [J]. 14TH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2007, : 70 - 79