View Single Post
Re: What are the best practices?
Old
  (#10)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: What are the best practices? - 03-07-2008

Quote:
Originally Posted by Whistler View Post
...
PHP Code:
int
MyFunc
(
   
int      iParameter1,
   
float    flParameter2

looks better than:
...
I think that can be useful if you want to include comments to each parameter. but nonetheless, a header-text for each function describing what it does is nice. there are also some programs around to automatically create documentation from those texts in a bunch of html files


  
Reply With Quote