Posted by rzk 16 hours ago
Ask HN: How to deal with shipping AI-written code you don't understand?
https://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?
The mental gymnastics developers are willing to go through just so they can avoid standing up for something is quite perplexing.
easy, don't write code with LLMs. If my job forced me to do so I would quit.
With zork I can also just start typing in a code file and leave instructions for the agent to fill in or fix parts of the code while I'm editing it. So I can lay out what I want the class shape to be and don't have to implement all the annoying little parts. This feels more like the GitHub Copilot days.
I honestly believe more of us will pair program with agents, not just yelling at a chat window.
not understanding the detail is quite similar to a coworker writing the code and another coworker approving and merging the changes.
You will know intuitively if it's worth taking a closer look or if u can safely close your eyes and just commit it right away.
I usually know which meta questions are crucial to clarify with colleagues and where to check the code punctually.
On the other hand, not even surprised anymore most people even try to provide serious answers to this. Welcome to the pure insanity.
In any case at the end you're the owner/accountable so you need to justify your and your agent choices.