By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,676 Members | 2,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,676 IT Pros & Developers. It's quick & easy.

HTML Conventions

P: n/a
I couldn't help but make an even better list in reference to this thread:
http://mail.python.org/pipermail/pyt...ly/288678.html
<table border="3" cellpadding="3">
<tr><th>Type</th> <th>Convention</th> <th>Example</th></tr>
<tr><td>funtion</td> <td>action_with_underscores</td>
<td>find_all</td></tr>
<tr><td>variable</td> <td>noun_with_underscores</td>
<td>curr_index</td></tr>
<tr><td>constant</td> <td>NOUN_ALL_CAPS</td>
<td>ALLOWED_RNA_PAIRS</td></tr>
<tr><td>class</td> <td>MixedCaseNoun</td> <td>RnaSequence</td></tr>
<tr><td>public property</td> <td>MixedCaseNoun</td> <td>IsPaired</td></tr>
<tr><td>private property</td> <td>_noun_with_leading_underscore</td>
<td>_is_updated</td></tr>
<tr><td>public method</td> <td>mixedCaseExceptFirstWordVerb</td>
<td>stripDegenerate</td></tr>
<tr><td>private method</td> <td>_verb_with_leading_underscore</td>
<td>_check_if_paired</td></tr>
<tr><td>really private data</td> <td>__two_leading_underscores</td>
<td>__delegator_object_ref</td></tr>
<tr><td>parameters matching property</td> <td>SameAsProperty</td>
<td>__init__(data, Alphabet=None)</td></tr>
<tr><td>factory function</td> <td>MixedCase</td> <td>InverseDict</td></tr>
<tr><td>module</td> <td>lowercase_with_underscores</td>
<td>unit_test</td></tr>
</table>
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.