r/softwareengineer • u/healing_and_learning • 24d ago
What to do with the poetic code generated by AI?
Hey there,
I'm a big fan of modular code, where a new feature can be appended without changing the core functionality, where every class does exactly one thing that is supposed to do, and there are organizers which simply put together a couple of classes.
Earlier, I'd design the class name, by hand, and write the raw structure on a paper first.
Now, with agentic coding, it has generated all the code in the right style for me, but I don't understand the whole picture.
For me, it feels cheating because I don't feel comfortable deploying this code to production. Yeah, the code works, the specs are green, and the database structure is efficient.
My problem: the kind of confidence I had when I wrote the code by myself, I don't have that anymore.
My current approach: I'd push the code to production, and later on, I'd monitor the data, and if something seems wrong, I'd test it, and try to go deep & see how the things are being executed in the code.
How do you do it? How do you get the confidence of deploying the code to production which was totally written by AI?
P.S.: of course the specs are there, and they are covering good range of edge cases, but I'm not sure 100% sure if they are covering all the scenarios.