ChatGPT / Bing Chatįor writing new blocks of code, our team found good results using ChatGPT and Bing Chat. You can find out more information about GitHub Copilot here. TIP: If you want Copilot to write something useful for you, try writing a comment that describes what your code is going to do – it can often take it from there. It is often hard start writing when staring at a blank page, Copilot can fill the space with something that may or may not be what you ultimately want to do, but it can help get you in the right mindset. Notice in the below example how it was able to write a fully functional new unit test based on other unit tests in the same file. This means generally after creating a new test function, you can “tab-through” most of the implementation and then change what you need to for the test. Given that setup and assertions are often consistent across unit tests, Copilot tends to be very accurate at anticipating the code you need in a new unit test. In most cases, it could write a useful description of the function and parameters that needed very little or no input from the developer. We found it especially useful to document functions after they were written. However, there were many other exceptional use-cases: When Copilot writes code, it generally gives you something useful, but only about half the time it is what the developer was trying to write. While Copilot can write code for you, we didn’t find that to be the most compelling case. It can write functional code based on understanding the context of the code you are writing. It gives code completion hints in the same way that Intellisense might, except the scope of what it can offer is much greater. Copilot is an extension that can be installed in both of these IDEs (as well as others). Most of the team uses Visual Studio Code and the remainder use Visual Studio. GitHub Copilot was the obvious place for our team to start. We hope this post gets you excited about how you can use AI tools in your own work. This post will briefly talk about the tools we used and the results we got. AI tools have quickly improved and our team made a purposeful effort to use them during our last engagement.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |