▲ 466 ▼ I know I should... but I just really don't wanna (programming.dev) submitted 3 years ago by jeff@programming.dev to c/programmer_humor@programming.dev 52 comments fedilink hide all child comments
[–] httpjames@sh.itjust.works 7 points 3 years ago (3 children) Copilot Chat can write some pretty good unit tests now permalink fedilink source hideshow 3 child comments replies: [–] lemmyvore@feddit.nl 13 points 3 years ago (2 children) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] Lifter@discuss.tchncs.de 2 points 3 years 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. permalink fedilink source parent [–] httpjames@sh.itjust.works 2 points 3 years 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. permalink fedilink source parent
[–] lemmyvore@feddit.nl 13 points 3 years ago (2 children) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] Lifter@discuss.tchncs.de 2 points 3 years 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. permalink fedilink source parent [–] httpjames@sh.itjust.works 2 points 3 years 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. permalink fedilink source parent
[–] Lifter@discuss.tchncs.de 2 points 3 years 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. permalink fedilink source parent
[–] httpjames@sh.itjust.works 2 points 3 years 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. permalink fedilink source parent