frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Let's discuss: future of refactoring in the era of LLMs

1•ohcmon•2h ago
For a long time we have designed our software in a way where we would value backward compatibility and would try to minimise breaking changes.

This is not only true for the open-source, widely used software, but also for internal software. The existence of companies with big mono repositories to support dynamic rhythm of changes that do not break in unknown parts is a good illustration of how important to have the ability to refactor without the fear.

Even in the pre-LLM era we had a technical ability to do some changes without the fear which we didn't really adopt. For over 20 years we already had tools that implement a number of deterministic refactorings for typed languages. If our change consisted of only a sequence of such deterministic changes – we could automatically generate codebase migration scripts together with the new versions of our libraries. And maybe we could even search for all the usages of our libraries on the GitHub and programmatically produce PRs with all the needed changes.

Today, with all the progress in LLMs it's not hard to imagine that instead (or together with) automated migration scripts we can distribute some automatically generated migration prompts. And for all the opensoruce code, we can actually validate the results of our migrations (by pulling all the code dependent on our library, applying migration prompts, building and running tests) – and everything that is validatable, usually reach very confident levels with LLMs.

It's not hard to imagine even better LLMs in future with the ability to do even more complex refactorings. And this might remove a lot of fear associated with the changes, which in turn will significantly improve the speed of innovation for old projects where a lot of historical decisions are cemented in the public interface.

This is the future of software engineering I would want to see, and I'm curious to hear what are your thoughts about this?

P.S. Migrating from one computer language to another should become a matter of "prompted change" at some point too!

Comments

seg_lol•1h ago
This is an essay, not a conversation starter. You aren't asking any questions. Maybe you should try blogging.
codingdave•1h ago
If that future came to fruition we'd stop hearing "it works on my machine", and start hearing "it worked with my LLM".

The problem with refactoring code, re-writing codebases, and such major work is not the effort of re-coding. It is that you lose the code that has been battle-tested in production over years of use, millions of man-hours of beating on the code and turning it into a product that has survived every real-world edge case, attack, and scaling concern throughout the entire history of the product.

When you re-write code for for the sake of re-writing code, you throw that all out and have a brand new codebase that needs to go through all the production pain all over again.

So no - the trend I'm hearing of people thinking code will just become an output of an LLM-driven build process sounds quite naive to me.

ohcmon•54m ago
> you lose the code that has been battle-tested

I agree that this is still the most important thing, and I don’t try to challenge this.

At the same time we have quite adopted bumping our dependencies when it does not incorporate breaking changes (especially if there are know security vulnerabilities) — and my point is exactly about it, why even simple renames, extraction or flattening or other simple changes have to be treated so differently than internal changes that do not touch public interface?

pancsta•23m ago
You should always distribute AST-level refacs, which are deterministic, instead of prompts. You can easily prompt these out, but nothing really changes here besides who writes the migration (human vs LLM).

MSX2 core for the Tang Nano 20k

https://github.com/RetroSilicon/MSXnano
1•CTOSian•54s ago•0 comments

Small Models Can Introspect, Too

https://vgel.me/posts/qwen-introspection/
1•ibobev•2m ago•0 comments

Ask HN: What's a book that fundamentally altered your mental models

1•brihati•4m ago•0 comments

JSON-complete data formats and programming languages

https://lemire.me/blog/2025/12/20/json-complete-data-format-and-programming-languages/
1•ibobev•5m ago•0 comments

What If Readers Like A.I.-Generated Fiction?

https://www.newyorker.com/culture/the-weekend-essay/what-if-readers-like-ai-generated-fiction
2•bookofjoe•5m ago•2 comments

Intertapes – collection of found cassette tapes from different locations

https://intertapes.net/
1•wallflower•6m ago•0 comments

I Let My Email Go for a Month and Now It Is Crushing My Will to Live

https://whatever.scalzi.com/2025/12/17/i-let-my-email-go-for-a-month-and-now-it-is-crushing-my-wi...
1•surprisetalk•7m ago•0 comments

E.W.Dijkstra Archive

https://www.cs.utexas.edu/~EWD/welcome.html
3•surprisetalk•7m ago•0 comments

Formalization of Erdős Problems

https://xenaproject.wordpress.com/2025/12/05/formalization-of-erdos-problems/
2•surprisetalk•7m ago•0 comments

Bell Labs Won Its First Nobel Prize

https://www.construction-physics.com/p/how-bell-labs-won-its-first-nobel
1•surprisetalk•7m ago•1 comments

Happy Solsthelion

1•ColinWright•8m ago•0 comments

Star Guage

https://en.wikipedia.org/wiki/Star_Gauge
1•skogstokig•8m ago•0 comments

CO2 Batteries That Store Grid Energy Take Off Globally

https://spectrum.ieee.org/co2-battery-energy-storage
1•rbanffy•9m ago•0 comments

Show HN: Lyrics to Rolling WebVTT Converter

https://gitlab.com/9o1d/vtt
1•9o1d•9m ago•0 comments

Not a Pipe: The Treachery of Images – Sublius Edition

https://substack.com/inbox/post/182240590
1•spacebacon•10m ago•0 comments

Show HN: Passkeybot.com – add passkey auth with a few server side HTTP handlers

https://github.com/emadda/passkeybot
2•emadda•12m ago•0 comments

Adaptation of Agentic AI

https://arxiv.org/abs/2512.16301
2•Anon84•13m ago•0 comments

Titanic Digital Twin: Exploring the Reality Capture Process

https://blog.lidarnews.com/titanic-digital-twin-reality-capture/
1•Neuronaut•13m ago•0 comments

A twelve-year-old selects his favorite tech and design picks of 2025

https://micahblachman.beehiiv.com/p/my-favorite-tech-and-design-picks-of-2025
1•subdomain•14m ago•0 comments

Show HN: Batch Image Crop – Online, Fast, Private Tool to Crop Images

https://batchimagecrop.com/
1•WanderZil•16m ago•0 comments

Stephen Sondheim, Puzzle Maestro

https://www.newyorker.com/magazine/2025/12/22/stephen-sondheim-puzzle-maestro
2•fortran77•16m ago•1 comments

ARIN Public Incident Report – 4.10 Misissuance Error

https://www.arin.net/announcements/20251212/
10•immibis•17m ago•1 comments

Federated Package Management and the Zooko Triangle

https://nesbitt.io/2025/12/21/federated-package-management.html
2•zdw•19m ago•0 comments

Extreme brainstorming questions to trigger new, better ideas (2022)

https://longform.asmartbear.com/extreme-questions/
1•Brajeshwar•20m ago•0 comments

Don't Shave That Yak (2005)

https://seths.blog/2005/03/dont_shave_that/
3•Brajeshwar•20m ago•0 comments

Never Use Pixelation to Hide Sensitive Text (2014)

https://dheera.net/posts/20140725-why-you-should-never-use-pixelation/
1•basilikum•21m ago•0 comments

Presenting the Case That the Future Will Be Unrecognizable

https://secondthoughts.ai/p/the-unrecognizable-age
2•cjbarber•21m ago•1 comments

Beginner's Guide to Arguing Constructively (2020)

https://liamrosen.com/arguments.html
2•Brajeshwar•21m ago•0 comments

China's Moore Threads unveils new chip in homegrown AI race

https://asia.nikkei.com/business/tech/semiconductors/china-s-moore-threads-unveils-new-chip-in-ho...
3•teleforce•22m ago•0 comments

Green Production of Amino-Acid-Derived N-Doped Graphene for Vitrimer Composites

https://pubs.acs.org/doi/10.1021/acssuschemeng.5c09378
1•westurner•23m ago•3 comments