• AA5B@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      23 hours ago

      Complexity or “complexity”? A couple months ago I had to accept a merge from a junior developer that is now flagged as the code with the highest complexity in my code base. It was in Groovy and he must have just discovered closures. Instead of breaking up the code in nice modular testable blocks, it was massive methods hundreds of lines long, and the most egregious use of closures

      • magic_lobster_party@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        23 hours ago

        Not necessarily closures, but it involved many dynamically generated lists of lambdas passed around through many layers of abstraction.