• Vamanos@lemmy.world
    link
    fedilink
    arrow-up
    8
    arrow-down
    2
    ·
    1 year ago

    Meh. I’ve ported a fair many py2 projects to 3. At this point just bite the bullet. Even from a security standpoint. Trying to not let my bias seep through - but it’s been so long.

    • AggressivelyPassive@feddit.de
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      Ever worked on a giant corporate codebase? I’m not saying you’re wrong, but corporate internals often work counter to common sense or sanity. You’ll have a giant mess of code, that would require months of work to port. The longer you wait, the more expensive it will get, but if you just wait long enough, it might not be the current manager’s problem anymore. So it will be postponed and postponed.

      I’ve seen this in real life a few times. EOL driven development. You just wait until it’s absolutely impossible not to upgrade, then you hastily stop everything, do the porting in a marathon of sadness that basically rewrites everything, and if you’re done, you can wait for the next EOL.

      • luckystarr@feddit.de
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        The trick is to assign someone the responsibility of the upgrade and give them the authority to tell the other developers how their newly added code shall look like. This will get you there eventually.

        Seen it work on a >1 million SLOC project.

        • bane_killgrind@kbin.social
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

          Yeah but that requires good planning and better team structure.

          That’s low margin and therefore doesn’t happen often enough.

        • AggressivelyPassive@feddit.de
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          This will get you there eventually.

          Only if you can actually upgrade piece by piece. In a monolith, you often enough can’t just upgrade new lines/methods. In those cases, it’s halt all development, pull everyone into upgrading and then continue.