16 votes

Topic deleted by author

9 comments

  1. [2]
    Comment deleted by author
    Link
    1. pard68
      Link Parent
      I can't recommend Project Euler enough! It is not just a great way to learn programming, but a great way to learn or explore a new language in general. It really makes you think through things and...
      • Exemplary

      I can't recommend Project Euler enough! It is not just a great way to learn programming, but a great way to learn or explore a new language in general. It really makes you think through things and worry about speed and efficiency and not just the brute force method. And the challenges progressively make you dive deeper into the language. When I used it to learn Python I just started brute forcing the answers and then had to become more efficient. Before long I needed to write functions. Not long after that I realized I was rewriting the same code over and over and refactored my answers to use a library I wrote with common functions.

      6 votes
  2. mat
    Link
    If you're not using any other form of container/virtualisation, I'd suggest getting to know virtualenv, before this happens (Randall is obviously not that much of a Python user to have such a...

    If you're not using any other form of container/virtualisation, I'd suggest getting to know virtualenv, before this happens (Randall is obviously not that much of a Python user to have such a simple environment)

    8 votes
  3. ntgg
    Link
    the VSCode documentation has a page on python in VSCode

    the VSCode documentation has a page on python in VSCode

    4 votes
  4. [2]
    Comment deleted by author
    Link
    1. [2]
      Comment deleted by author
      Link Parent
      1. unknown user
        Link Parent
        I second the official tutorial, it is the best programmer's intro to Python. IDK why it is not higher up in the list, maybe other people overlooked it (just like I did for many years).

        I second the official tutorial, it is the best programmer's intro to Python. IDK why it is not higher up in the list, maybe other people overlooked it (just like I did for many years).

        3 votes
  5. [3]
    teaearlgraycold
    Link
    Since you're coming from a typed language background you might want to look into mypy. You can get it integrated with VSCodium.

    Since you're coming from a typed language background you might want to look into mypy. You can get it integrated with VSCodium.

    4 votes
    1. [3]
      Comment deleted by author
      Link Parent
      1. [2]
        hereticalgorithm
        Link Parent
        Remember that VSCodium is just Visual Studio Code sans telemtry, so offical documentation for VSCode should still work. Here's their article on linters.

        Remember that VSCodium is just Visual Studio Code sans telemtry, so offical documentation for VSCode should still work. Here's their article on linters.

        3 votes
        1. [2]
          Comment deleted by author
          Link Parent
          1. hereticalgorithm
            Link Parent
            VS Code also has built in support for formatting with black as well, so check that out as well!

            VS Code also has built in support for formatting with black as well, so check that out as well!

            1 vote
  6. hereticalgorithm
    Link
    Since you're coding for Tildes, you should check out the framework it uses, Pyramid. Haven't worked with it myself, but it seems a lot lighter weight than Django, and the site seems to have some...

    Since you're coding for Tildes, you should check out the framework it uses, Pyramid. Haven't worked with it myself, but it seems a lot lighter weight than Django, and the site seems to have some good tutorials and examples up.

    And as tearearlgraycold mentioned, checking out mypy would be good, not only b/c you're coming from a typed background, but because Tildes also uses it (and Black) to ensure code quality. Having good tooling from the start helps a lot (especially virtualenv).

    4 votes
  7. Adys
    Link
    15 ish years ago, I learned Python with the excellent and free book "Dive Into Python". It's since been updated for Python 3. Here it is: https://www.diveinto.org/python3/

    15 ish years ago, I learned Python with the excellent and free book "Dive Into Python".

    It's since been updated for Python 3. Here it is: https://www.diveinto.org/python3/

    2 votes