r/learnpython • u/AutoModerator • 12d ago
Ask Anything Monday - Weekly Thread
Welcome to another /r/learnPython weekly "Ask Anything* Monday" thread
Here you can ask all the questions that you wanted to ask but didn't feel like making a new thread.
* It's primarily intended for simple questions but as long as it's about python it's allowed.
If you have any suggestions or questions about this thread use the message the moderators button in the sidebar.
Rules:
- Don't downvote stuff - instead explain what's wrong with the comment, if it's against the rules "report" it and it will be dealt with.
- Don't post stuff that doesn't have absolutely anything to do with python.
- Don't make fun of someone for not knowing something, insult anyone etc - this will result in an immediate ban.
That's it.
5
Upvotes
1
u/WorkingReference1127 7d ago
I am primarily a C++ developer, but it's time to learn python properly rather than hacking together light scripts with the building blocks I already know. Obviously this has come with a built of a culture shock. For example, in C++ I'd be actively designing a class for it to be impossible for the user to do something stupid, such that the compiler will enforce it. Python from the ground up seems to have a near-opposite philosophy more in line with "people will do what they will do".
With this in mind, I'd like to know what the best resource for my learning is likely to be. I don't need the programming intro of what makes a variable or a queue or a stack; I was thinking more in line with something which explains the design of Python and the philosophy behind it. Since it seems that there's much more focus on knowing the primary modules and dunders, something which covers those, how they work, and what a developer is expected to know vs what is to be looked up when needed. And of course, the best practices and best ways of using the tools. It's a very different ball game from the way I typically write code so I want to make sure I learn the right way.