Canada Spends Logo

Explore our Budget 2026 analysis

Grant: Discovery Launch Supplement

McGill University

$12,500.00

Variability-aware code manipulation for reducing the complexity of software systems

FY 2024-25

Summary
Software systems tend to become more complex as they age, due to various factors including recurring code modifications to meet new requirements or adapt to changing environments. Another cause is the implementation of short-term solutions, prioritizing faster development processes over long-term software stability and quality. This accumulated technical debt leads to codebases which are increasingly challenging to maintain and require ever-growing resources for new feature development. This slows down innovation and reduces code quality, increasing defects, proneness to failures, poor user experience, and may reach a critical mass where the system deteriorates more rapidly than it can be maintained. Managing technical debt requires a proactive approach and dedicated resources. Because it does not yield immediate and visible outcomes, it is often considered a low priority. Strategies to manage technical debt include maintaining code quality through code reviews, development best practices, and automated testing. Essential to this is code refactoring, which improves codebase structure and readability without changing its external behaviour. The long-term goal of this research program is to assist technical debt reduction by automating code manipulation for refactoring tasks. The use of large language models for generating and manipulating code has recently increased and shown great results. However, traceability and explainability are critical in automated refactoring to ensure unchanged behaviour and prevent new defects or additional technical debt. The use of "black boxes" in this scenario carries risks, and I consider that transparent and reproducible methods are preferable for this task. The short-term objectives in the next 5 years consist in extracting, representing and reusing knowledge regarding code variability. The first objective is to analyze datasets of code variants to identify common structures and variation points. As a second objective, I plan to extend the methods and tools from the field of variability representation and management to code artifacts. This field focuses on efficiently representing and maintaining variants, as well as capturing spaces of decisions to help practitioners navigating large collections of alternatives. The third objective focuses on leveraging variability models and the decisions they capture in automated tools for assisting code manipulation. Leveraging knowledge from software artifact variants can improve product quality while reducing development and maintenance costs. Formalizing this knowledge enables its reuse to assist practitioners in making informed decisions and navigating alternative solutions to a problem. In the software industry, these methods and tools have the potential to greatly facilitate technical debt reduction by decreasing the resources invested in refactoring activities and related decision-making processes.
Program
Discovery Launch Supplement
Location
Quebec, Canada
Recipient Type
Academia
Type
Grant
Source
NSERC's Awards Data

As published

Application id
DGECR-2024-00355
Name nom
Galasso-Carbonnel, Jessie
Department département
Department of Electrical and Computer Engineering
Organization id
61
Institution établissement
McGill University
Province en
Québec
Province fr
Québec
Country en
CANADA
Country fr
CANADA
Fiscal year exercice financier
2024
Competition year année de concours
2024
Award amount
12500
Program id
DGECR
Program name en
Discovery Launch Supplement
Program name fr
Supplément Tremplin vers la découverte
Group en
DISCOVERY RESEARCH
Group fr
RECHERCHE AXÉE SUR LA DÉCOUVERTE
Committee code
1507
Committee name en
Computer Science
Committee name fr
Sciences informatiques
Area of application code
801
Area of application group en
Information and communication services
Area of application group fr
Services d'information et de télécommunications
Area of application en
Computer software
Area of application fr
Logiciel
Research subject code
2706
Research subject group en
Information technology
Research subject group fr
Technologie de l'information
Research subject en
Software engineering
Research subject fr
Génie logiciel
Field of research list names en
Not available
Field of research list names fr
Non disponible
Socioeconomic objective list names en
Not available
Socioeconomic objective list names fr
Non disponible
Application title
Variability-aware code manipulation for reducing the complexity of software systems
Keywords
automated software engineering; code refactoring; variability management and modelling; knowledge extraction
Application summary
Software systems tend to become more complex as they age, due to various factors including recurring code modifications to meet new requirements or adapt to changing environments. Another cause is the implementation of short-term solutions, prioritizing faster development processes over long-term software stability and quality. This accumulated technical debt leads to codebases which are increasingly challenging to maintain and require ever-growing resources for new feature development. This slows down innovation and reduces code quality, increasing defects, proneness to failures, poor user experience, and may reach a critical mass where the system deteriorates more rapidly than it can be maintained. Managing technical debt requires a proactive approach and dedicated resources. Because it does not yield immediate and visible outcomes, it is often considered a low priority. Strategies to manage technical debt include maintaining code quality through code reviews, development best practices, and automated testing. Essential to this is code refactoring, which improves codebase structure and readability without changing its external behaviour. The long-term goal of this research program is to assist technical debt reduction by automating code manipulation for refactoring tasks. The use of large language models for generating and manipulating code has recently increased and shown great results. However, traceability and explainability are critical in automated refactoring to ensure unchanged behaviour and prevent new defects or additional technical debt. The use of "black boxes" in this scenario carries risks, and I consider that transparent and reproducible methods are preferable for this task. The short-term objectives in the next 5 years consist in extracting, representing and reusing knowledge regarding code variability. The first objective is to analyze datasets of code variants to identify common structures and variation points. As a second objective, I plan to extend the methods and tools from the field of variability representation and management to code artifacts. This field focuses on efficiently representing and maintaining variants, as well as capturing spaces of decisions to help practitioners navigating large collections of alternatives. The third objective focuses on leveraging variability models and the decisions they capture in automated tools for assisting code manipulation. Leveraging knowledge from software artifact variants can improve product quality while reducing development and maintenance costs. Formalizing this knowledge enables its reuse to assist practitioners in making informed decisions and navigating alternative solutions to a problem. In the software industry, these methods and tools have the potential to greatly facilitate technical debt reduction by decreasing the resources invested in refactoring activities and related decision-making processes.