Difference between revisions of "C programming/House of Technology C coding policy"
From Teknologisk videncenter
								
												
				m (Created page with "=Variable names= *All variable names should be in lower case. *All variable names should describe purpose and content. *Use _ (underscore) as space. **Use '''int timer0_instance_...")  | 
				m (added Category:C using HotCat)  | 
				||
| Line 25: | Line 25: | ||
|-  | |-  | ||
|}  | |}  | ||
| + | |||
| + | [[Category:C]]  | ||
Revision as of 12:50, 6 June 2012
Variable names
- All variable names should be in lower case.
 - All variable names should describe purpose and content.
 - Use _ (underscore) as space.
- Use int timer0_instance_counter instead of int timer0InstanceCounter
 
 
Function names
- All function names should be in lower case.
 - All function names should describe purpose and function.
 - Use galaxy_soarsystem_planet approach instead of planet_solarsystem_galaxy
 
| best approach | dont use | 
|---|---|
| timer0_start() | start_timer0() | 
| timer0_stop() | stop_timer0() | 
| timer0_init() | init_timer0() | 
| timer1_start() | start_timer1() | 
| timer1_stop() | stop_timer1() | 
| timer1_init() | init_timer1() |