RSS

Tag Archives: indenting

Always use a brace even if not needed

In C, C++, Java, and other languages, you use curley-braces — ‘{‘ and ‘}’ — to indicate the start and the end of a block of code.  However, the braces are optional if the block is only a single line.  This is an option you should never use.  Always use the brace, even if it is a single line. Read the rest of this entry »

Advertisements
 
Leave a comment

Posted by on June 14, 2013 in Coding

 

Tags: , ,

#18 Don’t use TAB Characters

An age-old debate that should not exist.  Tabs are evil.  It is an attractive idea, but poorly implemented, non standardized, unpredictable handling, and so this post enumerates the ways that their cost far outweighs their benefits. Read the rest of this entry »

 
Leave a comment

Posted by on October 27, 2011 in Coding

 

Tags: , ,