Code Improvement Practices at Meta

📅 2025-04-16
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Rapid delivery cycles exacerbate technical debt, undermining software maintainability. Method: This paper conducts a systematic case study of Meta to investigate sustainable code quality improvement mechanisms under high-frequency release regimes. We propose a layered code improvement framework—comprising spontaneous, institutionalized, and targeted refactoring—and develop a maintenance-priority–driven quality measurement model. We further introduce the novel “Improvement Contribution Badge” incentive mechanism. Leveraging source-code change history mining, industry case replication, and mixed qualitative-quantitative analysis, we identify that over 14% of code changes explicitly target maintainability enhancement. Results: Empirical evaluation demonstrates significant reductions in code complexity and measurable gains in developer productivity. Crucially, this work provides the first empirical validation that sustained, structured code improvement can concurrently preserve release velocity and ensure long-term maintainability—yielding a reusable methodology and a quantifiable governance framework for engineering practice.

Technology Category

Application Category

📝 Abstract
The focus on rapid software delivery inevitably results in the accumulation of technical debt, which, in turn, affects quality and slows future development. Yet, companies with a long history of rapid delivery exist. Our primary aim is to discover how such companies manage to keep their codebases maintainable. Method: we investigate Meta's practices by collaborating with engineers on code quality and by analyzing rich source code change history to reveal a range of practices used for continual improvement of the codebase. In addition, we replicate several aspects of previous industry cases studies investigating the impact of code reengineering. Results: Code improvements at Meta range from completely organic grass-roots done at the initiative of individual engineers, to regularly blocked time and engagement via gamification of Better Engineering (BE) work, to major explicit initiatives aimed at reengineering the complex parts of the codebase or deleting accumulations of dead code. Over 14% of changes are explicitly devoted to code improvement and the developers are given ``badges'' to acknowledge the type of work and the amount of effort. Our investigation to prioritize which parts of the codebase to improve lead to the development of metrics to guide this decision making. Our analysis of the impact of reengineering activities revealed substantial improvements in quality and speed as well as a reduction in code complexity. Overall, such continual improvement is an effective way to develop software with rapid releases, while maintaining high quality.
Problem

Research questions and friction points this paper is trying to address.

How companies maintain codebases despite rapid delivery
Investigating Meta's practices for continual code improvement
Measuring impact of reengineering on quality and speed
Innovation

Methods, ideas, or system contributions that make the work stand out.

Collaborating with engineers on code quality
Gamification of Better Engineering (BE) work
Developing metrics to prioritize code improvements
🔎 Similar Papers
No similar papers found.
Audris Mockus
Audris Mockus
University of Tennessee
Digital ArchaeologySoftware EngineeringVisualizationOptimization
Peter C Rigby
Peter C Rigby
Professor Concordia University and Software Engineering Researcher at Meta
Empirical Software Engineering
Rui Abreu
Rui Abreu
Meta Platforms, Inc and University of Porto/INESC-ID
SWESE4AIAI4SECyberSecQuantum Software
A
Anatoly Akkerman
Meta Platforms, Inc.
Y
Y. Bhootada
Meta Platforms, Inc.
P
Payal Bhuptani
Meta Platforms, Inc.
G
Gurnit Ghardhora
Meta Platforms, Inc.
C
Chris Hawley
Meta Platforms, Inc.
R
Renzhi He
Meta Platforms, Inc.
S
Sagar Krishnamoorthy
Meta Platforms, Inc.
S
Sergei Krauze
Meta Platforms, Inc.
J
Jianmin Li
Meta Platforms, Inc.
A
Anton Lunov
Meta Platforms, Inc.
D
Dragos Martac
Meta Platforms, Inc.
F
Francois Morin
Meta Platforms, Inc.
V
Venus Montes
Meta Platforms, Inc.
M
Maher Saba
Meta Platforms, Inc.
M
Matt Steiner
Meta Platforms, Inc.
A
Andrea Valori
Meta Platforms, Inc.
S
Shanchao Wang
Meta Platforms, Inc.
Nachiappan Nagappan
Nachiappan Nagappan
Facebook
Software ReliabilityProductivitySoftware Analytics