461
you are viewing a single comment's thread
view the rest of the comments
[-] lemmyvore@feddit.nl 13 points 1 year ago

A good unit test is an expression of the intent of the programmer that wrote the unit of code. How would Copilot know what your intent was?

What Copilot does is to test exactly what the code is currently doing... which kinda defeats the purpose.

But it does raise a good point, because that's usually exactly what teams are asked to do (especially when there's a high coverage requirement). It's completely pointless busywork, but that's what makes it perfect for Copilot.

[-] Lifter@discuss.tchncs.de 2 points 1 year ago

Copilot happily writes failing testa too, TDD style. It just generates code tests that are very common and probably won't catch those hard to miss cases anyway.

[-] httpjames@sh.itjust.works 2 points 1 year ago

Copilot Chat uses GPT-4 and can see more context than just the line you're on. It has more reasoning than the autocomplete model.

this post was submitted on 28 Jun 2023
461 points (97.1% liked)

Programmer Humor

19187 readers
1118 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS