Coding convention
It is always a good idea to stick to the common coding conventions proposed by each programming language. Here we want to extend these by adding comment conventions for our group.
Generally, you should write comprehensive and precise comments in your code. It is already common to add multiple line comments for functions, explaining the input and output parameters as well as what the function does. In-line comments are for a quick explanation of the variable in line.
Additionally, to that a main code script should include a header, which includes:
- Project title + Subtitle
- Contributors
- Functions & Dependencies
- Structure/ Table of Contents
- Link to project folder
- Last updated
Example:
Further, in all scripts the most important variables need to be explained at the beginning of each coding block. These are the variable name, the size and the purpose.
Example: