frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Aks HN: Large scale refactorings with LLM. Any experience to share?

3•iot_devs•2h ago
I am working on a critical (the company depends on it), large (100k+ files), busy (100s of developer committing daily) and old (10+ years) codebase.

Given the conditions, I believe we are doing a stellar job at keeping the whole codebase somehow manageable. Linting and conventions are in place and respected.

But of course it is not "clean code".

Developer velocity is low, testing is difficult and cumbersome.

Dependencies between our components are very tight, and everything depends on everything else.

My team and I have a clear mandate to make the situation better.

A lot of tooling to manage the overall complexity have been build but I believe we have reached a plateau where extra tooling will not make the situation any better. If anything it will increase cognitive load on developers.

I start to think that handling the overall complexity of the codebase is the way forward.

Dependencies are needed, but we are not doing a stellar job at isolation and at keeping dependencies at a minimum.

This comes out as huge files with multiple critical and busy classes. Creating dependencies that are there for syntaxical reasons but not semantical reason.

I don't think it is feasible to manually address those problems. Also my team doesn't have the right business context.

Moreover none of the changes we should do are justificable from a business perspective.

The solution that we see somehow feasible are 2:

1. Somehow force/convince the other teams to handle their complexity. We already tried this and it failed. 2. Figure out a way to do it ourselves.

Only 2. is an acceptable solution given that 1. already failed and the social capital we can deploy.

Approaching this manually is unfeasible, and naturally I am leaning toward using LLM for this kinda of refactoring.

The idea is to avoid updating the architecture and simply put as in a better position to eventually make architectural improvements.

I would like some sort of pipeline where we feed the codebase and the problem on one side (this file is too big, move this class), and get a PR on the other side.

I did try a quite challenging refactoring, and the AI failed. Not terribly, but not something that I can sell just yet.

I am here asking the community if you have tried something similar.

Comments

mustaphah•52m ago
This might help: https://engineering.monday.com/from-8-years-down-to-6-months...

From Text to Token: How Tokenization Pipelines Work

https://www.paradedb.com/blog/when-tokenization-becomes-token
1•jamesgresql•2m ago•1 comments

When Compiler Optimizations Hurt Performance

https://nemanjatrifunovic.substack.com/p/when-compiler-optimizations-hurt
1•ingve•5m ago•0 comments

The New Tron Movie Is Pro-A.I. Propaganda

https://slate.com/culture/2025/10/tron-ares-movie-2025-jared-leto-ai.html
2•voxadam•8m ago•0 comments

From Tricolor to Saks, Bonds Are Now Crashing at Breakneck Speed

https://www.bloomberg.com/news/features/2025-10-12/first-brands-tricolor-wipeouts-show-cracks-in-...
1•zerosizedweasle•8m ago•1 comments

How a City Awash in Garbage Is Trying to Take Out the Trash

https://www.nytimes.com/2025/10/08/us/oakland-california-trash-garbage.html
1•latchkey•12m ago•1 comments

Scientists Confirm Widespread Microplastics in Milk and Cheese

https://www.foodandwine.com/microplastics-milk-and-cheese-2025-study-11827170
3•donsupreme•17m ago•0 comments

Free Software Hasn't Won

https://dorotac.eu/posts/fosswon/
6•LorenDB•20m ago•1 comments

California's "Opt Me Out Act" Makes Browser-Based Opt-Out a Baseline

https://captaincompliance.com/education/californias-opt-me-out-act-makes-browser-based-opt-out-a-...
5•richartruddie•26m ago•1 comments

Osmea – open-source Flutter Architecture for E-commerce Apps

https://osmea.masterfabric.co
3•nurLife•27m ago•0 comments

Silicon Valley: The Musical

https://www.svmusical.com/
2•scottfits•28m ago•0 comments

The new best free mind map tool

https://pathmind.app/home/
1•WTCAE•29m ago•0 comments

An initial investigation into WDDM on ReactOS

https://reactos.org/blogs/investigating-wddm/
2•LorenDB•31m ago•0 comments

We are different from all other humans in history

https://www.forkingpaths.co/p/we-are-different-from-all-other-humans-ad0
1•pseudolus•34m ago•0 comments

Agent Learning via Early Experience

https://arxiv.org/abs/2510.08558
1•jonbaer•35m ago•0 comments

Help Identify Fake/Scam Investors or Website from Switzerland, Dubai, and Beyond

https://www.escamly.com/
1•Bikashhh•40m ago•1 comments

The End Of An Era: The Mac division undergoes an inconceivable reorganization

https://folklore.org/The_End_Of_An_Era.html
2•stmw•42m ago•0 comments

Show HN: Music Visualizer with Animated Color Themes Created via ChatGPT Prompts

https://github.com/sylwekkominek/SpectrumAnalyzer
2•sylwekkominek•46m ago•3 comments

Oracle roared into AI gold rush, but its taking on huge amounts of debt to do so

https://www.barrons.com/articles/larry-ellison-oracle-56e03912
2•zerosizedweasle•46m ago•2 comments

MAML – a new configuration language (similar to JSON, YAML, and TOML)

https://maml.dev/
3•birdculture•47m ago•0 comments

Women taking Meta to task after their baby loss

https://www.bbc.co.uk/news/articles/ce8450380zyo
2•afandian•52m ago•0 comments

Hackers exploit a blind spot by hiding malware inside DNS records

https://arstechnica.com/security/2025/07/hackers-exploit-a-blind-spot-by-hiding-malware-inside-dn...
2•alwillis•54m ago•2 comments

#2. How Germany Is Losing the Battle for the Brightest Minds

https://gersemann.substack.com/p/2-how-germany-is-losing-the-battle
2•paulpauper•55m ago•0 comments

New archaeology tranche for Emergent Ventures

https://marginalrevolution.com/marginalrevolution/2025/10/new-archaeology-tranche-for-emergent-ve...
1•paulpauper•55m ago•0 comments

The Ruby Annotation Element

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ruby
2•amadeuspagel•1h ago•0 comments

Rapid rise of private club and travel teams found in youth sports

https://phys.org/news/2025-09-rapid-private-club-teams-youth.html
2•PaulHoule•1h ago•1 comments

Learn how Google Maps and mapping software works intuitively

https://www.secretsofmaps.com/
1•adas4044•1h ago•3 comments

Show HN: Watts Up – a bike trainer-powered, arcade browser game

https://github.com/jsattler/wattsup
1•jsattler•1h ago•0 comments

Trusting builds with Bazel remote execution

https://jmmv.dev/2025/09/bazel-remote-execution.html
2•jmmv•1h ago•3 comments

Django: Django-HTTP-compression – Adam Johnson

https://adamj.eu/tech/2025/10/10/introducing-django-http-compression/
2•todsacerdoti•1h ago•0 comments

Composeable stream processing: reactive dataflow graphs in Python

https://github.com/Point72/csp
1•timkpaine•1h ago•1 comments