Project

General

Profile

Actions

Clean code draft

This draft is about best practice for development not already covered with the use of PEP 8, Pylint and Mypy.

Comments

  • Every comment (about the code) is a failure to not write otherwise readable code.
  • No to do comments. In between as a note for one self is ok but not in shared code like e.g. in the main or develop branch.

Functions

Control structures

  • no switch statements
  • if: only one line after (use function call)
  • try-catch: no code before and after, only one line inside (use function call)

Principles

Updated by Bernhard Koschiček-Krombholz about 1 year ago · 4 revisions

Also available in: PDF HTML TXT