ChicoTeam / PyRunner

A python arcade style block-racing game
https://groups.google.com/forum/#!topic/chico-state-open-source/q_l-TiX1cTw
Other
1 stars 0 forks source link

Re-organize project #11

Open russplaysguitar opened 13 years ago

russplaysguitar commented 13 years ago

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)

flipcoder commented 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.

russplaysguitar commented 13 years ago

agreed

rectangletangle commented 13 years ago

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

russplaysguitar commented 13 years ago

Here is what we had on the board on Tuesday: PyRunner Reorganization

Each item is a class that should be put into a new file within the new /classes/ directory. The arrows indicate inheritance.