Coding on Copilot: 2023 Data Suggests Downward Pressure on Code Quality
visualstudiomagazine.com
visualstudiomagazine.com
Heise Media states that GitHub has also responded, but I cannot find the statement . According to [0] they say that they did not controll for other factors.
They also published research that makes actually the opposite claim [1]
Tbh I wouldn't trust either study.
[0] https://www.heise.de/news/Schlechte-Code-Qualitaet-durch-die...
[1] https://github.blog/2023-10-10-research-quantifying-github-c...
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.
Now this is not necessarily a bad thing. I have seen a lot of man made code that is trying to follow the DRY principles and the result is horribly tangled mess where you have no idea what gets when executed by just looking at the code.
There is also hope that AI summarizing ability could help to gain a better systematic understanding of the code. Perhaps it's generalization capabilities could even help to refactor the code and build up a good test suit.
But this is to be seen to happen and so far a better awareness is an advantage.