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 commentsThe service layer (business logic) is less critical and can be fixed/managed later relatively low cost. The critical thing for me is to keep the commits and pr small and readable. Otherwise black box area.
Input->black box->Output. It's kinda like how fuzzing is so effective.
I think for important stuff code should be reviewed. But we've reached the point where something like frontend can just slap tests and perf/draw requirements on and as long as it meets those who cares what's in between input and output.
My dumb little utils in ~/.local/bin? Those get merged after a quick functional test without my having read a single line of it. Still, the skill I maintain for such a job directs agents to write such throwaway scripts in anything but shellscript because I might want to extend some day and fuck shellscript
All comments shown.
Couldn't load more comments. Check your connection and try again.