Ask HN: How to deal with shipping AI-written code you don't understand?
630 pointshttps://www.linkedin.com/posts/ali-hamie_im-an-engineer-at-m...
> I'm an engineer at Meta and I never felt this uncomfortable doing my job. I'm writing code these days and it all feels like a black box. This new standard of shipping with AI is moving so fast that if we're going to spend our time checking each line of code, it's going to take forever. That means you can end up with systems you've built where you don't truly understand how all the code works. You understand the high level, but not every detail. And maybe this is becoming the new standard. It goes against every instinct of being a software engineer. I'm used to understanding what I'm building. Now I'm trying to figure out how much I need to understand before I'm comfortable moving forward. Are other engineers feeling this too?
How are you handling this?
Comments (767) 238 threads
Earlier commentshttps://theseus.dev
Basically, Theseus reads your pull request and your codebase, categorizes the kinds of edits that were made, and writes human-readable documentation that describes what changed. Then, it shows the explanation side-by-side with the code, but presented in a way where you can decide what you want to skim and what you want to deeply review.
I don't think engineers should have to choose between wading through thousands of lines of slop and just smashing LGTM on every pull request. The problem is that the tools for code review are built for an age where code was expensive to write. Now that code is cheap, we need to start experimenting with tools that allow us to stay in sync with what's going on, while also not needing to review every single line individually.
I would research and explain what I wanted the product to do. We'd discuss technical trade-offs, drawbacks, and risks. Eventually, we'd ship something. I understood broadly how the infrastructure worked, but to a large extent I had to trust the quality of the code my colleagues were writing. Sometimes things broke. That's okay, we're only human.
I think I'm just more comfortable being held responsible for something I don't fully understand because I always have been. Maybe I'm delusional and the comparison won't hold. We'll see.
During my 30+ years career I have never worked in a project where shipping slop (AI or pre AI, doesn't matter) was an acceptable solution. That's my choice and I'm pretty happy I have always had the opportunity to focus on quality of the product.
PS: LLMs are wonderful. We should learn to differentiate between AI-generated slop and AI-generated code.
All comments shown.
Couldn't load more comments. Check your connection and try again.