Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's also amazing to write documentation or unit tests. Or repetitive editing tasks that are hard to automate (e.g. "invert this if condition").


> or unit tests

Seriously! I write a documentation comment like:

    /// Given: blah
    /// When: blah
    /// Then: blah
and Copilot writes the test for me. I can generate a dozen tests like this and it's awesome. I write a lot more tests because of Copilot.


It even does an ok job with ‘rewrite this callback heavy code as async/await’ if you tell it which functions to use instead of ones accepting callbacks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: