• Ephera@lemmy.ml
    cake
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 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.