News for hackers. Stuff that matters.
Re:Write code that is easy to delete, not easy to extend (2016) by qwertox on Monday October 28, 2024 @03:58AM (#41968673)
I'm also betting on this, that one day I'll be able to dump a codebase into an LLM and it will clean up the code. Not rewrite it, not restructure it, just clean it up. Remove unused code and comment it sensibly. Maybe also suggest some tests for it and implement them separately.
Re:Write code that is easy to delete, not easy to extend (2016) by Cthulhu_ on Monday October 28, 2024 @05:13AM (#41969115)
Copilot already does this, at least for individual chunks of code (and text, for that matter). Not for a whole codebase, but I think that's going to be a matter of time.
Re:Write code that is easy to delete, not easy to extend (2016) by ropejumper on Monday October 28, 2024 @07:22AM (#41969945)
Comments should be based on intention. If I, as the programmer, am writing a piece of code and feel like there's something that I need to communicate about my intention in writing this, then I should. But if it's just surface level analysis, comments are just noise most of the time.

I don't see why this would be useful.

Re:Write code that is easy to delete, not easy to extend (2016) by m0llusk on Tuesday October 29, 2024 @03:55PM (#41988613)
I wonder if such an LLM will actually be cheaper than a graduate student.