r/PinoyProgrammer • • Oct 29 '26

advice How do professional developers verify that AI-generated code is actually correct?

How do you know the output is actually correct when AI generates the code?

Aside from end-to-end (E2E) testing, are there other ways to verify that AI-generated code works as intended and meets the actual requirements?

For example, if I ask an AI to build a backend API with specific business rules, it might generate code that runs without errors and passes the tests I provide, but how can I be confident that the implementation is correct and follows the specification?

I'm curious about how professional software engineers approach this problem.

\- Do professionals follow specific guidelines, standards, or checklists to verify that code meets its specifications?

\- What techniques do you use besides unit, integration, and E2E testing?

\- How do you identify subtle logic errors, missing edge cases, or incorrect assumptions in AI-generated code?

\- Are there established practices for reviewing code against requirements rather than simply checking whether it runs?

I'm trying to understand how to move beyond simply trusting AI-generated code and develop the skills to verify its correctness independently.

I'd appreciate any insights, resources, or real-world examples from experienced developers.

56 Upvotes

76 comments sorted by

View all comments

120

u/GenuineStupidity69 Oct 29 '26

That's the neat part, we don't.

26

u/ube_enjoyer Oct 29 '26

we can vibe check :v

11

u/Cheese_Grater101 Oct 29 '26

Lgtm

1

u/Adventurous-Cat-7312 Oct 29 '26

Hahahhaha right!!!! Lgtm agad hahahha

1

u/Loose-Average-5257 Nov 04 '26

It was lgtm then, it is lgtm now hahahaahha

4

u/Budget_Sleep2779 Oct 29 '26

true, AI is writing code so fast that we cant even review it manually, so we let another AI review it lol

3

u/Tall-Appearance-5835 Oct 29 '26

aint nobody got no time for that

18

u/GenuineStupidity69 Oct 29 '26 • Bravo

The new UCDD, User Complaint-Driven Development

2

u/thisbejann Oct 31 '26

the end users are the real testers 😂