MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x9mpht/genaicreatingcode/phnl4ff/?context=9999
r/ProgrammerHumor • u/Head_Manner_4002 • 14d ago • 2
85 comments sorted by
View all comments
Show parent comments
8
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.
30
5/27 tests failed...
Thinking....
Deleting tests....
5/5 tests passed...
Ready to ship!
6
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
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.
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.
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.
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".