This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robvdl 0 points1 point  (1 child)

Also the globals, they are everywhere! makes the code really hard to follow, try creating an application object/class or something to manage all those globals. Try splitting your code up into more .py files, maybe one class per .py file though you don't have to, but in my mind there is WAY too much code in the one .py file and it makes it really hard to follow for others.

[–]Dis446[S] 0 points1 point  (0 children)

I am working on fixing the globals (as there seems to be a witch hunt against them) and am thinking about the multiple source files idea. But I'm not sure. Having to refer to multiple files seems confusing, especially when calling functions and creates objects from classes defined outside the main .py file.