6 ms·
It is amazing for typing out mock data. Say you're testing parsing of XML - it can easily suggest the the assertions over the data parsed from the XML. Example
by premun 4y ago
It is amazing for typing out mock data. Say you're testing parsing of XML - it can easily suggest the the assertions over the data parsed from the XML.
Example test that was 95% coming out of Copilot:
https://github.com/dotnet/arcade-services/blob/61babf31dc63c1ec182c102cc249d8630f04ba03/src/Microsoft.DotNet.Darc/tests/Microsoft.DotNet.DarcLib.Tests/Models/VirtualMonoRepo/GitInfoFileTests.cs#L42-L81 https://github.com/dotnet/arcade-services/blob/61babf31dc63c...
It also predicts comments and logging messages amazingly well (you type "logger." add 7/10 times get what you want, sometimes even better), incorporating variables from the context around. This speeds up the tedious parts of programming when you are finalizing the code (adding docs + tracing).
Honestly, Copilot saves me so much time every week while turning chores into a really fun time.
- trip-zip 4y agoI honestly thought I'd never use copilot, but when I need to write something to interface with XML via a SOAP API, boy copilot is my best friend...
- JustLurking2022 4y agoThat code is wretched... Why have serializer logic embedded in a data object, especially when .NET provides generic discrete serializers?
- deleted 4y ago[deleted]
- jackcviers3 4y agoYeah, tabnine kills it at the data entry parts of test dev as well for sure.