• invalidusernamelol [he/him]
    ·
    4 years ago

    It's great for non programmers and quick scripting with a bit more functionality then bash, but yeah. Using it in production instead of just as a tool is weird to me.

    • makotech222 [he/him]
      ·
      4 years ago

      Yup, my guy wanted to produce an exe out of his python script. that took about 2 days of work to get working properly. Now i'm tracking down multiple O(n^3) loops in the code, with terrible intellisense. fucking ugh

      • 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.