Coding Style
(This page is still under writing...)
C#
public namespace SHORTDESC_FunctionsShortDesc
{
public class FunctionsShortDesc
{
public string G_Var; //G_ for global.
int L_Var; //L_ for local.
public static int S_Var; //S_ for static
/*
<summary>
Try to place a desc comment before all functions
</summary>
*/
public void FunctionStartsWithCapitalizedLetter()
{
return; //Always Use Return.
}
/*
<summary>
Also provide a empty line between every function, variable and function but not variable and variable.
</summary>
*/
public void Init_Awesomeness(string 3DS_Status) //Use Init_ when the function init stuff.
{
L_Var = 10; //Include space before '=' and after ='.
G_Var = 'S' //Use ' if one char
G_Var = "StillAwesome" //And " if more.
DoSomething(L_Var); /* Place a space between Variable changing and function calling,
unless the are needed near each-other for readability */
return; //Dont forget, always use returns.
}
}
}