Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:coding_style [2013/07/25 01:55]
tedfelix Remove bullets
dev:coding_style [2013/10/17 22:38]
michael [Indentation - NO TAB CHARACTERS]
Line 7: Line 7:
 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 (0x20) at a time.  There should be **no tab characters (0x09) 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.)
  
 +//NOTE: As of revision 13,509, Rosegarden has 8,691 tab characters in 287 files.  Rosegarden 10.02 had 9,598 tab characters in 262 files.  The good news is fewer tabs overall, but the bad news is 25 new files have tabs that never had tabs before.  New developers are ignoring this rule, apparently.//
 ===== Namespaces ===== ===== Namespaces =====
  
 
 
dev/coding_style.txt ยท Last modified: 2022/05/06 16:07 (external edit)
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki