Studying and Improving Code Understandability through Atoms of Confusion
Developers spend most of their time reading code. Previous studies have shown that less understandable code hinders developers’ productivity, making reading and debugging code harder and raising maintenance costs. In this research, we investigate how Atoms of Confusion (AoCs)–a set of low-level programming idioms for C-like languages proposed as a potential source of code confusion–can affect program comprehension and code quality. Specifically, we investigate (1) the impact of AoCs in the Open-Source Software (OSS) development community with Mining Software Repository (MSR) techniques, (2) how developers perceive how AoCs can affect comprehension, and (3) how Large Language Models (LLMs) can be used to refactor AoCs when appropriate. To this end, our preliminary study explores the defect-proneness of AoCs in open-source Java projects. We discovered that AoCs generally did not affect defect-proneness in opensource Java projects, but future works are needed to investigate how developers interact with AoCs under various circumstances, such as different projects and programming languages. As our next steps, we aim to gather developers’ perceptions of AoCs by conducting developer surveys. Next, based on these empirical findings, we will study how to LLMs can help refactor AoCs according to specific contexts such as developer experience and project convention. We expect this work will offer insights for researchers seeking to understand cognitive challenges in coding and practitioners looking to implement more effective strategies for enhancing code understandability and maintainability.
Tue 29 AprDisplayed time zone: Eastern Time (US & Canada) change
11:00 - 12:00 | Session 2: Human aspects (talks and panel)Doctoral Symposium at 212 Chair(s): Alexander Serebrenik Eindhoven University of Technology | ||
11:00 6mTalk | Decoding Diversity: Understanding its Impact on Team Performance in Software Teams Doctoral Symposium Kezia Devathasan University of Victoria | ||
11:06 6mTalk | Diverse Participation and Newcomer Risk Perception in Open Source Software Communities Doctoral Symposium Hana Frluckaj University of Texas | ||
11:12 6mTalk | A Framework for Supporting Transparency in Software Ecosystems Portals from the Point of View of Developer Experience Doctoral Symposium Rodrigo Zacarias UNIRIO - Universidade Federal do Estado do Rio de Janeiro | ||
11:18 6mTalk | Studying and Improving Code Understandability through Atoms of Confusion Doctoral Symposium Guoshuai Shi University of Waterloo | ||
11:24 6mTalk | Understanding and Improving Code Review of Changes in Build Systems Doctoral Symposium Mahtab Nejati University of Waterloo | ||
11:30 30mPanel | Panel: Human aspects Doctoral Symposium Rashina Hoda Monash University, David Redmiles University of California, Irvine, Gema Rodríguez-Pérez Department of Computer Science, Mathematics, Physics and Statistics, University of British Columbia, Okanagan Campus, Kezia Devathasan University of Victoria, Hana Frluckaj University of Texas, Mahtab Nejati University of Waterloo, Guoshuai Shi University of Waterloo, Rodrigo Zacarias UNIRIO - Universidade Federal do Estado do Rio de Janeiro |