TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Commenting Source Code: Is It Worth It for Small Programming Tasks? (2018)

2 点作者 hacksilver超过 4 年前

2 条评论

hacksilver超过 4 年前
Abstract<p>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.<p>Link to paper [pdf]: <a href="https:&#x2F;&#x2F;cse.cs.ovgu.de&#x2F;cse-wordpress&#x2F;wp-content&#x2F;uploads&#x2F;2018&#x2F;10&#x2F;paper-influence-comments_preliminary.pdf" rel="nofollow">https:&#x2F;&#x2F;cse.cs.ovgu.de&#x2F;cse-wordpress&#x2F;wp-content&#x2F;uploads&#x2F;2018...</a>
chordalkeyboard超过 4 年前
I comment almost everything obsessively because I’m not a real programmer and its a way for me to add professionalism and make the stuff presentable when I inevitably have to ask someone to help me get it working.
评论 #26140708 未加载