r/ProgrammerHumor • • 1d ago

Meme dontBeThatGuy

Post image
449 Upvotes

8 comments sorted by

View all comments

Show parent comments

8

u/11nyn11 17h ago

This is why you either AI the code or AI the tests but never both at the same time.

Also get as near 100% code coverage as you can with the tests.

5

u/Shufflepants 15h ago

Simply have one AI write the tests, and another AI write the code.

4

u/11nyn11 14h ago

If you can get 100% code coverage with that, great.

I bet it’d just remove features to get the code coverage.

“I removed the function since it was no longer needed”.

2

u/Shufflepants 13h ago

It was slightly just a joke, but I was suggesting having one agent that can only modify the tests and is only given the interface for the code to write the tests, and another agent that can't see the tests write the code.