Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
5 |
aurelien |
1 |
<documentation title="Function and Method Names">
|
|
|
2 |
<standard>
|
|
|
3 |
<![CDATA[
|
|
|
4 |
Functions and methods should be named using the "studly caps" style (also referred to as "bumpy case" or "camel caps"). Functions should in addition have the package name as a prefix, to avoid name collisions between packages. The initial letter of the name (after the prefix) is lowercase, and each letter that starts a new "word" is capitalized.
|
|
|
5 |
]]>
|
|
|
6 |
</standard>
|
|
|
7 |
<code_comparison>
|
|
|
8 |
<code title="Examples of valid function names">
|
|
|
9 |
<![CDATA[
|
|
|
10 |
connect()
|
|
|
11 |
getData()
|
|
|
12 |
buildSomeWidget()
|
|
|
13 |
XML_RPC_serializeData()
|
|
|
14 |
]]>
|
|
|
15 |
</code>
|
|
|
16 |
<code title="Examples of invalid function names">
|
|
|
17 |
<![CDATA[
|
|
|
18 |
Connect()
|
|
|
19 |
get_data()
|
|
|
20 |
]]>
|
|
|
21 |
</code>
|
|
|
22 |
</code_comparison>
|
|
|
23 |
</documentation>
|