Write a Blog >>
ICPC 2020
Mon 13 - Wed 15 July 2020
co-located with ICSE 2020
Wed 15 Jul 2020 01:45 - 02:00 at ICPC - Session 10: Documentation Chair(s): Gias Uddin

Source code commenting is a common practice to improve code comprehension in software development. While comments often consist of descriptive natural language, surprisingly, there exists a non-trivial portion of comments that are actually code statements, i.e., commented-out code (CO code), even in well-maintained software systems. Commented-out code practice is rarely studied and often excluded in prior studies on comments due to its irrelevance to natural language. When being openly discussed, CO practice is generally considered a bad practice. However, there is no prior work to assess the nature (prevalence, evolution, motivation, and necessity of utilization) of CO code practice. In this paper, we perform the first study to understand CO code practice. Inspired by prior works in comment analysis, we develop automated solutions to identify CO code and track its evolution in development history. Through analyzing six open-source projects of different sizes and from diverse domains, we find that CO code practice is non-trivial in software development, especially in the early phase of development history, e.g., up to 20% of the commits involve CO code practice. We observe common evolution patterns of CO code and find that developers may uncomment and comment code more frequently than expected, e.g., 10% of the CO code practices have been uncommented at least once. Through a manual analysis, we identify the common reasons that developers adopt CO code practices and reveal maintenance challenges associated with CO code practices.

Wed 15 Jul

Displayed time zone: (UTC) Coordinated Universal Time change

01:30 - 02:30
Session 10: DocumentationIndustry / Research / ERA at ICPC
Chair(s): Gias Uddin University of Calgary, Canada
01:30
15m
Paper
Deep-Diving into Documentation to Develop Improved Java-to-Swift API Mapping
Research
Zejun Zhang , Minxue Pan Nanjing University, Tian Zhang Nanjing University, Xinyu Zhou Nanjing University, Xuandong Li Nanjing University
Media Attached
01:45
15m
Paper
The Secret Life of Commented-Out Source Code
Research
Tri Minh-Triet Pham Concordia University, Jinqiu Yang Concordia University, Montreal, Canada
Pre-print Media Attached
02:00
15m
Paper
Ownership at Large — Open Problems and Challenges in Ownership Management
Industry
John Ahlgren Facebook, Maria Eugenia Berezin Facebook, Kinga Bojarczuk Facebook, Johann George Facebook, Natalija Gucevska Facebook, Mark Harman Facebook and University College London, Shan He Facebook, Ralf Laemmel Facebook London, Erik Meijer , Silvia Sapora Facebook, Justin Spahr-Summers Facebook
Pre-print Media Attached
02:15
15m
Paper
Detecting Code Comment Inconsistency using Siamese Recurrent Network
ERA
Fazle Rabbi Institute of Information Technology, University of Dhaka, Md Saeed Siddik Institute of Information Technology, University of Dhaka
Pre-print Media Attached