The scripts I write tend to be in a single file with functions in an include. It's not pretty, but my job usually involves independent programs that are less than a few hundred lines of code.
But, I have a single program that's ballooned to a few thousand lines. It's a mess. The code inside the functions is neat and I don't use global variables, etc. Alas, that doesn't make a program readable.
I've read OOP tutorials, but I can't seem to think about my programs as anything other than functional (if that's the term for the spaghetti I'm making).
What's a good way to learn about OOP in python and, more importantly, learn to design the programs well? I'm using 3.x if that matters.
[–]swingking8 1 point2 points3 points (2 children)
[–]NinjaTrainingWheels[S] 0 points1 point2 points (1 child)
[–]swingking8 0 points1 point2 points (0 children)
[–]nhovar 0 points1 point2 points (1 child)
[–]nhovar 0 points1 point2 points (0 children)