• Destide@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 hours ago

    Oh so just because it’s if statements all the way down it’s not good enough?

    • prime_number_314159@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 hour ago

      If it’s all if statements and if it uses well nested logic and if it’s written in a modern language and if the number of if statements doesn’t exceed 57, it could be good. Otherwise it is overly verbose. Otherwise it is dated. Otherwise it is spaghetti code. Otherwise it should go to the regular code check routine function.