Main research interests:
Artificial Intelligence for Software Engineering
Software analytics
Software evolution
Legal aspects of software development
Continuous Integration and Delivery
Over the past five years, Massimiliano Di Penta's research has focused on empirical software engineering, addressing challenges related to software development, evolution, maintenance, quality assurance, and the adoption of emerging technologies. His work combines large-scale mining of software repositories, controlled experiments, qualitative studies, static and dynamic program analysis, and the development and evaluation of automated techniques based on machine learning and Large Language Models (LLMs).
1. Artificial Intelligence for Software Engineering (AI4SE)
This research investigates the application of artificial intelligence to support and automate software development and maintenance activities. Earlier contributions explored deep learning and transformer-based techniques for source code completion, API recommendation, and code generation, evaluating their effectiveness and limitations in realistic development scenarios. More recent studies focus on the capabilities of LLMs for software engineering tasks, including code summarization, refactoring, technical debt removal, and the analysis of source code and development artifacts. Further research investigates the correctness, quality, and provenance of AI-generated code, including approaches for distinguishing human-written from machine-generated code. Representative contributions include empirical evaluations of neural code completion techniques and the development of GPTSniffer for detecting ChatGPT-generated code.
2. Software Evolution, Maintenance, and Technical Debt
This research examines how software systems evolve, why developers perform maintenance activities, and how technical debt accumulates and is eventually addressed. Particular attention has been devoted to self-admitted technical debt, investigating how developers document it in source code comments, their motivations for introducing it, and the circumstances leading to its removal. Other studies explore the relationships between technical debt, code smells, refactoring, and software defects, including the effectiveness of automated approaches to identifying and removing maintenance problems. Research also investigates developers' motivations for refactoring, the characteristics of maintenance changes, and the differences between industrial and open-source development practices.
3. Programming Language Constructs, Code Quality, and Program Comprehension
This research investigates how programming language features and coding idioms influence software quality, developer productivity, code understandability, and execution performance. A substantial research direction focuses on Pythonic constructs, including list comprehensions, lambda expressions, functional programming constructs, and different argument-passing mechanisms. Through controlled experiments and empirical analyses of real-world projects, these studies compare idiomatic and conventional programming styles, investigating their impact on program comprehension, performance, and the likelihood of introducing defects. Further contributions examine the evolution and refactoring of non-idiomatic code, including the use of LLMs to automate transformations toward more idiomatic programming styles. This research provides empirical evidence to support coding guidelines, language-specific refactoring recommendations, and decisions about the adoption of programming constructs.
4. Continuous Integration, Continuous Delivery, and DevOps
This research investigates the adoption, evolution, and maintenance of automated software integration, testing, and delivery processes. Large-scale empirical studies have characterized configuration smells and bad practices in CI/CD pipelines, analyzing their prevalence, evolution, and implications for development workflows. Other contributions investigate how developers maintain and refactor CI/CD configurations, the challenges of managing build automation, and the relationships between pipeline characteristics and software development activities. Particular attention has also been devoted to CI/CD in cyber-physical systems, where hardware dependencies, simulation environments, and complex integration requirements introduce challenges beyond those encountered in conventional software projects.
5. Software Testing, Quality Assurance, and Reliability
This research addresses the identification, characterization, and prevention of software defects, as well as the effectiveness of software testing and quality assurance practices. Contributions include mutation testing approaches for mobile applications, empirical investigations of fault introduction and bug-fixing activities, and studies of defect prediction techniques. Research has also examined the impact of dormant defects on the evaluation of defect prediction models and the use of code review information to automatically configure static analysis tools. The overarching objective is to improve the effectiveness of software quality assurance by combining automated analysis with empirical evidence about real-world development and testing practices.
6. Software Supply Chains, Dependencies, and Legal Aspects in Software Development
This research investigates the management, evolution, traceability, and legal implications of software components and their dependencies. Contributions include recommendation systems for third-party libraries, automated support for library replacement and API migration, and empirical investigations into the accuracy of dependency metadata across software development platforms. Recent studies examine the adoption, completeness, and quality of Software Bills of Materials (SBOMs), including their effectiveness in documenting software components, dependencies, licenses, and known vulnerabilities. Another research direction addresses software licensing, copyright, and legal compliance, particularly regarding open-source reuse and AI-generated code. These studies investigate the provenance and licensing of generated artifacts, developers' perceptions of intellectual property risks, and the availability and consistency of licensing information for software, machine learning models, and datasets.
7. Software Engineering for AI-Based and Emerging Software Systems
This research examines software engineering challenges associated with emerging application domains and technologies, particularly machine learning systems, cyber-physical systems, mobile applications, and video games. In the machine learning domain, studies investigate development practices, framework usage, software quality, and the documentation and reuse of models distributed through platforms such as Hugging Face. Specific topics include model cards, dataset provenance, model metadata, and the information required to support trustworthy model selection and reuse. Other contributions investigate domain-specific defects and quality concerns in cyber-physical and unmanned aerial vehicle software, performance issues in Android applications, and code smells in video game development environments.
8. Human and Social Aspects of Software Engineering
This research investigates how human factors, collaboration practices, and developer perceptions influence software development and maintenance. Empirical studies examine developers' motivations for refactoring, documenting, and removing technical debt, adopting development tools, and making design and implementation decisions. Other contributions analyze developer discussions, source code comments, and knowledge-sharing platforms such as Stack Overflow to understand how developers communicate problems, exchange knowledge, and address technical challenges. More recently, this research has extended to human–AI interaction in software engineering, investigating developers' adoption of generative AI tools, their perceptions of AI-generated code, and the implications of AI assistance for software development practices, software ownership, and education.