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/lostnfoundaround Jul 17 '20 edited Jul 17 '20

It sounds like you’re producing some spaghetti code are are not happy with it, which is understandable. . Look into program structure and program design more generally. Then you’ll be able to apply that knowledge to whichever language you’re using. . I’m surprised no one has mentioned Design Patterns by the gof yet.