• @FizzyOrange@programming.dev
    link
    fedilink
    12 months ago

    I disagree. I’ve seen very complex boolean expressions and they were clearly code smell. Sometimes acceptable but definitely a fertile area for refactoring.

    Their example is crap to be fair - two comparisons is not complex.

    • @Boomkop3@reddthat.com
      link
      fedilink
      02 months ago

      If you do have a super complex boolean expression, I wouldn’t call it a smell. It’ll be much more obvious