Queen's University at Kingston
Empirical Studies on Code Refactoring Practices in Software Development Process
Abstract
dc:description.abstractRefactoring is a crucial aspect of code maintenance, involving modifications to the internal structure of code without altering its external behavior. Developers often invest significant effort in improving code through refactoring. Refactoring provides benefits, such as simplifying maintenance, enhancing code readability, and helping developers gain a better understanding of the code. Due to the absence of large-scale studies and comprehensive quality evaluations, the refactoring practices employed by developers and their impact on code quality during software development remain largely unexplored. For example, it is unclear how often developers engage in refactoring and whether frequent refactoring leads to better code quality compared to infrequent refactoring. Additionally, the lack of comprehensive refactoring tools for popular programming languages like Python, which is commonly used in emerging domains such as machine learning (ML), skews research toward more widely studied languages like Java, which has benefited from more advanced refactoring detection tools in recent years. This thesis addresses these gaps by conducting three empirical studies to (1) identify short-term and long-term refactoring strategies and their relationship with code quality, (2) analyze release-wise refactoring patterns and their impact on release quality, and (3) detect and study refactoring-related commits in Python ML projects through an ML-based refactoring detection approach. The research conducted in this thesis helps practitioners understand current refactoring trends, their relationship with code quality, and provides a machine learning-based refactoring detection tool for studying refactoring practices in the Python ML domain, which is intended to guide future research toward less-studied languages, such as Python.
Degree
thesis:*- Department dc:contributor.department
- Electrical and Computer Engineering
- Grantor
- Queen's University at Kingston
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Noei, Shayan
- Advisor dc:contributor.supervisor
-
- Zou, Ying
Subjects
dc:subject × 4Rights
dc:rights- Statement dc:rights
-
- Attribution 4.0 International
- Licence dc:rights.uri
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/1974/34165