saw a 2nd year CS guy run a maze solver (for final exam) with 300 nested if-statements. worked about 50% of the time. so he added another 5000 nested ifs and got it up to 90%. good enough!

  • Karyoplasma
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    If it works, it works. Let your successor worry about maintainabilty.

    • selawdivad@lemm.ee
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      It worked, but it was slow and dropped packets sometimes. I think the next team switched to Java. I met with them and walked them through the code and suggested they try a different approach. Hopefully they did!