Jump to: navigation, search

Programming guidelines

16 bytes added, 01:48, 17 January 2008
Fix tab vs space description ("whitespace" includes tabs)
* Write [ PEP 8] compatible code! This is important to have a consistent, readable codebase.
* Do not use tabs. Use whitespacespace characters. If you use an editor with tabssettable tab stops, go into the preferences, and change the tab behavior to a number of use spacesonly. In GRAMPS we use 4 spaces for indentation.
* Class headers. Each class should have a simple header to help mark it in the file. This is not used for documentation - it is used to help find the class when multiple classes exist in the same file.

Navigation menu