refactoring

Tag

Cards List
#refactoring

@hylarucoder: When AI writes code faster than your team can understand it, what guards the lifeblood of your software? From compilers, architectural skeletons, and read-only contracts to refactoring loops and disposable implementations, here are some recent thoughts on code governance in the AI era.

X AI KOLs Timeline ↗ · 2026-10-31 Cached

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.

0 favorites 0 likes
#refactoring

Avoid Public Functions Calling Other Public Functions

matklad ↗ · 2026-10-29 Cached

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.

0 favorites 0 likes
#refactoring

How Stable Are LLM-Generated Proofs Under Program Refactoring? A Stress Test for Verifiable Code Generation

arXiv cs.AI ↗ · 2026-10-28 Cached

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.

0 favorites 0 likes
#refactoring

Pharo 14 Released

Lobsters Hottest ↗ · 2026-10-26 Cached

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.

0 favorites 0 likes
#refactoring

Interactive refactoring in gopls

Lobsters Hottest ↗ · 2026-10-17 Cached

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.

0 favorites 0 likes
#refactoring

@mylifcc: OpenAI just disclosed a pretty outrageous engineering case study. With just 2 engineers + Codex + GPT-5.5, they complet…

X AI KOLs Timeline ↗ · 2026-10-11 Cached

OpenAI 用 2 名工程师配合 Codex 和 GPT-5.5 将核心存储服务 Habitat 从 Python 重写为 Rust,CPU 效率提升 6 倍、内存效率提升 15 倍,并承担 95% 的生产请求,展示了 AI 编程对大型系统重构成本结构的潜在改变。

0 favorites 0 likes
#refactoring

@mattpocockuk: mattpocock/skills prompt of the day: /codebase-design Take a look in the repo for shallow modules, applying the deletio…

X AI KOLs Timeline ↗ · 2026-10-01 Cached

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.

0 favorites 0 likes
#refactoring

Cyclomatic Complexity in C#

Hacker News Top ↗ · 2026-09-16 Cached

This article explains cyclomatic complexity in C#, covering its calculation, thresholds, measurement, and refactoring techniques to improve code quality.

0 favorites 0 likes
#refactoring

ImpactGate: A merge gate that scores the structural decay AI adds

Hacker News Top ↗ · 2026-09-16 Cached

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.

0 favorites 0 likes
#refactoring

There's No Limit to How Bad Code Can Get

Simon Willison's Blog ↗ · 2026-09-06 Cached

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.

0 favorites 0 likes
#refactoring

Claude Code vs Codex: 37 min but working UI, vs 27 min but broken twice

Reddit r/AI_Agents ↗ · 2026-09-04

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.

0 favorites 0 likes
#refactoring

All the Little Things (2014)

Lobsters Hottest ↗ · 2026-08-31 Cached

Sandy Metz discusses making code small and using tests to guide refactoring, illustrated through the Gilded Rose kata.

0 favorites 0 likes
#refactoring

Reducing C++ template bloat by factoring out the type-dependent portions of the function

The Old New Thing (Raymond Chen) ↗ · 2026-08-20 Cached

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.

0 favorites 0 likes
#refactoring

Specification-first convergence with an AI coding agent: a case study of dismantling a core architectural invariant across 189 files in a 717k-line codebase with no test oracle and no human code review

Hugging Face Daily Papers ↗ · 2026-08-12 Cached

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.

0 favorites 0 likes
#refactoring

Platform engineering still matters

Lobsters Hottest ↗ · 2026-07-31 Cached

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.

0 favorites 0 likes
#refactoring

The Economic Benefit of Refactoring

Hacker News Top ↗ · 2026-07-30 Cached

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.

0 favorites 0 likes
#refactoring

Rewriting the Futhark type checker

Lobsters Hottest ↗ · 2026-07-22 Cached

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.

0 favorites 0 likes
#refactoring

clj-refactor.el 4.0

Lobsters Hottest ↗ · 2026-07-16 Cached

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.

0 favorites 0 likes
#refactoring

We charge $10k a week to delete AI-generated code

Hacker News Top ↗ · 2026-07-07 Cached

Slopfix offers a paid service to refactor and reduce AI-generated codebases, charging $10k per week with a fixed price based on reduction targets.

0 favorites 0 likes
#refactoring

Anchoring specs to code with ast-grep

Reddit r/ArtificialInteligence ↗ · 2026-07-06 Cached

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.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback