Changes between Version 4 and Version 5 of Document/Development/Standards/CodingStyle
- Timestamp:
- 06/06/07 16:56:51 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Document/Development/Standards/CodingStyle
v4 v5 80 80 * In case of having fewer than three parameters use positional parameters, otherwise named parameters. 81 81 * Avoid using '''flags''' in function taking more than one parameter. If necessary add a new method. 82 83 === Passing parameters === 84 Always pass arrays and hashes by references. It's faster. 85 86 The sames goes to return arrays or hashes. 87 82 88 === Fetching parameters === 83 89 * If a method receives positional parameters, fetch all them at once, and do not use shift … … 101 107 * Parameter names are an important source of information 102 108 * Verbs have no prefix and don't use third person 109 110 == Exporting symbols == 111 Try 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. 103 112 104 113 == Package layout ==