top | item 39413654

(no title)

htfu | 2 years ago

It's a very powerful autocomplete. "It doesn't generate all the code I need in full and if it does I have to poke at it" is just poor criticism. You don't have to press tab and insert everything it suggests. It will usually generate me half a line after typing the first half - that's pretty awesome in my opinion.

If you stick to using it to merely speed-spell out what you were in fact already in the process of writing, and ignore 90% of the terrible crap it proposes, it's a nice productivity boost and has no way to make code worse by itself.

Basically, instead of writing a big comment and then a function signature and expect it to do the rest, just start writing out the function, tab when it gets it, don't when it doesn't, or (most of the time) tab then delete half of it and keep the lines you intended, likely with some small tweak.

Surely LLMs will be able to go so much more and without constant supervision in the future, but we're not there. That doesn't mean they're bad. Especially copilot since it's just there with its suggestions and doesn't require breaking flow to start spelling out in regular text what you're doing.

discuss

order

khalilravanna|2 years ago

This sounds like it mirrors my usage. Basically treat it like pairing with a really junior dev: assume everything it writes will be wrong and then go from there. If you do that then best case it speeds you up and worst case you waste a little time reading what it wrote that was wrong and ignoring the suggestion and moving on.

horns4lyfe|2 years ago

That’s fine, but it already exists, i.e. resharper