General Style Guide

Documentation/Comments

White Space

Variables and Constants

Methods

Indenting and block structure

{ } guidelines

OKAY OKAY NOT OKAY
        if (test) {
            blah;
            blah;
        }
        
        if (test)
        {
            blah;
            blah;
        }       
        
        if (test) { blah; 
            blah; }
        
        if (test) {
            blah;
        } else if (test2) {
            blah;
        }       
        
        if (test) 
        {
            blah;
        } else if (test2) 
        {
            blah;
        }       
        
        if (test)
            { blah; }
        else if (test2)
            { blah; }
        
                        
        for (  ;  ;  ) {
            blah;
        }       
        
        
        for (  ;  ;  ) 
        {
            blah;
        }
        for (  ;  ;  ) 
        {  blah;
        
        }
        
        while (   ) {
            blah;
        }       
        
        while (   ) 
        {
            blah;
        }               
        
        while (   ) 
        { 
            blah; }
        
        do {
            blah;
        } while (   );  
        
        do 
        {
            blah;
        }
        while (   );    
        
   do {  blah;     
   } while (   );