Tag
The author explores what to do when AI coding agents produce code faster than a team can comprehend it, and how five layers of governance — compiler-enforced constraints, architectural skeletons, read-only contracts, refactoring loops, and disposable implementations — can counteract system entropy and human cognitive bankruptcy to preserve software maintainability.
A blog post by matklad arguing that public functions should not call other public functions; instead, shared logic should be extracted into private helper functions to avoid interface degradation over time, with a noted exception for shortcut APIs.
This paper introduces RefactorProof, a stress test that derives 458 Lean-certified refactoring variants from VERINA tasks to measure whether LLM-generated proofs remain valid under behavior-preserving program changes. It finds substantial brittleness across reference proofs and specialized provers (DeepSeek-Prover-V2, Goedel-Prover-V2), while noting that most broken proofs can be repaired with small edits.
Pharo 14 released, a pure object-oriented programming language and environment focused on modernized dev tools, rebuilt refactoring/command infrastructure, and VM updates including RISC-V JIT support and GC improvements. This marks the first release under a new fall schedule.
gopls v0.24.0 introduces interactive refactoring via a new proposed LSP capability for multi-step dialogs, allowing language servers to collect user input before computing edits — designed as an open standard in collaboration with the Dart team for all editors and languages.
OpenAI 用 2 名工程师配合 Codex 和 GPT-5.5 将核心存储服务 Habitat 从 Python 重写为 Rust,CPU 效率提升 6 倍、内存效率提升 15 倍,并承担 95% 的生产请求,展示了 AI 编程对大型系统重构成本结构的潜在改变。
Matt Pocock shares a prompt of the day: /codebase-design, a skill that scans a repo for shallow modules and applies the deletion test to remove unnecessary abstractions.
This article explains cyclomatic complexity in C#, covering its calculation, thresholds, measurement, and refactoring techniques to improve code quality.
ImpactGate is a tool that measures and gates the structural decay introduced by code changes, using a scoring formula to encourage refactoring and maintain code quality.
Simon Willison argues that completely rewriting legacy systems from scratch rarely succeeds and typically results in two parallel systems in production. He recommends shoring up the old system with automated testing and targeted refactors instead, citing Will Larson's writing on migrations as the best responsible approach.
A comparison of Claude Code and Codex in a refactoring task reveals that Claude took longer but produced more thorough code with better UI design, while Codex was faster but required additional prompts to work properly.
Sandy Metz discusses making code small and using tests to guide refactoring, illustrated through the Gilded Rose kata.
This article explains techniques to reduce C++ template bloat by factoring out type-dependent code into helper objects or using span-based approaches, enhancing code efficiency and maintainability.
A case study describing how an AI coding agent dismantled a core architectural invariant across 189 files in a 717k-line codebase using a specification-first convergence methodology, with no test oracle and no human code review. The agent iteratively refined a 55-page specification and performed correction loops, fixing 201 self-identified mistakes across 31 audit loops.
An opinion piece arguing that platform engineering and code reuse remain valuable even with AI coding tools, because tokens cost money and reuse provides leverage. Cites Martin Fowler's similar argument about refactoring.
This article presents an experiment on refactoring a large codebase written by AI agents, demonstrating that refactoring reduces token consumption for future AI-driven changes. The author details the methodology and results showing a decrease in input tokens after refactoring.
This blog post details the evolution and recent refactoring of Futhark's type checker, from a simple type checker to Hindley-Milner inference and the complexities of adding features like uniqueness types and size types.
clj-refactor.el 4.0, the first major release in almost five years, introduces hot dependency loading, asynchronous refactoring, diff previews, a transient menu, and numerous improvements for Clojure development in Emacs.
Slopfix offers a paid service to refactor and reduce AI-generated codebases, charging $10k per week with a fixed price based on reduction targets.
A blog post describing a technique to anchor living specs to code using ast-grep rules that match code structure instead of file paths, preventing spec rot when code moves during refactors. The approach is designed for AI agents that read specs on every task, with anchors that survive moves but not renames.