• LovableSidekick@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    edit-2
    15 hours ago

    I’ve reworked SO many systems that started clean and were obviously updated by a series of different people over a span of years. New features nailed on with apparently little understanding of the overall app. It’s like, “Oh dude it was already doing 90% of what you wanted, you didn’t have to add all this… <sigh>.” Especially true when offshore contract agencies had been involved - to churn through jobs as fast as possible (with no other concern) they tend to copypaste sections of the app that do something similar to what’s desired, and make minimal changes to them, with zero code cleanup. This leaves all sorts of misleading unnecessary code, as well as inefficiencies like grabbing a large dataset to get a single item, etc. I found things that made me literally LOL.

    • sik0fewl@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      I just need to add 20 if-branches in 15 methods across 10 different files from 5 modules.

    • chunkystyles@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      6
      ·
      10 hours ago

      Our off shore contractors produce some of the worst code. But it’s impossible to get work done and also be vigilant enough to reject their bad pull requests. So basically you’ll end up looking a code one day that is godawful and think, “this is off shore”. And yep, git blame tells you you’re right.