zlacker

[return to "GitHub Copilot available for JetBrains and Neovim"]
1. ipnon+V5[view] [source] 2021-10-27 18:11:22
>>orph+(OP)
Can any users give their opinion on how it's helping their productivity? What problems are they finding, if any?
◧◩
2. nemo16+rh[view] [source] 2021-10-27 19:02:10
>>ipnon+V5
I wrote a test recently for a simple "echo"-style server: clients writes a name to a socket, server replies with "Hello, " + name. Nothing crazy.

In the test body, I wrote "foo" to the socket. Copilot immediately filled in the rest of the test: read from the socket, check that the result is "Hello, foo", and fail the test with a descriptive error otherwise.

wtf? How did it figure out that the correct result was "Hello, foo"? I changed "Hello" to "Flarbnax", and sure enough, Copilot suggested "Flarbnax, foo". I added a "!" to the end, and it suggested that too. After pushing a bit further, the suggestions started to lose accuracy: it would check for "???" instead of "??" for example, or it would check for a newline where there was none. But overall I came away very impressed.

[go to top]