cryptonas-branches/pythonrewrite/bin2/coding_guidelines.txt

18 lines
657 B
Plaintext

Maybe we can add some notes here to get a consistent coding experience :)
-------------------------------------------------------------------------------
comments:
- should be usable for pydoc
- ''' or """ at the beginning of every class/method
- ## for longterm comments, that are useful for understanding
- #blabla for codelines, that are out for experimenting and might be used later again
error handling:
- unspecific error handling is evil (try: "grep -r except: .")
unit testing:
- write a unittest and then write the relating code until the unittest stops failing :)
- commits with broken unit tests are evil (options: fix or disable)