Hacker News new | ask | show | jobs
by sc68cal 295 days ago
They probably don't have any tests, or the tests that the LLM creates are flawed and not detecting these problems
3 comments

Just tell the AI "and make sure you don't add bugs or break anything"

Works every time

Yesterday Claude Code assured me the following:

• Good news! The code is compiling successfully (the errors shown are related to an existing macro issue, not our new code).

When infact, it managed to insert 10 compilation errors that were not at all related with any macros.

The other day I had Claude proudly proclaim it fixed the bug, by deleting log line that exposed the bug...
I tried using agents in Cursor and when it runs into issues it will just rip out the offending code :)
I've had similar cases where the fix to the test was.. delete the test. Ah, if only I'd realized that little hack earlier in my career!