Everytime I have to use some python script I fucking groan. God, what a pain in the ass python is…

  • ButtBidet [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    :downbear:

    • No curly brackets

    • No semi-colons

    • No need to declare variables

    • There’s 8 trillion useful and free libraries

    • It’s all open source

    • Passing arguments in function calls is so much easier

    • Classes are painless

    DON’T YOU DARE INSULT MY PYTHON YOU LIBERAL

    • captcha [any]@hexbear.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 years ago
      • aesthetics
      • aesthetics
      • defect
      • JavaScript does the same with better package management.
      • same with much other languages, JavaScript, cargo, rust, go, etc.
      • in what languages is this a problem?
      • worst class implementation still in use (close second, C++)
      • ButtBidet [he/him]@hexbear.net
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 years ago

        Try typing your umpteenth semi colon and curly brackets. That shit ain’t aesthetics, it’s miserable.

        Javascript is owned by Oracle. Go is made by Google. I release that they’re both open source, but it’s rad that we have a language that’s on board with the free software movement, and that’s created and maintained by volunteers.

        Passing arguments in static typed language are a pain 😩

        • captcha [any]@hexbear.net
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          2 years ago

          If avoiding typing extra characters is high on your list of priorities for a language then you need more experience programming. Higher priorities should revolve around ensuring the code you write works.

          JavaScript is not owned by Oracle, that’s Java, which has nothing to do with JavaScript besides curly braces. JavaScript has no license. There is a public reference spec and various (sometimes conflicting) implentations of an interpreter.

          Despite official releases of java being proprietary, there are always compatible releases of OpenJDk which are GPLv2

          Google doesn’t own Go either, some ex-google engineers did start it but its BSD license.

          Passing arguments in static typed language are a pain 😩

          :warf-wtf: are you using different types for the same arguements? This is a first class way to break your program. Good python development is constantly manually checking for programmer error as though it was user error. Static languages just do that for you.

        • silent_water [she/her]@hexbear.net
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

          there’s been some experiments teaching it to children - it’s about as easy as python but it’s a completely different way of thinking. in some ways, it’s easiest to learn if you haven’t been introduced to an imperative language already. I’d say they were two totally different skillsets except that you write radically different code in imperative languages that allow for higher-order functions after you’ve learned Haskell.