IDEAS home Printed from https://ideas.repec.org/a/ids/ijassi/v10y2023i2p83-93.html
   My bibliography  Save this article

Predicting code beauty with machine learning model

Author

Listed:
  • Ermira Daka

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.

Suggested Citation

  • Ermira Daka, 2023. "Predicting code beauty with machine learning model," International Journal of Applied Systemic Studies, Inderscience Enterprises Ltd, vol. 10(2), pages 83-93.
  • Handle: RePEc:ids:ijassi:v:10:y:2023:i:2:p:83-93
    as

    Download full text from publisher

    File URL: http://www.inderscience.com/link.php?id=133898
    Download Restriction: Access to full text is restricted to subscribers.
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ids:ijassi:v:10:y:2023:i:2:p:83-93. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sarah Parker (email available below). General contact details of provider: http://www.inderscience.com/browse/index.php?journalID=205 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.