arrow
Return

Commenting source code: is it worth it for small programming tasks?

delete2018-11-16
delete19
PRE
AI
S
Sebastian Nielebock *
D
Dariusz Krolikowski
J
Jacob Krüger
T
Thomas Leich
F
Frank Ortmeier
DOI:10.1007/s10664-018-9664-zdelete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Maintaining a program is a time-consuming and expensive task in software engineering. Consequently, several approaches have been proposed to improve the comprehensibility of source code. One of such approaches are comments in the code that enable developers to explain the program with their own words or predefined tags. Some empirical studies indicate benefits of comments in certain situations, while others find no benefits at all. Thus, the real effect of comments on software development remains uncertain. In this article, we describe an experiment in which 277 participants, mainly professional software developers, performed small programming tasks on differently commented code. Based on quantitative and qualitative feedback, we i) partly replicate previous studies, ii) investigate performances of differently experienced participants when confronted with varying types of comments, and iii) discuss the opinions of developers on comments. Our results indicate that comments seem to be considered more important in previous studies and by our participants than they are for small programming tasks. While other mechanisms, such as proper identifiers, are considered more helpful by our participants, they also emphasize the necessity of comments in certain situations.
Keywords:
Comments
Program comprehension
Empirical study
Documentation
Maintenance
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

O
Otto von Guericke University
Scholars:
8.5K
Papers: 6.7K
Citations: 54
Cited Papers

Cited Papers

The anterior process of the malleus in extant Lagomorpha (Mammalia)
err2017-10-25
err0
PREAI
errWolfgang Maier; Adrian Tröscher; Irina Ruf
errShare
errSave
Estimation of phase derivative from a single fringe pattern using Riesz transforms
err2017-04-12
err0
PREAI
errYassine Tounsi; Sara Zada; Desire Muhire; Ahmed Siari; Abdelkrim Nassim
errShare
errSave
An empirical study on the impact of static typing on software maintainability
err2013-12-11
err56
PREAI
errHanenberg, Stefan; Kleinschmager, Sebastian; Robbes, Romain; Tanter, Eric; Stefik, Andreas
errShare
errSave
errShare
errSave
researcher View more