this post was submitted on 27 May 2025
74 points (96.2% liked)

Programming

20962 readers
70 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 !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Ephera@lemmy.ml 3 points 3 weeks ago

The thing is, your attempts at eliminating boilerplate can be pretty bad and take pretty long before they're worse than writing out the boilerplate in full.

Boilerplate code is by itself a problem. If it's just scaffolding, i.e. you're not duplicating logic, then it still makes code harder to read and annoying to maintain.

If you are duplicating logic, then it's a maintenance nightmare. You fix a bug in one version of it, now you gotta update 14 other versions which the LLM dutifully generated with the same bug.
Or worse, it wasn't dutiful (much like a human typically isn't), so now you've got different bugs in different versions of it, as well as different fixes over time, and you quickly lose track which version is the good one.