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

2

u/[deleted] Jul 17 '20

There are probably other examples, but I feel these 2 video's talk about 2 important issues. The first one is how to structure your code properly in a more general perspective, the last one is more about specific cases. But both convey an approach you should have towards what you code.

Raymond Hettinger - Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015

Transforming Code into Beautiful, Idiomatic Python

1

u/ivosaurus Jul 18 '20

He really needs to give that second talk again in a python 3 only world.