News for hackers. Stuff that matters.
Re:40% of the code GitHub Copilot users check-in is AI gener... by Waterluvian on Tuesday March 14, 2023 @09:54PM (#35162692)
For me the worst part about this is that writing tests tediously makes me reach for layers of abstraction on my test code. And then suddenly my test code is complicated and needs its own test code, and changing a test can often be problematic to the abstractions I foolishly employed.

Being able to churn out the boilerplate for tests, which can make DRY a non-concern, is great. I just hope that if I do this, I never get sloppy, and I always review the tests.

Re:40% of the code GitHub Copilot users check-in is AI gener... by rjh29 on Wednesday March 22, 2023 @10:06AM (#35261174)
I agree! I try not to make test code too complicated, and prefer repetitive code over abstractions (else you have to test the tests!) so Copilot is useful there.