<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/google-testing-blog-prefactoring-clear-the-way-for-your-new-feature-pzsrhxlc6" -->

---
title: Google Testing Blog: Prefactoring: Clear the Way for...
description: Prefactoring (preparatory refactoring) is the practice of restructuring existing code before implementing a new feature, rather than forcing the feature into...
canonical: https://daily.dev/posts/google-testing-blog-prefactoring-clear-the-way-for-your-new-feature-pzsrhxlc6
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Google Testing Blog: Prefactoring: Clear the Way for Your New Feature | daily.dev
og:description: Prefactoring (preparatory refactoring) is the practice of restructuring existing code before implementing a new feature, rather than forcing the feature into...
og:url: https://daily.dev/posts/google-testing-blog-prefactoring-clear-the-way-for-your-new-feature-pzsrhxlc6
og:image: https://api.daily.dev/og/posts/PzsrhxLC6.png
og:image:alt: Google Testing Blog: Prefactoring: Clear the Way for Your New Feature
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Testing Blog: Prefactoring: Clear the Way for Your New Feature

**[Google Testing](https://daily.dev/sources/googletesting)** · 2 min read · 0 upvotes · 0 comments

## Summary

Prefactoring (preparatory refactoring) is the practice of restructuring existing code before implementing a new feature, rather than forcing the feature into an incompatible codebase. Inspired by Kent Beck's principle 'first make the change easy, then make the easy change,' it involves separating cleanup commits from feature commits. Benefits include easier feature implementation, faster code reviews, fewer bugs from mixing refactoring with logic changes, and safer rollbacks. Prefactoring can also be applied mid-review when a reviewer suggests related cleanups.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <http://testing.googleblog.com/2026/07/prefactoring-clear-way-for-your-new.html>

## Similar posts on daily.dev

- [Build Wide, Ship Narrow](https://daily.dev/posts/build-wide-ship-narrow-ubltyfimm) · Hacker News · 0 upvotes · 0 comments
- [Make things work, make things right, make things fast](https://daily.dev/posts/make-things-work-make-things-right-make-things-fast-ot16nl2vc) · A Day in the Life Of · 1 upvotes · 1 comments
- [How to Refactor a Legacy Application Before Migrating It](https://daily.dev/posts/how-to-refactor-a-legacy-application-before-migrating-it-fauhll6az) · freeCodeCamp · 1 upvotes · 2 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#testing](https://daily.dev/tags/testing)

[View this post on daily.dev](https://daily.dev/posts/google-testing-blog-prefactoring-clear-the-way-for-your-new-feature-pzsrhxlc6)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Google Testing Blog: Prefactoring: Clear the Way for Your New Feature","url":"https://daily.dev/posts/google-testing-blog-prefactoring-clear-the-way-for-your-new-feature-pzsrhxlc6","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/google-testing-blog-prefactoring-clear-the-way-for-your-new-feature-pzsrhxlc6"},"datePublished":"2026-07-21T19:40:53.029Z","dateModified":"2026-07-21T19:41:08.760Z","description":"Prefactoring (preparatory refactoring) is the practice of restructuring existing code before implementing a new feature, rather than forcing the feature into...","image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","thumbnailUrl":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","isAccessibleForFree":true,"articleSection":"Google Testing","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Google Testing","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5bf3d7e8866747fca5875d06e6618aa7","url":"https://daily.dev/sources/googletesting"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/google-testing-blog-prefactoring-clear-the-way-for-your-new-feature-pzsrhxlc6","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,testing","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Google Testing","item":"https://daily.dev/sources/googletesting"},{"@type":"ListItem","position":3,"name":"Google Testing Blog: Prefactoring: Clear the Way for Your New Feature"}]}
```

