Difference between revisions of "Coding conventions"

From The Powder Toy
Jump to: navigation, search
(talk)
 
m (1 revision)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<h1> Coding Conventions </h2>
 
 
If you want your source to be taken seriously, it would be a good idea to follow these conventions closely.
 
If you want your source to be taken seriously, it would be a good idea to follow these conventions closely.
  

Latest revision as of 19:47, 28 September 2011

If you want your source to be taken seriously, it would be a good idea to follow these conventions closely.

  • Do not use camelCase, use an underscore (_) instead for your function and variable names
  • Use 4 spaces for indentation. Do not use Tabs.
  • Always use the latest source
  • Use // for single line comments, use /* */ for block comments