• sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    8 小时前

    but you cannot change the parent DB query.

    Why not?

    This sounds like the “don’t touch working code” nonsense I hear from junior devs and contracted teams. They’re so worried about creating bugs that they don’t fix larger issues and more and more code gets enshrined as “untouchable.” IMO, the older and less understood logic is, the more it needs to be touched so we can expose the bugs.

    Here’s what should happen, depending on when you find it:

    • grooming/research phase - increase estimates enough to fix it
    • development phase - ask senior dev for priority; most likely, you work around for now, but schedule a fix once feature compete; if it’s significant enough, timelines may be adjusted
    • testing phase/hotfix - same as dev, but much more likely to put it off

    Teams should have a budget for tech debt, and seniors can adjust what tech debt they pick.

    In general though, if you’re afraid to touch something, you should touch it, but only if you budget time for it.

    • lightnegative@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 小时前

      “Don’t touch working code” stems from “last person who touched it, owns it” and there’s some shit that it’s just not worth your pay grade to own.

      Particularly if you’re a contractor employed to work on something specific

    • iegod@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 小时前

      That budget is the key. You have to demonstrate/convince the purse holders first. This isn’t always an easy task.