Ask HN: If AI tools are so good, why isn't your bug backlog empty?
120 pointsA lot of people outside tech ask me if AI is going to replace programmers and I just think: if that were the case we should be running out of things to do
The bug backlog should be empty and we've caught up to every feature request from PMs to the point that we are bottlenecked on the business side
But that does not seem to be the case with my own company or most devs I talk to in the industry
So what gives?
Comments (127) 90 threads
Earlier commentsYup, I actually achieved that for a smaller system at work.
Tracked down and resolved every single logged bug there, alongside additional correctness improvements - after migrating the system from Oracle to PostgreSQL (it had a narrow enough domain where that was possible, made iterating way easier due to how easy it is to work with PostgreSQL and tune its setup for a specific workload), adding Testcontainers and pushing the test coverage to the high 90s percent, as well as migrating the front end from Vue 2 to Vue 3. Also wrote a custom load testing tool and improved the performance by up to 20x (though there were some really bad querying and N+1 issues at play).
It wasn't completely smooth and did create a few bugs along the way which also needed to be fixed, but overall was pretty solid - mostly due to the fact that the system had been developed with support for mock data from day 1 where you could spin up an instance and play around with pretty much anything you wanted. Hell, one could probably do a Rust rewrite of it if they didn't have anything better to do (not a Rust shop though).
That approach wouldn't really work for larger systems as is (e.g. there are some that are like around half a million SLoC), underdocumented systems, or systems where testing is contrived and difficult, as well as some stacks that just suck (e.g. bringing down a shared dev DB instance preventing N people from doing their work). Oh and also it took about an order of magnitude more tokens than would normally be given to your average dev.
Right now in my circumstances the bottleneck doesn't actually seem to be creating changes/features, but rather deployment and shipping as well as configuration management (assuming you have clients that need release instructions). Oh and being able to sell new work packages. Either way, in general you need more tests and specs than you think you do.
There is no guarantee that the new bug is not worse than the old bug.
For this reason, not every bug should be fixed. Especially, not every bug should be fixed and immediately pushed to production.
But maybe that wasn't the question. The question said "bug backlog". You could argue that bugs that we have chosen not to fix are not part of the backlog. Even so, fixing 20 bugs and pushing them to production may mean pushing 7 to 10 new bugs to production. Maybe you don't want to do them all right away.
For him, it really is helping him crush his backlog. It's a scale we forget about sometimes where you have hundreds of users, and not millions.
4 have zero backlog of any sort.
1 has a fleet of agents working through some product improvements that I postponed until the very end of the project. It's a very rote "rebuild this game on a modern engine" project to resurrect a game I developed 20 years ago, and there's a few small improvements I want to make to the game that deviate from the original. Today is day 5 of the rebuild, so it's not exactly a long-lived project per se -- but the bots did identify a bunch of defects in the original game and addressed them as part of the conversion project.
1 has:
- A few flaky tests to clean up. - A couple heisenbugs that I can't pin down until I get a couple PCs for testing (3D graphics stuff is Fun). - A whole lot of features that consist of one sentence I wrote down to avoid losing track of an idea, and which I may or may not ultimately choose to implement at all. - A couple issues that can't proceed until a human gets involved. I.E. I need to go through the hassle of setting up a corporation and setting up accounts with the various gate keepers (Apple, Google, Valve).
The biggest bottlenecks for me, at this moment are -- in descending order:
1. Running the linters / test suites / build processes for two of my projects completely slam my machine (load average hit 290 earlier today with 3 agents running things across the 2 game dev projects; CircleCI / Github Actions would be waaaay too expensive so I'm running it all locally until I can set up a CI runner node). 2. My bandwidth for acceptance testing, and other human-only work (read: game balance / play experience) 3. Weekly usage caps for fixed-price plans from the three services I use.
Setting aside my relatively unusual circumstances: At any business, you're going to have a problem of information rot when it comes to a backlog. The person who recorded a defect or feature request may not remember enough context to make it actionable (or they may not be at the org anymore). The assumptions underpinning the issue may or may not hold anymore (and it may not be clear which situation you're in). Etc.
Plus, there's going to be a not-unreasonable risk aversion to making changes that are in peripheral areas of the system that don't get a lot of attention -- lest fixing one issue cause some unexpected but undesirable outcome.
A lot of it mostly boils down to either "institutional knowledge gap" or "acceptance testing is a bottleneck".
All comments shown.
Couldn't load more comments. Check your connection and try again.