View Single Post
02-19-2007, 05:43 AM
#16
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

I find it better style to use { and } with single line ifs, you can indent it and make any possible debugging better. and should the if become 2 or more lines you are making it easier for yourself and less likely to have a future bug. This comes in more importance when you are making a really large project, simple code is easier to read, its just 2 lines.