News for hackers. Stuff that matters.
Re:When I reject AI code even if it works by what on Sunday June 21, 2026 @12:26AM (#48615673)
> that's tens of thousands of LOC in a single file

Why is this worse than splitting it across 1k files?

Re:When I reject AI code even if it works by codemog on Sunday June 21, 2026 @02:55AM (#48616333)
Does taking this example and extending it to the limit answer your question? There is a reason we don’t have a single file called program with a million lines of code in it. Google studies on module size vs code defect rates for more empirical numbers.
Re:When I reject AI code even if it works by ben_w on Sunday June 21, 2026 @04:57AM (#48616978)
The limit you're replying to is files which are each tens of lines long. At that point, the cognitive overhead of switching documents is larger than the benefit of a compact object to reason about.

(Personally my threshold is around 2-5 thousand lines per file depending on what it is; but that's me working solo, obviously I'll follow whatever standards any team I'm in gives me).