DEV Community

#refactoring

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
We locked 25,396 behaviors before our agent refactors its own code, bugs included

We locked 25,396 behaviors before our agent refactors its own code, bugs included

Comments
11 min read
The agent split the giant PR into three smaller PRs — and the bug that lived between them stayed invisible

The agent split the giant PR into three smaller PRs — and the bug that lived between them stayed invisible

Comments
4 min read
Prove the Smallest Safe Change Is Mechanical: An AST Diff Gate

Prove the Smallest Safe Change Is Mechanical: An AST Diff Gate

Comments
5 min read
1,400 PRs and 800k Lines Deleted: How OpenAI Cleans Up Its Code with Agents (and What You Should Steal)

1,400 PRs and 800k Lines Deleted: How OpenAI Cleans Up Its Code with Agents (and What You Should Steal)

Comments
16 min read
The Agent Added a Cache Layer Because the Comment Said This Function Was Slow

The Agent Added a Cache Layer Because the Comment Said This Function Was Slow

Comments
3 min read
Witness Maps: Never Refactor a Line That No Test Executes

Witness Maps: Never Refactor a Line That No Test Executes

Comments
7 min read
Census the Names a Function Reads Before You Extract It

Census the Names a Function Reads Before You Extract It

Comments
5 min read
Freeze the Export Surface Before a Messy Refactor: A Manifest Gate in Python

Freeze the Export Surface Before a Messy Refactor: A Manifest Gate in Python

Comments
6 min read
Time Your Safety Net First: A Budget Gate for Characterization Tests in Messy Repos

Time Your Safety Net First: A Budget Gate for Characterization Tests in Messy Repos

Comments
5 min read
Test the Process, Not the Module: A Black-Box Characterization Gate for a Repo You Can't Import

Test the Process, Not the Module: A Black-Box Characterization Gate for a Repo You Can't Import

Comments
5 min read
Characterize the Boundary, Not the Module: An Import-Graph Gate for Messy Refactors

Characterize the Boundary, Not the Module: An Import-Graph Gate for Messy Refactors

Comments
5 min read
Record the Ordered Side-Effect Ledger Before You Move One Function

Record the Ordered Side-Effect Ledger Before You Move One Function

Comments
4 min read
Record the Call Order, Not the Return Value: A Ledger Gate for Messy Refactors

Record the Call Order, Not the Return Value: A Ledger Gate for Messy Refactors

Comments
5 min read
I automated my refactoring method with GitLab Duo agents. The agent writes the fix, a CI gate decides the merge.

I automated my refactoring method with GitLab Duo agents. The agent writes the fix, a CI gate decides the merge.

Comments 2
5 min read
One Rung per Commit: A Refactor Ladder for Reviewing AI Cleanup Diffs

One Rung per Commit: A Refactor Ladder for Reviewing AI Cleanup Diffs

Comments
6 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.