Re:GitHub Copilot X: The AI-powered developer experience
by SergeAx on Wednesday March 22, 2023 @01:53PM
(#35264665)
I have a "Generate... -> Test for function" in my JetBrais IDE out of the box for several years, and it takes care of boilerplate pretty well.
[ Parent
| on HN ]
Re:GitHub Copilot X: The AI-powered developer experience
by adambard on Wednesday March 22, 2023 @02:06PM
(#35264866)
That just generated an empty test function in a convenient place for me. I'm not just talking about boilerplate, it's definitely a more... organic-feeling sort of pattern matching. In fact, one of the things I find most interesting about it is the sort of mistakes it makes, like generating wrong field names (as if it simply took a guess). This is the sort of thing that I've grown to expect the deterministic tooling of IDEs to get right, so it always surprises me a bit.
By the same token, often it takes a stab at generating code based on something's name (plus whatever context it's looking at) and does a better job than the IDE could, because the IDE just sees datatypes and code structure. It really does feel like a complementary tool.