Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
becki:linux:style [2010-07-09 09:11] becki |
becki:linux:style [2017-09-08 08:18] (aktuell) becki [Identifier Naming] |
||
---|---|---|---|
Zeile 19: | Zeile 19: | ||
- Use lowercase for variables and use ''_'' to separate names, i.e no camel case for variables. | - Use lowercase for variables and use ''_'' to separate names, i.e no camel case for variables. | ||
- All constants must be in Upper case letters. | - All constants must be in Upper case letters. | ||
- | - Class names always starts with a big letter and use camel case rather than ''_'' | + | - 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) | - 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_'' | - Static variables or class data members are prefixed with ''s_'' |