top | item 34797734

A more powerful AI model and better code suggestions

44 points| TheDataMaverick | 3 years ago |github.blog

5 comments

order

josevalerio|3 years ago

Like many of you I was very skeptical of this at first but it truly is amazing. An example today came from having many time stamps throughout the week, grouped by days, in a FE react project where each grouping has a property “isInThePast”.

I wanted to show a label for days that were in the past, and with the simple beginning of a ternary statement of “{grouping.isInThePast ? “} it auto completed the <span> tag with “(Past)” in red text using our UI library.

Examples like this happen all the time, and it saves you those two seconds dozens or hundreds of times per day. Just my 2c

pleb_nz|3 years ago

Holy crap, I keep/use-modify maybe a line or two of what co-pilot suggests per file. To the point I probably won't pay for it when my trial end today.

What am I right differently that results in me needing/using it much less than the stated 40+% ? That's an incredible high figure - maybe it's not an accurate figure?

Zeyka|3 years ago

Why do you never use what it suggests you? Is it wrong most of the time? I ask because for me it's quite good at finishing code that has a specific pattern, e.g. Switch cases, error checking in go,...