An exploration of how comments are used for marking related code fragments

  • Authors:
  • Annie T. T. Ying;James L. Wright;Steven Abrams

  • Affiliations:
  • IBM Watson Research Center, Hawthorne, NY;IBM Watson Research Center, Hawthorne, NY;IBM Watson Research Center, Hawthorne, NY

  • Venue:
  • MACS '05 Proceedings of the 2005 workshop on Modeling and analysis of concerns in software
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

A software developer performing a change task to a system very often has to examine a concern that is scattered across the source code of the system. Although many mechanisms attempt to alleviate the problem of dealing with scattered code, many software developers are still using more ad-hoc approaches to mark related code. In this paper, we explore how developers use comments to mark related code. We found that developers use two basic kinds of conventions to mark related code in comments: by explicitly stating relationships in the comment and by using similar comments in related code elements. These conventions have several major issues. However, we observe that using comments to mark related code fragments offers several benefits. We hope that our observations can give insights into building better tool support for scattered code fragments.