Coding standards
From OpenSimulator
(Difference between revisions)
| Line 1: | Line 1: | ||
| − | Generally speaking | + | Generally speaking |
| + | |||
| + | * We put curly brackets on separate lines and use 4 space tabs. | ||
| + | * Tab themselves should be spaces, not actual hard tabs. | ||
| + | * Method names have all their words capitalized (as opposed to Java, which culturally uses camelCase). | ||
| + | |||
| + | For instance. | ||
public void LazeAround() | public void LazeAround() | ||
Revision as of 19:11, 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.
- Method names have all their words capitalized (as opposed to Java, which culturally uses camelCase).
For instance.
public void LazeAround()
{
// Do nothing
}
Otherwise in general, just respect the conventions already being used in the file you're editing (which should often follow the standard C# coding guidelines). 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).