• read_freire [they/them]
    ·
    4 years ago

    multiple O(n^3) loops

    I feel like you have to understand algo complexity to even write something that inefficient

      • invalidusernamelol [he/him]
        ·
        4 years ago

        The whole point is you intentionally make it take forever and speghetify the code so management absolutely needs you around to keep the franken script functional. Extra points if you have it run slowly by default, but have a hidden flag that bypasses the slowdowns to make you look like a wizard.

        • makotech222 [he/him]
          ·
          4 years ago

          In this case, the guy who wrote it is a civil engineer, not a software engineer. So its just inexperience. Everything else about the code is actually really nice; he actually uses classes and shit, so I can easily find what i need. I have a data scientist on my team with way more programming experience and he fucking sucks.

              • invalidusernamelol [he/him]
                ·
                4 years ago

                Python is such a magical language. It lets you get away with so much shit with lists and for loops. I wonder if he did a list operation then traversed the list recursively within that operation multiple times. Something that monstrously inefficient should be pretty easy to spot at least thanks to the whitespace, just look for a block of code that looks like a chapo struggle session.