refactoring

Refactoring is the practice of restructuring existing code to make it easier to understand and modify without changing its external behavior.

5 articlesLast mentioned

Refactoring is the process of improving the internal structure of code while leaving its functionality and external behavior unchanged. It consists of repeated small changes such as removing duplication, extracting functions and classes, renaming, and reorganizing modules to make code easier to read and maintain. The concept was established in software engineering in the 1990s and popularized by Martin Fowler's book Refactoring (1999).

It is typically carried out together with automated tests to confirm that behavior has not changed. In the AI field, multi-file refactoring is regarded as a representative task for gauging the capability of coding agents and is frequently used as a task in coding benchmarks.

This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.

Articles covering this entry

  • Capy AI Captains Run a Game Release Flow on 3% of a Weekly Claude Ultra LimitAI in Practice ·

    …ation file, pstack-models.md, that maps development roles such as feature refactoring, bug fixes, performance work, judgment and a "divergent synthesizer" to di…

    Read article
  • Claude Fable 5.2 Prompting: Set Effort to High, Demand Proof, Drop Old RulesAI in Practice ·

    If you only want a targeted bug fix without structural refactoring, leave it out and specify the exact lines or files to change.

    Read article
  • Example Mapping Plus TDD Lifts AI Agent Code Correctness From 27% to 94%AI in Practice ·

    …agents but to adapt long-standing engineering techniques, test-driven development (TDD) and refactoring, so that they steer the model instead of being skipped.

    Read article
  • AI Coding Agents at Uber, Ford and Databricks: More Code, Same BottlenecksAI in Practice ·

    A tongue-in-cheek example captured the spectrum: refactoring an Android module in the Uber app is moderate risk; a bug that gives free rides to every Android de…

    Read article
  • AI Coding Agents: Build With Specs, Review With EvidenceAI in Practice ·

    During review, the developer moved page sections into separate component files using an editor’s refactoring tools.

    Read article

Found a mistake or missing an entry?

Wiki entries are based on AIPOST articles and widely known facts. If an entry is wrong, send us a correction request and we will check and fix it. Names from new articles are added to the wiki after the article is published.