A Simple Refactoring Workflow

Rafael A. George Duval
1 min readJan 9, 2024

--

Test-Driven Development is an exploration tool.

The practice is a discovery tool because it provides an environment for fast experimentation. Thus the fundamental purpose of TDD is to aid in acquiring immediate feedback. A fast test suite enables an environment to refactor andn try experimental designs. Fast tests increase the ability to evolve a design towards something more flexible. Certain things need to be in place to maintain a certain level of changeability.

The main issue with not refactoring is the need for more space to do so.

Entropy causes the software to become messier over time, and markets grow faster than we can keep up with new functionality. Refactoring is easy, but knowing when, how, and what to do before starting is essential. Besides addressing ignorance, there is also the issue of time. One solution is to use WIP branches, which differ from GitHub’s Draft PR, as they are still local to the cloned repository. This approach can help address code that affects the entire team.

Whenever something needs fixing and time is available, a new WIP branch can be created to make some improvements through refactoring.

[¹]: Clean Agile: Back to Basics

--

--

Rafael A. George Duval
Rafael A. George Duval

Written by Rafael A. George Duval

✍🏼 Building a Solo Digital Media Company 🧪 Snippets of Text [https://snippetsoftext.substack.com/subscribe]

No responses yet