logoalt Hacker News

xianshou05/14/20252 repliesview on HN

Amusingly, about 90% of my rat's-nest problems with Sonnet 3.7 are solved by simply appending a few words to the end of the prompt:

"write minimum code required"

It's not even that sensitive to the wording - "be terse" or "make minimal changes" amount to the same thing - but the resulting code will often be at least 50% shorter than the un-guided version.


Replies

panstromek05/14/2025

Well, the article mentions that this reduces accuracy. Do you hit that problem often then?

show 1 reply
theshrike7905/15/2025

Gemini on the other hand has a tendency for super-defensive coding.

It'll check _EVERY_ edge case separately, even in situations where it will never ever happen and if it does, it's a NOP anyway.