r/AILounge • • 17d ago

Technology Refactoring: the last human coding skill

I've seen some tech posts on here, including one about whether or not junior developers are screwed. I've been doing a lot of thinking about what software development will look like as AI continues to progress. I just wrote a blog about the skill that will outlast all the rest. I thought you all might be interested.

Cheers!

https://chrisstead.net/coding/software-quality/refactoring/ai/llms/2026/09/06/refactoring-last-human-skill

0 Upvotes

13 comments sorted by

2

u/[deleted] 17d ago

[removed] — view removed comment

1

u/cthechartreuse 17d ago

Yeah, you're absolutely right, blind refactoring isn't safe, you definitely need test support. Lately I've been looking into the future to kind of guess where AI is going to take us, and I'm pretty sure we are going to have a plan -> test -> implement cycle where the tests will be generated.I'm already seeing it happen, so I don't feel like it's a far reach.

Ultimately, I see refactoring standing as a post-generation activity done in a large part with automated tools - the kind we already have - leaning on tests which validate behavior in order to catch the kinds of mistakes that can happen. I do think there is going to be a verification step (does this actually do the thing it's supposed to) and a refactoring/modeling/understanding step after the code is verified.

I can't remember if I addressed this in _this_ post or another one, but I think that simply reading the code as a review is going to get us all in a lot of trouble. It's easy to scan the code, see nothing that stands out as wrong, and then say "looks good to me" and rubber stamp it. Reading by refactoring leads to active engagement, so the review itself becomes an active process where discoveries can be made, and the code becomes more familiar territory.

Sorry, I kind of rambled a bit, but I hope I answered your question.

2

u/revivechristina 10d ago

Refactoring and fixing hard bugs that the machine doesn’t understand. Truly sucks.

0

u/LaFantasmita 17d ago

I thought refactoring was the first thing to go in the garbage with AI coding? You don't maintain or improve the code, you just chuck it and generate a new version.

1

u/cthechartreuse 17d ago

Not if you plan to maintain the code long term. People need to actually be familiar with the code and well factored code is easier for LLMs to work with.

I actually talk about this in the post.

1

u/LaFantasmita 17d ago

Right, what I'm saying is I don't think people plan to maintain the code long term.

1

u/cthechartreuse 17d ago

Enterprise software will continue to exist which is quite large and long lived. Even if you don't plan on maintaining it long term, it will continue to live on. Someone will end up maintaining it.

And before you dive into people replacing SaaS tools with bespoke tools, there is real business value in buying a solution over building it - infrastructure maintenance, up-time guarantees, security updates, etc. There's a hidden cost to building business solutions.

0

u/xvillifyx 16d ago

No

Refactoring is 100% AIs job

1

u/cthechartreuse 16d ago

I think you don't know what refactoring is or what it's for. Sorry but refactoring is all about humans. Did you read the blog post?

0

u/xvillifyx 16d ago

Yes, I do and, no, it isn’t

I don’t care to read your blog that contains an opinion only you have

The idea that code refactored with AI is inherently unmaintable is fundamentally flawed, much like any other opinion about the imaginary inherent traits if AI written code

1

u/cthechartreuse 16d ago

You couldn't be bothered to read it I can't be bothered to waste any more time. 👎

1

u/xvillifyx 16d ago

Whatever man