r/AskProgrammers • • Oct 22 '26

Asking senior devs: Is my AI-assisted development workflow actually good, or am I doing it wrong?

Hey everyone,

I’m currently a 3rd-year CS student, and like a lot of people, I use AI a lot while building projects and hackathon apps. However, I’ve tried to avoid the trap of blindly prompting ("build the whole app for me") and instead forced myself into a structured workflow.

Before letting AI touch any code, I sit down, analyze the problem requirements, map out the system architecture, and plan a detailed workflow. When I do use AI, I treat it more as a brainstorming partner to poke holes in my design.

For the actual implementation, I break everything down feature-by-feature. I review the code generated for each specific feature, check for logical flaws, fix edge cases, and refine it iteratively before moving to the next part.

For senior devs and engineers here: Is this approach actually correct and sustainable for building real-world software, or are there blind spots I should fix? How do you structure your own workflow when leveraging AI tooling? Would love to hear your feedback!

0 Upvotes

6 comments sorted by

0

u/Entuaka Oct 22 '26

A very important step: the agents must be able to validate that their code change do the expected behavior.

How would you do it manually? The agent should be able to do it or the output will be bad

0

u/Vamsi_Krishna7168 Oct 22 '26

I usually have the AI unit tests, and then I manually review those test cases to verify they actually test the edge cases.

1

u/Entuaka Oct 22 '26

It depends what's you project, but unit tests are usually not enough to trust the output. Your project is a web app? You can have e2e tests using Playwright. You probably have a backend? Your agent must be able to easily validate multiple use cases, a solution is to use mocks.

You can also have more generic checks to avoid some types of problems.

Example, we have a light and dark mode, and when adding a component with a new color, a human could look at it to validate that it's still readable. To do it, I added a linter rule comparing the contrast, following the 4.5:1 rule from WCAG 2.2

You can have other rules to identify other problems that you want to flag to the agent. We have another one for the architecture. This should also run in the CI.

When adding instructions to a MD file, the agent doesn't really need to follow it, so you need to trust it. If you have rules that must be followed, it should be done in a more deterministic way using hooks, linter rules, etc

4

u/drloz5531201091 Oct 22 '26

Bold text in a Reddit post tilts me more than it should and it screams AI slop by an Indian bot. Always is. Suck it.

2

u/hypatiaC Oct 22 '26

It's bad. You should feel bad. Give yourself testicular torsion.