Here it is:
http://www.mono-project.com/Coding_Guidelines
These are the coding guidelines for the mono project. The ones i adopted some time ago. It seems they changed some stuff.
Now, they're recomending 8 space tabs and the usage of local variables like very_important_value, where i use 6 space tabs and veryImportantValue.
If you're learning how to program or don't have any standard adopted yet, go check that out and either adopt it as it is or adopt a modified version you like best. The important is to keep your code consistent.
Coding Guidelines
Moderator: Moderators
Consistency is realy all that's important, i myself use 4 space tabs, veryImportantValue and
is far neater IMO
and i'f i'm using nested parentheses i put spaces inside them.
Code: Select all
if (a)
{
code ();
code ();
}
and i'f i'm using nested parentheses i put spaces inside them.
- [K.B.] Napalm Cobra
- Posts: 1222
- Joined: 16 Aug 2004, 06:15
- SwiftSpear
- Classic Community Lead
- Posts: 7287
- Joined: 12 Aug 2005, 09:29
- SwiftSpear
- Classic Community Lead
- Posts: 7287
- Joined: 12 Aug 2005, 09:29
How so? They are good habitual coding practices that gives code a standard list and makes it easy to read for other people. This is expecially important for high end coding for businesses, but can really help out for open sourcers too.
They also happen to mostly be the habits the best uni's have been teaching in thier comp sci classes for a while now.
They also happen to mostly be the habits the best uni's have been teaching in thier comp sci classes for a while now.