philistine 10 days ago

> AI will never produce a deletion.

That, right here, is a world-shaking statement. Bravo.

5
QuadrupleA 10 days ago

Not quite true though - I've occasionally passed a codebase to DeepSeek to have it simplify, and it does a decent job. Can even "code golf" if you ask it.

But the sentiment is true, by default current LLMs produce verbose, overcomplicated code

Eliezer 10 days ago

And if it isn't already false it will be false in 6 months, or 1.5 years on the outside. AI is a moving target, and the oldest people among you might remember a time in the 1750s when it didn't talk to you about code at all.

Taterr 10 days ago

It can absolutely be used to refactor and reduce code, simply asking "Can this be simplified" in reference to a file or system often results in a nice refactor.

However I wouldn't say refactoring is as hands free as letting AI produce the code in the first place, you need to cherry pick its best ideas and guide it a little bit more.

esafak 10 days ago

Today's assistants can refactor, which includes deletions.

furyofantares 10 days ago

They can do something that looks a lot like refactoring but they suck extremely hard at it, if it's of any considerable size at all.

CamperBob2 10 days ago

Which is just moving the goalposts, considering that we started at "AI will never..."

You can't win an argument with people who don't care if they're wrong, and someone who begins a sentence that way falls into that category.

furyofantares 9 days ago

The guy who said "AI will never" is obviously wrong. So is the guy who replied that they already can. I'm not moving the goalposts to point out that this is also wrong.

stevenhuang 10 days ago

It really isn't, and if you think it is, you're holding it wrong.