Changes between Version 4 and Version 5 of Document/Development/Standards/CodingStyle

Show
Ignore:
Timestamp:
06/06/07 16:56:51 (6 years ago)
Author:
juruen@… (IP: 88.26.177.14)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Document/Development/Standards/CodingStyle

    v4 v5  
    8080 * In case of  having fewer than three parameters use positional parameters, otherwise named parameters. 
    8181 * Avoid using '''flags''' in function taking more than one parameter. If necessary add a new method. 
     82 
     83=== Passing parameters === 
     84Always pass arrays and hashes by references. It's faster.  
     85 
     86The sames goes to return arrays or hashes. 
     87 
    8288=== Fetching parameters === 
    8389 *  If a method receives positional parameters, fetch all them at once, and do not use shift 
     
    101107 * Parameter names are an important source of information 
    102108 * Verbs have no prefix and don't use third person 
     109 
     110== Exporting symbols == 
     111Try to use an OO design as much as possible. If it happens you have to export functions, never export them by default. Use @EXPORT_OK, and the client modules will have to explicitly import them. 
    103112 
    104113== Package layout ==