Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
Next revision
Both sides next revision
|
dev:coding_style [2013/07/25 01:55] tedfelix Remove bullets |
dev:coding_style [2013/10/16 23:08] michael [Indentation] |
Class names are UpperCamelCase, method names are lowerCamelCase, non-public member variables are m_prefixedCamelCase, slot names start with "slot". | Class names are UpperCamelCase, method names are lowerCamelCase, non-public member variables are m_prefixedCamelCase, slot names start with "slot". |
| |
===== Indentation ===== | ===== Indentation - NO TAB CHARACTERS ===== |
| |
Indentation is by four spaces at a time. There should be **no tab characters anywhere** in Rosegarden source code. The indentation should look the same regardless of whether you read it in an IDE, in a terminal window with "cat" or "vi", in Emacs, or quoted in an email. It **must not** depend on having the right settings for tab-to-space conversion in your IDE when you read it. (Emacs and vim users will note that we already start every source file with a meta-comment that sets up the right indentation mode in these editors.) | Indentation is by four spaces at a time. There should be **no tab characters anywhere** in Rosegarden source code. The indentation should look the same regardless of whether you read it in an IDE, in a terminal window with "cat" or "vi", in Emacs, or quoted in an email. It **must not** depend on having the right settings for tab-to-space conversion in your IDE when you read it. (Emacs and vim users will note that we already start every source file with a meta-comment that sets up the right indentation mode in these editors.) |