• Ephera@lemmy.ml
    link
    fedilink
    arrow-up
    31
    arrow-down
    2
    ·
    9 months ago

    This one’s a hot take, but: That Python is easy.

    I’ve had to work with it in three projects in the past five years and I consider it one of the hardest programming languages, for anything but very short scripts.

    You don’t get proper compiler assistance, unless you have 100% test coverage. You don’t get a helpful text editor. You don’t usually get helpful type hints in libraries you use, so you have to genuinely just study the documentation and/or code. You get tons of quirky behavior in the stdlib, build tools, async stack, imports. You get breaking changes in minor versions of the language.

    I find writing code in Python extremely mentally taxing, because you just get so little assistance, that you have to think of everything yourself.

    • ursakhiin@beehaw.org
      link
      fedilink
      arrow-up
      9
      ·
      9 months ago

      I think Python is easy to learn but difficult to get past the basics. I’m also not convinced that getting past the basics is even worth it in three long run. I say this as a person who has used all Python at work for roughly 70 percent of the last 15 years. My current position is moving to Rust and my last 2 positions were moving to Go. Everybody was happier.

    • aluminium@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      9 months ago

      Agree, also just in general I find many things Python very odd and syntactically isolated to some extent. Constructors, lamba, dictionaries in particular are extremly whack.

    • alsimoneau@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      I’m a scientist that has been coding almost exclusively in Python for the past decade and I strongly disagree.

      Python is great at being the glue that holds everything together, and everything crunchy part of the program is being handled by a library anyways.

      I code with two terminals, one for iPython and one for vim. And you don’t need anything else. The beauty of Python is that it’s not a language that is so full of boilerplate that you need an IDE to type it for you to be remotely productive.

      Overall, Python is a language made to be used by people that need to make something that just works and don’t need to spend years learning programming paradigms and industry practices. Fortran and C are so unwieldy in comparison and everything more modern lacks the expansive and diverse libraries of Python.

      • Feathercrown@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        9 months ago

        Overall, Python is a language made to be used by people that need to make something that just works

        This is why you find it easy, and why the person you replied to finds it a big pain. The friction other languages would give you exists to provide structure on a larger scale that makes that guy’s work easier. Like you implied, different languages for different jobs.