this post was submitted on 27 Jan 2024
78 points (97.6% liked)

Programming

17432 readers
213 users here now

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 [email protected]



founded 1 year ago
MODERATORS
 

Interesting to see the benefits and drawbacks called out.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 28 points 9 months ago (21 children)

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.

[–] [email protected] 18 points 9 months ago (10 children)

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.

[–] [email protected] 8 points 9 months 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

load more comments (9 replies)
load more comments (19 replies)