New GitHub Copilot Research Finds 'Downward Pressure on Code Quality'

3 years ago by walter_wiggles to c/programming

'We find disconcerting trends for maintainability.'

Interesting to see the benefits and drawbacks called out.

load all comments
uthredii 39 points 3 years ago

In this regard, AI-generated code resembles an itinerant contributor, prone to violate the DRY-ness [don't repeat yourself] of the repos visited.

So I guess previously people might first look inside their repo's for examples of code they want to make, if they find and example they might import it instead of copy and pasting.

When using LLM generated code they (and the LLM) won't be checking their repo for existing code so it ends up being a copy pasta soup.

path: 0 7072717, hotness: undefined, score: 39, children: 11
sentient_loom 22 points 3 years ago

If you use AI to generate code, that should always be the first draft. You still have to edit it to make sure it's good.

path: 0 7072717 7073554, hotness: undefined, score: 22, children: 10
walter_wiggles 15 points 3 years ago

I totally agree, but I don't hear any discussion about how to incentivize developers to do it.

If AI makes creating new code disproportionately easy, then I think DRY and refactoring will fall by the wayside.

path: 0 7072717 7073554 7074141, hotness: undefined, score: 15, children: 8
hikaru755 8 points 3 years ago

Yeah, but by generating with AI you're incentivized to skip that initial research stage into your own code base, leading you to completely miss opportunities for consolidation or reuse

path: 0 7072717 7073554 7098922, hotness: undefined, score: 8, children: 0
programming
programming

@programming.dev

login for more options
28153
3511
3435

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev


go to feed...