View Single Post
Re: What are the best practices?
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: What are the best practices? - 02-07-2008

I think that is about the useless comment "set i to 0"...

for my experience, now I feel by not stuff all parameters in function declarations in one line can sometimes offer better readability, like this:

PHP Code:
int
MyFunc
(
   
int      iParameter1,
   
float    flParameter2

looks better than:

PHP Code:
int MyFunc(int iParameter1float flParameter2
... especially when there are too many parameters

Last edited by Whistler; 02-07-2008 at 08:50..
  
Reply With Quote