News for hackers. Stuff that matters.
Re:Designing Software in the Large by debug_forever on Monday August 11, 2025 @03:20PM (#44868333)
The complexity in our team's code bases have only gotten worse with AI-integrated agents. Maybe it's the prompts we're using, but it's an ironic twist that these tools that promise so much productivity today ends up dumping more tech debt into our code.

It's funny reading the "key contributors to dependency-complexity" -- Duplication, Exceptions, Inheritance, Temporal Decomposition -- because those qualities seem like the standard for AI-generated code.

Re:Designing Software in the Large by Jtsummers on Monday August 11, 2025 @03:35PM (#44868513)
> but it's an ironic twist that these tools that promise so much productivity today ends up dumping more tech debt into our code.

Because long-term productivity was never about the generated lines of code. You can increase your system features through expansion, or by a combination of expansion and contraction.

Generating new code without spending time to follow through with the contraction step, or alternatively contracting first as a way of enabling the new expansion, will always make the code more complex and harder to sustain and continue to improve wrt the feature set.

Re:Designing Software in the Large by davidfstr on Monday August 11, 2025 @08:46PM (#44871120)
I have to take special effort to tamp down on duplication in AI generated code.

For me it's not uncommon for AI to draft an initial solution in X minutes, which I then spend 3*X minutes refactoring. Here's a specific example for a recent feature I coded: https://www.youtube.com/watch?v=E25R2JgQb5c