Coding Standards for Reusability

The purpose of this page is to provide students within the MALNIS group with access to work done by other students.  In this way we want to encourage re-use of existing software.  This should help students in their research, either by direct application of the software modules or through teaching by example.  Students are encouraged to download the source code and modify it according to their particular needs.

The success of this endeavour hinges upon strict coding standards.  Software is not re-usable without the necessary comments or documentation.  Any module found in this page has to conform to these standards.  In order to limit the complexity of the directory and file structures, all the neccessary information is saved in the source file itself.  In this way, a student may simply download the source code and immediately have all the required information available.  We impose the following coding standards on modules:

Supplying source code with these standards facilitates re-use.  It limits the amount of time that a student takes to understand what is going on and hence allows the student to re-use the module more easily.

Sample header files

(adapted from: http://www.sce.carleton.ca/bbnlab/BNLResources.htm#Policies)