How Maintainable is Proficient Code? A Case Study of Three PyPI Libraries
Indira Febriyanti, Youmei Fan, Kazumasa Shimari, Kenichi Matsumoto,, and Raula Gaikovina Kula

TL;DR
This study explores the relationship between code proficiency and maintainability risk in Python libraries, revealing that while most proficient code is maintainable, some high-proficiency constructs can pose risks.
Contribution
It provides an empirical analysis of proficient Python code in real libraries, highlighting scenarios where proficiency correlates with maintenance risk.
Findings
Most proficient code has low maintainability risk.
Certain proficient constructs like 'enumerate' and generator expressions can be risky.
High proficiency does not always imply low maintenance difficulty.
Abstract
Python is very popular because it can be used for a wider audience of developers, data scientists, machine learning experts and so on. Like other programming languages, there are beginner to advanced levels of writing Python code. However, like all software, code constantly needs to be maintained as bugs and the need for new features emerge. Although the Zen of Python states that "Simple is better than complex," we hypothesize that more elegant and proficient code might be harder for the developer to maintain. To study this relationship between the understanding of code maintainability and code proficiency, we present an exploratory study into the complexity of Python code on three Python libraries. Specifically, we investigate the risk level of proficient code inside a file. As a starting point, we mined and collected the proficiency of code from three PyPI libraries totaling 3,003…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLibrary Collection Development and Digital Resources · Web and Library Services · Business Strategies and Innovation
