Fun trick you can do with Copilot:
If you add add a comment
`# The above function has a bug:`
The completion will give you suggestions for potential bugs in your code
Sep 8, 2022 · 7:21 PM UTC
Of course, this won't catch all (or most) bugs, but it's fun thought exercise and I imagine this capability will improve in the future.
Here are a few other examples (cherry picked):
It's also important to consider how better code models might lead to worse bugs, e.g. through automation bias (people's tendency to trust automated systems more than they should)
en.wikipedia.org/wiki/Automa…