DEV Community

#refactoring

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Deleting a discount programme: 930 lines of files, two dropped tables, and a reservation lifecycle nobody needed

Deleting a discount programme: 930 lines of files, two dropped tables, and a reservation lifecycle nobody needed

Comments
4 min read
Cluster Edits by Failing-Test Signature Before the Smallest Safe Change

Cluster Edits by Failing-Test Signature Before the Smallest Safe Change

Comments
5 min read
Prove Reach Before You Move: A Coverage Gate for Characterization Tests

Prove Reach Before You Move: A Coverage Gate for Characterization Tests

Comments
5 min read
Hold Out a Third of Your Corpus: The Characterization Gate for a Messy Refactor

Hold Out a Third of Your Corpus: The Characterization Gate for a Messy Refactor

Comments
5 min read
Pin the Bugs Before You Move the Function: A Two-Way Behavior Ledger

Pin the Bugs Before You Move the Function: A Two-Way Behavior Ledger

Comments
6 min read
Your Refactor May Only Touch Lines Your Tests Execute

Your Refactor May Only Touch Lines Your Tests Execute

Comments
4 min read
The Call Order Is the Contract: Trace Fixtures Before a Messy-Repo Extraction

The Call Order Is the Contract: Trace Fixtures Before a Messy-Repo Extraction

Comments 1
5 min read
Prove Your Refactor Tests Can Fail: A Mutation-Calibrated Gate for Messy Repos

Prove Your Refactor Tests Can Fail: A Mutation-Calibrated Gate for Messy Repos

Comments
7 min read
Set a Change Budget Before You Refactor: A Git-Diff Gate for Messy Repos

Set a Change Budget Before You Refactor: A Git-Diff Gate for Messy Repos

Comments
5 min read
Score Every Seam Before You Move One: A Blast-Radius Budget for Messy Repos

Score Every Seam Before You Move One: A Blast-Radius Budget for Messy Repos

Comments
6 min read
Two Commits per Refactor: A Diff Gate That Keeps Pins Away From the Move

Two Commits per Refactor: A Diff Gate That Keeps Pins Away From the Move

Comments
5 min read
Freeze the Clock, Not the Timeout: A Time-Zone Matrix Before You Extract a Module

Freeze the Clock, Not the Timeout: A Time-Zone Matrix Before You Extract a Module

Comments
6 min read
Replay Captured Inputs, Then Move One Function: A Flake-Trial Gate for Messy Refactors

Replay Captured Inputs, Then Move One Function: A Flake-Trial Gate for Messy Refactors

Comments
5 min read
A Test That Cannot Fail Is Decoration: Gating Model-Drafted Characterization Tests

A Test That Cannot Fail Is Decoration: Gating Model-Drafted Characterization Tests

Comments
5 min read
The Agent Converted the If/Else Chain to a Lookup Map and Dropped the Side Effect

The Agent Converted the If/Else Chain to a Lookup Map and Dropped the Side Effect

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