This post was brought to you by this PMD rule.

Transcription

Why do we have this stupid code analyzer rule enabled anyway? Nobody writes code like this…

After telling them the lore why it’s there:

You have seen such things before?

11 Times, as a matter of fact

  • Nat (she/they)@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    3
    ·
    4 days ago

    These things add up if you’re doing them all over a 1 million line codebase, by which point it’s incredibly painful to claw back performance if you need it.

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      4 days ago

      This seems like one of those cases where you don’t want to be waiting until benchmarking.

      It makes the code simpler anyway.