3 ms·
You can. Just write a descriptive comment, enter a newline, and it will attempt to autocomplete the code for you.
by simplify 4y ago
You can. Just write a descriptive comment, enter a newline, and it will attempt to autocomplete the code for you.
- weatherlite 4y agoTried it a few times didn't work well but I will try again...
- nomel 4y agoI don't think they're comparable. I work in test automation, with equipment and devices. I can describe an equipment setup, and how the device is connected, and it'll write the relatively appropriate code, with electrical engineering concepts in mind. I can ask it if there are any concerns with the setup, or signal integrity, what to do about it, all with good answers. A CoPilot comment can't do that.
- SkyPuncher 4y agoIt's really hit or miss. I had one case where I needed state management in a really simple react app. It created an entire reducer for me, from scratch. Handled all the boilerplate cases, I'd expect. I've also had cases where it struggles to built a from button.
- everforward 4y agoMy experience is that it does much better with specific things than general. It does better in statically typed languages than dynamic, and it does better with functions that do a specific small thing than something more fuzzy. I.e. it does well at writing the body of a function that retrieves data from SQL and returns a particular type, and it does poorly at parsing strings of varying formats. I'm not super surprised it does well at reducers and poorly at form buttons.