Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
becki:linux:style [2008-04-25 09:40] becki |
becki:linux:style [2017-09-08 08:18] (aktuell) becki [Identifier Naming] |
||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
Sources: | Sources: | ||
- | * Fluxbox Coding Style | + | * [[http://fluxbox.cvs.sourceforge.net/viewvc/fluxbox/fluxbox/doc/Coding_style|Fluxbox Coding Style]] |
* [[http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html|Code Conventions for Java]] | * [[http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html|Code Conventions for Java]] | ||
* PHP Code Conventions?? | * PHP Code Conventions?? | ||
+ | ===== Indentation == | ||
- | ===== Indentation ====== | ||
* 4 spaces for indentation | * 4 spaces for indentation | ||
* No hard tabs! | * No hard tabs! | ||
Zeile 15: | Zeile 15: | ||
* Lines not longer than 80 characters | * Lines not longer than 80 characters | ||
+ | ===== Identifier Naming == | ||
+ | |||
+ | - Use lowercase for variables and use ''_'' to separate names, i.e no camel case for variables. | ||
+ | - All constants must be in Upper case letters. | ||
+ | - Class names always starts with an uppercase letter and use camel case rather than ''_'' | ||
+ | - Data members of classes are prefixed by ''m_'' (Not necessary when you have to use ''this'' anyway) | ||
+ | - Static variables or class data members are prefixed with ''s_'' | ||
===== Doxygen ====== | ===== Doxygen ====== |