Good evening, everyone. I have, but one quick inquiry. What are the best resources in your opinion to learn python by yourself as a complete beginner? Thank you all

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    4 months ago

    Depending on what you want to do I would consider learning JavaScript instead:

    • You already have a JavaScript environment in your web browser (just press ctrl-shift-J).
    • If you want to do anything web related you basically have to learn and use JavaScript .
    • The Python tooling story is a complete disaster. If you want to spend all your time fight your tools Python is for you. Especially on Windows. JavaScript (which uses NPM) is not perfect but it is significantly better.
    • It’s like 50x faster.
    • Overall JavaScript (with Typescript anyway, which you can learn later) is a better language than Python. A notable exception is Python’s support of arbitrary precision integers. Using 64-bit integers in JavaScript is a right pain. But that won’t remotely be an issue for a beginner.

    There are a couple of situations I would maybe pick Python:

    • AI. For better or worse (it’s worse) the entire AI ecosystem is based around Python so you don’t really have much choice here if you want to do AI stuff.
    • Scripts to automate integration of third party services. Generally more common for projects like AWS or whatever to provide Python libraries than JavaScript ones, so it can be easier in Python.

    It really depends on what kind of projects do you want to do?

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      4 months ago

      Overall JavaScript (with Typescript anyway, which you can learn later) is a better language than Python.

      🤣🤣🤣

      good one

      • FizzyOrange@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        4 months ago

        Yes it is good because it’s completely true. Of course this question is going to attract a lot of Python developers who haven’t used Typescript and don’t know what they’re missing so I’m not surprised by this response.

        Most Python developers still don’t even use static type hints. I guess partly because the Python tooling catastrophe makes it a quite a pain to set them up.

        • Eager Eagle@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          4 months ago

          I guess partly because the Python tooling catastrophe makes it a quite a pain to set them up.

          Salty huh

          Saying you need to set up type hinting in Python shows that you’re the one assuming it’s a hassle like TS, where you need a different runtime to have access to something the language (JS) should have provided from the start.

          Everything you need is provided by typing, which is included in a Python install. Just import it and start using it.

          • FizzyOrange@programming.dev
            link
            fedilink
            arrow-up
            0
            ·
            4 months ago

            Salty huh

            Very. Python’s shit tooling has cost me literal weeks of my life. It’s so bad. Have you ever used Go or Rust? If not go and try them and then you will realise that it doesn’t have to be like that.

            Saying you need to set up type hinting in Python shows that you’re the one assuming it’s a hassle like TS

            I’m not assuming. I have done this. It is absolutely a hassle. TS isn’t exactly hassle free but it’s still better than Python.

            where you need a different runtime to have access to something the language (JS) should have provided from the start.

            You mean like MyPy or Pyright? At least Typescript defines the semantics of its type hints. Python only defines the syntax! You can have multiple type checkers that conflict with each other!

            Everything you need is provided by typing, which is included in a Python install. Just import it and start using it.

            If you do that, nothing will actually be checked. You need to explicitly run pyright in CI.