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 commentsWhat I do is ask Opus/Gemini to explain the parts I don't understand. And I do some of my own research to verify accuracy of the explanations.
In addition:
* Every new feature has a Feature Design document which I review, modify, and approve. And a corresponding Implementation Plan which I also review and approve.
* Every fix has a RCA document and fix Implementation Doc which I review, modify, and approve.
* There's a global high level Architecture and Design document with additional sub component design documents which are always kept in synch after a new feature or bug fix is done. Synching it is always a step in the Implementation plan.
This does adds some overhead but it allows me to have have check point gates. This has often allowed me to catch misunderstandings and align properly before any code gets edited by the AI agent.
Having the above docs also helps when it comes to referencing them as context to properly ground new features or bug fixes.
They say a good team will filled by much skilled people, that most people should be better than the leader, so how to management those people, you don't have much skill than them in the precise domain, and you don't guide them how to code like you, because they're have better coding skill than you.
The way you management them is , tell them what's the object is, and will you judge this, and how important of this, and pull the support resource(people, hardware) they needs and give them enough time to work on that(you should have estimated time frame of most of task, except research project).
I personally ally those skills in management many coding agent, and feel it very efficient, I even think they have much output then a 10 people team in old times( I think it will be 10x more efficient if old member have same coding agent).
A manager never read all the code, you just need to find the level at which you are getting good results. For some tasks you need to read every line, even write every line, for some tasks you let it do everything and just test the feature.
I and my AI coworkers are building AI agents orchestrator system and for distrustful people we let two of them to build publicly opensource service (142 pull requests, 137.8 hours of AI work ~ 393 hours human work) https://github.com/jchsoft/mcp4mail.
To be honest. I personally do not read every line of code, just occasionally I am checking diff or PR changes and rely heavily on tests. BUT I know that I am able to understand every line of shipped code. And you should too.. that's my POV.
All comments shown.
Couldn't load more comments. Check your connection and try again.