Tuesday 30 September 2014

Bad Python

Don't create constants for a string literal if it is only used once. You aren't doing Java anymore.

Dont add __init__.py unless you need that dir to be a package.

If you access a property or dictionary reference 3 times or more pull it out into a variable.

No comments:

Post a Comment