• masterspace@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      1
      ·
      edit-2
      2 days ago

      Or you know, TypeScript, Go, C#, Java, Swift, etc. etc.

      Python isn’t great at anything except for having a lot of data science libraries already written for it.

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        edit-2
        1 day ago

        Not only data science libraries, there is a library for about anything. Which is not the case for your list of languages.

        Edit: not all languages in the list.

        When you understand how python works, it’s quite simple to use too, and has lot less clutter than say java or c#.

        • atzanteol@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          7
          ·
          2 days ago

          Not only data science libraries, there is a library for about anything. Which is not the case for your list of languages.

          Java has an excellent ecosystem for libraries. And a much more mature one in most cases than Python. The Spring framework alone is simply amazing.

          Go’s ecosystem is pretty good as well and getting better.

          When you understand how python works, it’s quite simple to use too, and has lot less clutter than say java or c#.

          The problem is that many python devs consider things like “type hints” and “classes” to be “clutter”. It takes a lot of discipline to write managable python. Being “newb friendly” is a curse. “stringly typed” crap does NOT scale well.

    • namingthingsiseasy@programming.devOP
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      It can scale though. It parallelizes really well if you use queuing systems to distribute the load. You just have to make sure that the hot loops are in C/C++, and it is very easy to interface with compiled binaries via the C API.

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        2 days ago

        It can scale though.

        So can assembly. But it takes a tremendous amount of discipline.

        Python’s curse is that it’s popular with “newbs” who think it’s okay to use dictionaries for everything and that type hints are “clutter”.

        • namingthingsiseasy@programming.devOP
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          Agreed. I have seen a lot of Python code that was really painful to massage back into a more structured object hierarchy. Java certainly does a bit better in that respect, and as a language, it does a much better job of encouraging better practices, but I think it’s also largely due to the kinds of people that use those languages as well.