I've been using GitHub Copilot with our production codebase for the last 4 months, and here are some of my thoughts:
The Good:
Explains Complex Code: It’s been great at breaking down tricky code snippets or business logic and explaining them properly.
Unit Tests: Really good at writing unit tests and quickly generating multiple scenario-based test cases.
Code Snippets: It can easily generate useful code snippets for general-purpose use cases.
Error Fixes: Copilot is good at explaining errors in code and providing suggestions to fix them.
The Not-So-Good:
Context Understanding: It’s hard to explain the context to a GenAI tool, especially when our code is spread across multiple files/repos. It struggles to understand larger projects where changes are required in multiple files.
Inaccurate Suggestions: Sometimes it suggests installing npm libraries or using methods from npm packages that don’t exist. This is called Hallucination, where AI-generated code looks convincing but is completely wrong.
Complex Code: Occasionally, the code it generates is confusing and complex, making debugging harder. In those moments, I wish I had written the logic myself and let Copilot check for errors or bugs.
Overall, GitHub Copilot has been a useful tool, but it has its quirks. When using large language models, the responsibility always stays with the programmer.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3