• masterspace@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    Lmao, bruh. How do people keep praising a language where messing up a space breaks everything and there is no real type system?

    • jedibob5@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      The whitespace doesn’t bother me. Any IDE worth a damn will manage that for you. As for the type system, yeah, I strongly prefer static typing, but for simpler projects I can see the convenience of it.

      My real issue with Python comes with managing a development environment when multiple developers are working on it. Dependency management in Python is a headache, and while in theory, virtual envs should help with synchronizing environments from machine to machine, I still find it endlessly fiddly with a bunch of things that can go wrong that are hard to diagnose.

      Python is great for small scripts, proofs-of-concept, and such, but I wouldn’t write anything more heavy-duty than that in it.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months 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
          0
          ·
          9 months 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.

          • grue@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            9 months 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
                0
                arrow-down
                1
                ·
                9 months 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.

                • “Look, Python is way easier to use than other languages! Look how complex this easy task is in Python versus other languages like assembly and brainfuck!”

                  I’m not saying “do stuff in C it’s easier than Python”, but if I took e.g. C# then it’s also just two lines. That supports everything and is also faster than the Python implementation.