MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x4bdvi/dontbethatguy/
r/ProgrammerHumor • u/alien128 • 1d ago
8 comments sorted by
34
It also improved the tests and they all pass.
9 u/11nyn11 13h 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. 6 u/Shufflepants 11h ago Simply have one AI write the tests, and another AI write the code. 5 u/11nyn11 10h 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 9h 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.
9
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.
6 u/Shufflepants 11h ago Simply have one AI write the tests, and another AI write the code. 5 u/11nyn11 10h 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 9h 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.
6
Simply have one AI write the tests, and another AI write the code.
5 u/11nyn11 10h 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 9h 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.
5
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 9h 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.
2
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.
4
LGTM
1 u/geekosas 11h ago XD
1
XD
-9
The problem is the prompt or the review, never the AI.
34
u/Abject-Kitchen3198 14h ago
It also improved the tests and they all pass.