Coding standards

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(New page: Generally speaking, we put curly brackets on separate lines and use 4 space tabs. Tab themselves should be spaces, not actual hard tabs. For instance. public void LazeAround() { ...)
 
Line 5: Line 5:
 
     // Do nothing
 
     // Do nothing
 
  }
 
  }
 +
 +
Otherwise in general, just respect the conventions already being used in the file you're editing.  And please don't use automatic formatters - sometimes it's nice to lay code out in new and unusual ways (alright, this is my (justincc's) personal preference which other people may not agree with).

Revision as of 18:22, 4 July 2008

Generally speaking, we put curly brackets on separate lines and use 4 space tabs. Tab themselves should be spaces, not actual hard tabs. For instance.

public void LazeAround()
{
    // Do nothing
}

Otherwise in general, just respect the conventions already being used in the file you're editing. And please don't use automatic formatters - sometimes it's nice to lay code out in new and unusual ways (alright, this is my (justincc's) personal preference which other people may not agree with).

General
About This Wiki