• Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    15 hours ago

    You can totally write heavy duty things if you know what you’re doing: use type hints, static checkers, tests, etc. It just takes a bit more effort and care.

    • ByteJunk@lemmy.world
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      13 hours ago

      But why would I use something that takes more effort and care?

      I’m sure you’re right and it’s possible, but if I don’t have to fix another python project at work I’ll be in heaven.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        it’s more effort and care compared to a throwaway script, not necessarily compared to other languages

      • grue@lemmy.world
        link
        fedilink
        English
        arrow-up
        13
        arrow-down
        1
        ·
        11 hours ago

        Because “more effort and care” in Python is still way less of a pain in the ass than the minimum enforced boilerplate necessary in most other languages.

          • grue@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            5 hours ago

            Implement a basic socket connection in C (20 lines of manipulating struct sockaddrs and such), then do the same in Python (2 lines).

            And then go back and make the C version support IPV6, because your initial implementation didn’t.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      15 hours ago

      Personally, my estimate doubles when we’re asked to implement something in Python…

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        9
        ·
        15 hours ago

        That’s a proficiency matter. Python is the language I can get something done the fastest today, but 6 years ago that would be Java or even JS for me.

        • Ephera@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 hours ago

          Eh, it’s most definitely part of it, but the biggest time sink that I expect when working with Python is fixing the build system every two weeks on different devs’ PCs. I do imagine, if you eventually find a solution that works on most PCs that this workload will go down, but we had a substantial Python part in my previous project and over the course of the 1½ years that we worked on it, it really felt like we were making negative progress. Near the end of it, I couldn’t use PyCharm anymore, because I couldn’t figure out for the life of me, how to make it recognize the dependencies again.