-
Notifications
You must be signed in to change notification settings - Fork 20
Conventions
pavel-paulau edited this page Oct 15, 2012
·
2 revisions
C1: All modules strictly follow PEP-8 style:
$ pip install pep8
$ pep8 mymodule.py
C2: Imports use explicit package/module reference
C3: Imports follow recommended order: standard library, 3rd party packages, project packages
C4: Old-style code (like % formatting ) should be avoided.
C5: UPPER_CASE for constants, lower_underscore_case for variables and methods, CameCase for classes.
C6: Logging instead of printing.
C7: Testing is mandatory. Lettuce is highly recommended.
C8: Template engine is Jade
C9: Databases are Couchbase, seriesly and SQLite (for 3rd-party applications only)
C10: JavaScript code must pass JSHint