Once v1 of the project has been completed, I want to take a big pass at the code and consolidate functionality as well as do some major cleaning.
Going to document some examples here as I go.
db_utils methods that return data should all return objects representing records in the database. If we have them defined as such in our models, why not take advantage of keeping all information organized within their respective logical groupings
Consistent naming conventions for variables
views defined and stored in a separate module (may need to be functions since most if not all change depending on the game/round)
Once v1 of the project has been completed, I want to take a big pass at the code and consolidate functionality as well as do some major cleaning.
Going to document some examples here as I go.
db_utils
methods that return data should all return objects representing records in the database. If we have them defined as such in ourmodels
, why not take advantage of keeping all information organized within their respective logical groupingsviews
defined and stored in a separate module (may need to be functions since most if not all change depending on the game/round)messages.py