logoalt Hacker News

ninalanyontoday at 7:10 AM1 replyview on HN

If these tools are as clever as they seem then why not just tell them to rewrite the code in a more review friendly style?

I only dabble in the use of LLMs to generate code for hobby programming (I'm retired from software development) so I don't use any specialised tools.

I almost always have to tell ChatGPT (via Duck AI usually) to rewrite several times even when it has produced a workable script just because it has often used some unnecessarily roundabout way of achieving something. Usually with extra prompting I can get something that is both more efficient and more readable.


Replies

lanyard-textiletoday at 9:18 AM

I get around this by asking it to stage changes in reviewable groups.

I make commits based on these -- or ask the LLM to make changes to the "staged changes" only.