Hacker News with Generative AI: Refactoring

Refactoring with Codemods to Automate API Changes (martinfowler.com)
Refactoring is something developers do all the time—making code easier to understand, maintain, and extend. While IDEs can handle simple refactorings with just a few keystrokes, things get tricky when you need to apply changes across large or distributed codebases, especially those you don’t fully control. That’s where codemods come in. By using Abstract Syntax Trees (AST), codemods allow you to automate large-scale code changes with precision and minimal effort, making them especially useful when dealing with breaking API changes.
Java's Epic Refactor (youtube.com)
Refactoring in C++: Top Techniques and Best Practices (jetbrains.com)
Whether you’re a seasoned C++ developer or just starting out, refactoring is a key way you can make your code cleaner, more efficient, and easier to maintain.
An incremental approach to modernizing legacy mobile application: Strangler Fig (martinfowler.com)
Incremental replacement of a legacy mobile application is a challenging concept to articulate and execute. However, we believe by making the investment in the pre-requisites of legacy modernization, it is posible to yield benefits in the long term. This article explores the Strangler Fig pattern and how it can be applied to mobile applications. We chart the journey of an enterprise who refused to accept the high cost and risk associated with a full rewrite of their mobile application.
Martin Fowler Reflects on Refactoring [video] (youtube.com)
Refactoring Python with Tree-sitter and Jedi (bearblog.dev)
I was toying around with a refactor the other day that would have taken me ages by hand as it involved 100s of files.
Show HN: Codegen – The IDE for Refactors (twitter.com)
Good refactoring vs. bad refactoring (builder.io)
Comma.ai: Refactoring for Growth (comma.ai)
Don't Refactor Like Uncle Bob (wordpress.com)
Garbage collect your technical debt (2021) (ieee.org)
Don't DRY Your Code Prematurely (googleblog.com)
Utilities for refactoring and upgrading Ruby code based on ASTs (github.com/baweaver)
Refactor: Utilities for refactoring and upgrading Ruby code based on ASTs (github.com/baweaver)