> Tests without the toil. Tests are the backbone of any robust software engineering project. Import a unit test package, and let GitHub Copilot suggest tests that match your implementation code.
Isn't that the wrong way around? I'd like to start by writing the tests, and for GitHub Copilot to please implement the function that makes them pass.
I can only imagine one of the big reasons to release Copilot to the public for free is to make it better by sending back to GitHub the "reviewed code". Example:
- Copilot suggests me a snippet of code - It's almost what I wanted. I fix the code - Copilot sends back the fixed code to GitHub - Copilot gets better at guessing my (and others) wishes Unless Copilot is running locally, I won't use it.
Same, I do quite a bit of mistakes like pasting secrets and immediately deleting them right after, and I also have local secrets that are gitignored which I think copilot would just upload without a second thought.
I haven't kept up with the adversarial ML field recently, but I wonder how vulnerable these models are to adversarial attacks.
- Could someone deliberately publish poor code to reduce the overall performance of the model? - Could someone target a specific use case or trigger word by publishing deliberately poor code under similar function definitions?
I'd rate myself as "above-average receptive" to ML-based tooling, but after trying two "AI autocomplete" tools (Kite and TabNine) I've decided it's not for me. The suggestions were usually good, but I found having complex, nondeterministic IDE commands pretty unsettling.
Could actually make you better at producing robust code, though. It's somehow always easier to spot someone else's mistakes than your own.
Or to put it another way: you know you can't trust the AI-generated code w/o convincing yourself it's correct. You think you can trust the code you wrote yourself, but you're probably wrong! :-)
Comments (1,272) 260 threads
Earlier commentsIsn't that the wrong way around? I'd like to start by writing the tests, and for GitHub Copilot to please implement the function that makes them pass.
- Copilot suggests me a snippet of code
- It's almost what I wanted. I fix the code
- Copilot sends back the fixed code to GitHub
- Copilot gets better at guessing my (and others) wishes
Unless Copilot is running locally, I won't use it.
- Could someone deliberately publish poor code to reduce the overall performance of the model?
- Could someone target a specific use case or trigger word by publishing deliberately poor code under similar function definitions?
Or to put it another way: you know you can't trust the AI-generated code w/o convincing yourself it's correct. You think you can trust the code you wrote yourself, but you're probably wrong! :-)
All comments shown.
Couldn't load more comments. Check your connection and try again.