73
submitted 3 days ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 40 points 3 days ago

I'll just drop this here for future easy linking convenience...

"If you’re writing the same boilerplate every day like some industrial-age cog monkey, automate it yourself. Write a library. Invent a macro. Reclaim some dignity."

[-] [email protected] 9 points 3 days ago

Well, I’ve done that… partially. However, since I’m not a top-1‰ superstar rock-dev, my solutions took several attempts, still make a lot of assumptions, and are generally kinda bad.

Until I’ve reached an actually good boilerplate automator, Copilot has its place.

[-] [email protected] 3 points 2 days 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.

load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 27 May 2025
73 points (96.2% liked)

Programming

20393 readers
124 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 2 years ago
MODERATORS