Hacker News new | ask | show | jobs
by bluGill 561 days ago
Copilot does very well when I'm solving the same problem I've solved in the past with different parameters. Parse a CAN network packet (8 bytes so they do weird things like 6 bit counters with 2 bytes in byte 3 and the rest in byte 4) copilot can write that and the tests quickly - we have hundreds of different CAN packets we parse so there is a lot of example code to look at. Everything is just different enough to look like boilerplate while not actually being boilerplate. However when I'm trying to write code that isn't a variation of something I've done many times before copilot is not helpful. It can't complete as much and what does complete is wrong often for style reasons (it would be nice if the function it wants to call existed but it doesn't, or does takes some other parameter that it doesn't know)