Hacker News new | past | comments | ask | show | jobs | submit
That's why I always optimize for as few lines of code as possible and for as much reusability of existing libraries as possible.

I think this is the ultimate benchmark for well written LLM generated code. DRY FTW.

I agree with the general sentiment, but I would drop the 'DRY' part.

LLMs really don't like any duplication, even for some very basic shit, and that ends up leading them to create an infinite number of helper methods that makes reviewing even harder.

And if you ask it to 'tone down on DRY' (tried various phrasings), it never creates helper functions anymore.

loading story #50546017
loading story #50545955