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 commentseasy, don't write code with LLMs. If my job forced me to do so I would quit.
Continue this thread — 1 reply
If I'm working with something I don't understand, I ask the LLM to teach me first, with as many references and correlations as I need to fully know what's going on.
I also do the architecture myself, but ask for periodic suggestions for improvements and checks on how other systems are doing it. If I see a newer system I think makes sense, again I ask for explanations until I understand it.
Idea is always that the agents assist me in doing something I could have done myself if I didn't happen to only have 24 hours in a day and other parts of my life to live.
You'll also discover over time which systems the AI can handle fine on its own and which abstractions and systems it just has no ideas on how to design. Often I find I have no idea how to design those too. It's then useful to try different designs, test tradeoffs and refactor aggressively if needed.
If you continue down this path, your golden goose is COOKED
All comments shown.
Couldn't load more comments. Check your connection and try again.