Unveiling process insights from refactoring practices

dc.contributor.authorCaldeira, J.
dc.contributor.authorBrito e Abreu, F.
dc.contributor.authorCardoso, J.
dc.contributor.authorReis, J.
dc.date.accessioned2021-12-30T16:31:07Z
dc.date.issued2022
dc.date.updated2021-12-30T16:29:04Z
dc.description.abstractContext: Software comprehension and maintenance activities, such as refactoring, are said to be negatively impacted by software complexity. The methods used to measure software product and processes complexity have been thoroughly debated in the literature. However, the discernment about the possible links between these two dimensions, particularly on the benefits of using the process perspective, has a long journey ahead. Objective: To improve the understanding of the liaison of developers’ activities and software complexity within a refactoring task, namely by evaluating if process metrics gathered from the IDE, using process mining methods and tools, are suitable to accurately classify different refactoring practices and the resulting software complexity. Method: We mined source code metrics from a software product after a quality improvement task was given in parallel to (117) software developers, organized in (71) teams. Simultaneously, we collected events from their IDE work sessions (320) and used process mining to model their processes and extract the correspondent metrics. Results: Most teams using a plugin for refactoring (JDeodorant) reduced software complexity more effectively and with simpler processes than the ones that performed refactoring using only Eclipse native features. We were able to find moderate correlations (43%) between software cyclomatic complexity and process cyclomatic complexity. Using only process-driven metrics, we computed 30,000 models aiming to predict the type of refactoring method (automatic or manual) teams had used and the expected level of software cyclomatic complexity reduction after their work sessions. The best models found for the refactoring method and cyclomatic complexity level predictions had an accuracy of 92.95% and 94.36%, respectively. Conclusions: We have demonstrated the feasibility of an approach that allows building cross-cutting analytical models in software projects, such as the one we used for detecting manual or automatic refactoring practices. Events from the development tools and support activities can be collected, transformed, aggregated, and analyzed with fewer privacy concerns or technical constraints than source code-driven metrics. This makes our approach agnostic to programming languages, geographic location, or development practices, making it suitable for challenging contexts, such as, in modern global software development where many projects adopt agile methodologies and low/no-code platforms. Initial findings are encouraging, and lead us to suggest practitioners may use our method in other development tasks, such as defect analysis and unit or integration tests.eng
dc.identifier.doi10.1016/j.csi.2021.103587
dc.identifier.issn0920-5489
dc.identifier.urihttp://hdl.handle.net/10071/23854
dc.journalComputer Standards and Interfaces
dc.language.isoeng
dc.peerreviewedyes
dc.publisherElsevier
dc.relationUIDB/04466/2020
dc.relationUIDP/04466/2020
dc.rightsopen access
dc.subjectSoftware complexityeng
dc.subjectSoftware process complexityeng
dc.subjectSoftware development process miningeng
dc.subjectRefactoring Practiceseng
dc.subject.fosDomínio/Área Científica::Engenharia e Tecnologia::Engenharia Eletrotécnica, Eletrónica e Informáticapor
dc.titleUnveiling process insights from refactoring practiceseng
dc.typearticle
dc.volume81
degois.publication.titleUnveiling process insights from refactoring practiceseng
dspace.entity.typePublicationen
iscte.identifier.cienciahttps://ciencia.iscte-iul.pt/id/ci-pub-83559
iscte.subject.odsEducação de qualidadepor
iscte.subject.odsIndústria, inovação e infraestruturaspor

Ficheiros