• Vilian@lemmy.ca
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    and if you need an unnecessarily complex code for performance sake?

    • magic_lobster_party@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Those cases are rare. Often the most basic solution is good enough.

      If you have to write complex code, then you should write a comment (write the name of the algorithm for example).