This is something I have noticed in practice, copilot and other AI coding tools help you solve your use-case faster because they see the pattern(s?) in your open files and use that.
While I was working at Facebook, one of the unsaid rules that was drilled down upon me was to avoid code repetition, copilot does not go the extra length and tells you: "hey, these 2 code blocks are very very similar, why not just create a common function?" its on the developer to take care of these things.
I do love copilot (saves me from writing a lot of boiler plate code) but it not going the extra step, we probably need another abstraction (ha!) on top of the copilot generated code to fix this behaviour with AI generated code, or just stop using copilot and go back to writing code with LSP.
I do think its solvable tho, and we will get there sooner rather than later.
I do love copilot (saves me from writing a lot of boiler plate code) but it not going the extra step, we probably need another abstraction (ha!) on top of the copilot generated code to fix this behaviour with AI generated code, or just stop using copilot and go back to writing code with LSP.
I do think its solvable tho, and we will get there sooner rather than later.