by simonw · 3mo ago · 0 comments
Refactoring used to have a very real cost - it was substantial amounts of time that would have to be carved away from working on new features.
Now I can spot a potential refactor, fire off a prompt in an asynchronous coding agent (or on a worktree or whatever), then come back 20 minutes later and either accept it, poke it a bit, or abandon it. Costs me almost nothing.
Refactoring was never a substantial amounts of time for me before llms. Before I could spot a potential refactor and refactor it in 20 minutes and less. Never abandon it. Just constant improvement to the point the previous tech startup that I was working for just drive from itself (I am still paid a a few hours per months for it)
In the only scenario where that could actually be true you wouldn't have coworkers creating unmaintainable code with LLMs now.
Bingo. My highly qualified team was disbanded because the company went bankrupt. Apparently, the CEO had embezzled a large sum of money. That team was disbanded just before LLMs caught up.
The one that create unmaintainable code is a new team and the reason they are able to create such a large amount of unmaintainable code is because of llms.
> I've never met a single developer saying refactors are easy. It's always a minefield.
Pleasure to meet to you. You now know one. In the land of functional programming, refactoring is quite enjoyable and quite easy.
But I've personally never worked on code with test coverage that good. Refactors were always risky.
Not exactly a refactor, but high degrees of consistency are what I strive for in a codebase. LLMs get confused by inconsistencies, as do humans.
Interesting choice of words. Not a fix. Not a refactor. A commit.
But it also doesn’t mean these things aren’t problems, they’re obviously huge problems.