Comment by kragen

24 days ago

> I believe many of the optimizations are premature. If you did not spot the problem in your QA testing, chances are it was not that important in the first place.

QA testing can't find missed optimization opportunities unless the performance is absolutely abysmal. Even then, it can't distinguish abysmal performance due to missing easy optimization opportunities from abysmal performance that's going to require you to sacrifice functionality.

If an app performs well because it caches the result of a slow function, it's going to pass QA just fine. If optimizing that slow function would make it fast, you can drop the cache and have a simpler and more robust app — but QA can never tell you that.

So in that scenario it passed QA just fine, because the cache made it fast anyway.

Is having a simpler and more robust implementation worth the time to review, understand, and improve it? I'd put that at easily 5-10x the effort.

If in the future performance was found inadequate, you could still have the agent revisit the slow function.

That's what I mean with the optimization being premature.

  • Having a more complex and less robust implementation adds a multiplier to all of your future costs. When a system is 200k lines of code instead of 10k lines of code, every new feature you add and bug you fix takes 5–10× the effort.

    • I had similar concerns when I was working with GPT-5.5 earlier this year. At the time my project was perhaps ~150k LOC.

      After struggling with some more complex features even after many iterations, I started to doubt, and questioned whether I'm writing myself into a dead-end.

      I did not. I still made progress and things worked out just fine. Then Fable and later GPT-5.6 Sol came out, boosting productivity and complexity of features I could implement successfully.

      The effort only ever went down, and my app was released in the AppStore last week, at about ~500k LOC.

      I understand why people might believe that using AI and not manually cleaning up suboptimal or overly defensive implementation would eventually result in an unmaintainable mess.

      Based on my personal experience and 500+ hours put into my project, I can confidently say that this is not the case. Increased effort to maintain is negligible.

      6 replies →