refactoring

Tag

Cards List
#refactoring

There's No Limit to How Bad Code Can Get

Simon Willison's Blog · 6d ago 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
#refactoring

Artificial adventures

Lobsters Hottest · 2026-07-02 Cached

The author shares their experience using various AI coding assistants (Claude Code, Codex, Pi) for code review and refactoring, finding frontier models surprisingly effective at catching subtle bugs but noting the lower quality and erratic behavior of some tools.

0 favorites 0 likes
#refactoring

AgRefactor: Self-Evolving Agentic Workflow for HLS Compatibility and Performance

arXiv cs.AI · 2026-07-01 Cached

AgRefactor is an LLM-based multi-agent workflow for refactoring software into HLS-compatible programs, featuring a self-evolving memory system and automated refactoring tools, achieving significant speedups on real-world benchmarks.

0 favorites 0 likes
#refactoring

@mattpocockuk: Adding a set of Martin Fowler's code smells from Refactoring into my /review skill Mysterious Name, Duplicated Code, Fe…

X AI KOLs Timeline · 2026-06-30 Cached

Matt Pocock announces adding Martin Fowler's code smells to his /review skill for AI coding agents, and shares his open-source collection of composable agent skills designed to improve real engineering workflows.

0 favorites 0 likes
#refactoring

Prefer duplication over the wrong abstraction (2016)

Hacker News Top · 2026-06-21 Cached

The article argues that duplication is cheaper than the wrong abstraction, and advises developers to avoid forcing abstractions that later become complicated with conditionals.

0 favorites 0 likes
#refactoring

An Exploratory Case Study of LLM-Assisted Refactoring and Gameplay Feature Generation in an Endless Runner Game

Hugging Face Daily Papers · 2026-06-19 Cached

This paper presents an exploratory case study evaluating GPT-4o's ability to perform refactoring and generate gameplay features in an endless runner game, finding that refactoring tasks succeeded while feature generation tasks mostly failed.

0 favorites 0 likes
#refactoring

A Claude Code skill that sweeps your codebase for architecture-deepening opportunities (delta-aware, analysis-only) and files them as ready-to-grab issues

Reddit r/AI_Agents · 2026-06-08

A Claude Code skill that autonomously scans codebases for architecture improvement opportunities (e.g., shallow modules), creates delta-aware, analysis-only issues and PRDs, ready for implementation.

0 favorites 0 likes
#refactoring

@elliotchen100: Our open-source library EverOS recently underwent a major refactoring, transforming the developer experience from "pulling" to "solidifying". Previously, when working with AI memory, we often had to troubleshoot across databases, vector stores, index sync, and dependency environments. Where is the memory stored? Why isn't it recalled? Is the index broken? Many times it was not straight…

X AI KOLs Timeline · 2026-06-03 Cached

The EverOS open-source library has completed a major refactoring, storing original memory directly as Markdown files, supplemented by SQLite for state management and LanceDB for retrieval, significantly improving developer readability, modifiability, and fault recovery.

0 favorites 0 likes
#refactoring

@vintcessun: LLMs can now write their own work scripts, decomposing tasks into a group of sub-agents that execute in parallel. A single assistant thinks sequentially, and when faced with tasks like codebase audits or large-scale refactoring, it's either slow or prone to mixing up its thoughts. pi-dynamic-workflows lets the model directly generate a JS script, using agent() and parallel() for task orchestration, runs them in a sandbox, and then aggregates the results—with real-time progress display. The essence is transforming "one person working" into "one person writing a scheduling script, while minions execute in parallel."

X AI KOLs Timeline · 2026-05-30 Cached

Introducing pi-dynamic-workflows, a tool that enables LLMs to dynamically orchestrate multiple sub-agents for parallel task execution by generating JavaScript scripts, suitable for code audits, large-scale refactoring, and similar scenarios.

0 favorites 0 likes
#refactoring

@leon7hao: https://x.com/leon7hao/status/2059191435753410630

X AI KOLs Timeline · 2026-05-26 Cached

Sharing personal experience of using Codex and Claude Code to refactor front-end UI via vibe coding. Disclaimer: not professional design, for technical reference only.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback