Predicting code beauty with machine learning model
Ermira Daka
International Journal of Applied Systemic Studies, 2023, vol. 10, issue 2, 83-93
Abstract:
Software maintenance is one of the most expensive phases of the software development life cycle. This cost increases more when maintenance is performed on poorly written code. There exist a set of code writing patterns that developers need to follow to write good-looking code. However, coding that conforms to 'rules' is not always possible. During software evolution, code goes through different changes, which are the main reasons for breaking the rules of beautiful code. In this paper, we propose a machine learning (ML)-based model which will measure the beauty of a written code. The model built on a set of ten code-based features is learned using logic regression algorithm and is able to predict how beautiful is given peace of code. Furthermore, the model is evaluated using an empirical study, which shows that it has a moderate agreement with developers about the beauty of the code.
Keywords: machine learning; code beauty; software maintenance. (search for similar items in EconPapers)
Date: 2023
References: Add references at CitEc
Citations:
Downloads: (external link)
http://www.inderscience.com/link.php?id=133898 (text/html)
Access to full text is restricted to subscribers.
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:ids:ijassi:v:10:y:2023:i:2:p:83-93
Access Statistics for this article
More articles in International Journal of Applied Systemic Studies from Inderscience Enterprises Ltd
Bibliographic data for series maintained by Sarah Parker ().