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 commentsI have 2 major products I'm working on:
- a db written in Rust that is 500% faster than SQLite, and has 100% parity. https://inillucent.com/
- an agentic ide written in Rust https://unluminous.com/
Now that they are both well established, I'm able to ship new features quickly, and with very few bugs.
What matters are the high level decisions in the code such as "Deleting an account removes the row for good", "Email becomes the user’s permanent ID", etc.
We imagined a completely new concept for code reviews where you review the decisions not the code diffs. Also if you want to review the code it is grouped by concept not by random file diffs.
This is coming from someone that likes manually coding btw but our PR size and velocity is increasing too fast to meaningfully review all the diffs forever.
In the beginning your had your hands deep in the code, knew every corner and every pattern. Then you became teamlead, coaching other devs and only reviewing their code. Then you became managaing lead taking over more projects - now you don't look at code anymore, but you still manage the people that write the code and make sure the code fulfills its requirements and delivers on product roadmap. You develop trust in your team, you barely every read their code. If individual teams or devs ship bad code, you will only learn from prod defects, but the measures are mostly the same - fix the team.
So accept your promotion to product manager and build like you never could before. Use all the saved coding time for testing what you build, be very suspicious of your team.
All comments shown.
Couldn't load more comments. Check your connection and try again.