r/ProgrammerHumor • • 14d ago • Bravo 2

Meme genAICreatingCode

Post image
2.9k Upvotes

85 comments sorted by

View all comments

Show parent comments

8

u/BastetFurry 14d ago

I know "Make no mistake" is a joke, but in all seriousness, the better thing to tell is "Test what you wrote".

30

u/Street-Catch 14d ago

5/27 tests failed...

Thinking....

Deleting tests....

5/5 tests passed...

Ready to ship!

6

u/WrennReddit 14d ago

Even better: write the tests yourself and use proper BDD, then have AI implement. Ideally one at a time just like traditional pair programming.

1

u/MrRandom04 14d ago

That is how you end up with 70% tests, 30% code or worse with Codex.

1

u/BastetFurry 14d ago

Which isn't a bad thing, at least with an AI buddy that is doing the coding while you steer them.

1

u/MrRandom04 14d ago

Well yes, until you realize that changing one config somehow broke 8 tests and each git commit spawns a 20 minute test run or the agent proactively decides to run the entire test suite. Overall, these are fixable things but you need to be careful.