r/learnpython • • Jul 16 '20

Where to learn about Python program structure/design?

I'm self-taught in Python and am able to write programs that work, but I still don't feel like I know what I'm doing. Where can I learn about program structure/design?

I usually just start coding and one thing leads to another and pretty soon, I'm done. But I can't shake the feeling that a professional programmer would look at my code and laugh at how haphazard and inefficient it is. Any pointers or suggestions? Or are we just supposed to figure it out for ourselves?

375 Upvotes

57 comments sorted by

View all comments

4

u/TSM- Never slipped a dict comprehension in my lambda before, but Jul 16 '20

Getting lost in packages or trying new things is a good learning experience.

Work environments are nothing like learning environments. You will have to work inside of some established routine and framework, and get used to their setup. Fancy python or unusual tricks are discouraged because they are hard to maintain and revise later.

You will google everything to check documentation, every time, just to be sure, especially if you are working with more than one programming language.

There's an old meme or joke about how you learn advanced calculus and statistics in university, but at the job, you end up inheriting and maintaining an excel spreadsheet. It is not far from the truth.