News for hackers. Stuff that matters.
Re:Can LLMs write better code if you keep asking them to "wr... by yubrshen on Friday January 03, 2025 @05:45PM (#42590296)
When asking LLM repeated improving or adding a new feature in a codebase, the most frustration risk is that LLM might wipe out already working code!

What are your strategies to prevent such destructions of LLM?

Re:Can LLMs write better code if you keep asking them to "wr... by fragmede on Saturday January 04, 2025 @03:53AM (#42593502)
same thing a human does, stick it in git. tools like aider use git, along with heuristics on LLM output. If the working code is wiped out, give it a few more prompts to let it fix it, or revert ban to a known good/working copy.