From the course: Responsible GitHub Copilot: Creating Reliable Code Ethically

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Crafting excellence: Development best practices

Crafting excellence: Development best practices

- By now, I have said this a couple of times, but I cannot stress it enough. While using generative AI like GitHub Copilot, you are in a driver's seat. You provide direction to Copilot on what you want to achieve, and you give it hints on how you want to achieve that. Then you decide what you do with the suggestions that Copilot gives you. This also means that all the coding lessons learned from coding apply. You need to validate that you have created code that works, code that performs within your requirements and code that is maintainable in the long run. Since you are responsible for creating all that code, you need to use your expertise to validate everything as well. That means creating a way of validating the code does what you expect it to do. And this often starts with things like adding unit tests, but using Copilot, you can also go to the next level and ask it for other ways to test and validate your code. Testing includes validating the code executes as instructed, but also…

Contents