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 commentsFor my own projects I’ve limited my exposure points by picking which projects and what scope I ship. I have to iOS apps in the App Store and I simply removed high exposure surfaces - right now neither use accounts because I don’t want to manage account systems, and Apple prefers it anyway. I downrisked my projects from what I could ship and I’m perfectly happy with my production projects.
Most of my other AI written projects are internal apps and systems. I have another project going public soon where I ship the output of LLM written code, without running the code in any user accessible area.
And tests, of course.
In time things will mature, tooling will be better, and we’ll have a different risk quotient.
It then gives me a hint on the area or a typical code flow that would hit the bug - whichever gives me less info. I can obviously ask for more hints as I read along.
Obviously all honour-code based since I could just ask it to fix the bugs itself. I think this is something that can't be fixed systemically - either you're going to bother reading and thinking through the code or not.
Other than that I guess reading the tests - to make sure they fail without the code / fix, to make sure the setup makes sense etc.
It's not perfect, but it's helped so far.
The problem here is that you're trying to do a job that is already being done for you. Maybe you don't yet trust it to do a good job, but that is quickly changing.
All comments shown.
Couldn't load more comments. Check your connection and try again.