logoalt Hacker News

mgtoday at 2:12 PM1 replyview on HN

    How would you detect the
    presence of bugs in this
    scenario?
I would ask AI. "Did the last commit introduce any bugs or unintended consequences?". In fact I already use this prompt after every change I make manually.

    How would you make sure the LLM
    isn't adding yet another
    useless, redundant function to
    the code base?
By asking AI. In fact, I already run a long "Can you refactor anything in this codebase to reduce redundancy, improve readability, performance or maintainability" pretty regularly.

Replies

jazzypantstoday at 2:16 PM

Are you ever reading the code? What do you do when the LLM can't fix a bug? Do you not wish you had a more intimate first-hand knowledge of the code when fixing things yourself?

Please don't tell me that never happens-- I've had one just in the last week and I use both OpenAI and Anthropic foundation models.

show 1 reply