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 do not significantly affect defect-proneness in open-source 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.

Authors

Institutions

Publication Details

Published
2025-04-27
DOI
https://doi.org/10.1109/icse-companion66252.2025.00031
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Studying and Improving Code Understandability Through Atoms of Confusion

Guoshuai Shi
1 links
Software Engineering Research
article

Studying and Improving Code Understandability Through Atoms of Confusion

Guoshuai Shi
article en

Abstract

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 do not significantly affect defect-proneness in open-source 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.

University of Waterloo (CA)
Openalex Percentile: Top 81%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Studying and Improving Code Understandability Through Atoms of Confusion — Guoshuai Shi · (2025) | TGRS Research Map | TGRS