Open russplaysguitar opened 13 years ago
The project's over-usage of globals makes the code messy and hard to organize. Figuring out what to do with these would be a good next step to making the project cleaner.
agreed
The Python global statement is supposed to be used sparingly if ever (it's useful in a few situations involving multithreading).
This thread has some good info on them. http://stackoverflow.com/questions/146557/do-you-use-the-global-statement-in-python
Here is what we had on the board on Tuesday:
Each item is a class that should be put into a new file within the new /classes/ directory. The arrows indicate inheritance.
Most of the code is within pyRunner.py, which is way too big. This StackOverflow page has some good info about organizing Python projects: http://stackoverflow.com/questions/391879/organising-my-python-project (note: 1 class per file is not the way to do it)