2
.. i18n: .. _coding-guidelines-link:
4
.. i18n: =================
5
.. i18n: Coding Guidelines
6
.. i18n: =================
7
.. i18n: This list is populated incrementally as part of the code review process
8
.. i18n: done by the OpenERP Quality Team. It contains a set of OpenERP specific
9
.. i18n: good/bad practices, as well as a selection of more generic Python coding
10
.. i18n: recommendations.
13
.. _coding-guidelines-link:
18
This list is populated incrementally as part of the code review process
19
done by the OpenERP Quality Team. It contains a set of OpenERP specific
20
good/bad practices, as well as a selection of more generic Python coding
23
.. i18n: Both sections are a MUST READ for every OpenERP developer and contributor.
26
Both sections are a MUST READ for every OpenERP developer and contributor.
28
.. i18n: As an introductory rule, you should always keep in mind the following:
31
As an introductory rule, you should always keep in mind the following:
33
.. i18n: **Every line you write will be written only once, but read many times
34
.. i18n: by others (including yourself)**
37
**Every line you write will be written only once, but read many times
38
by others (including yourself)**
40
.. i18n: At the risk of stating the obvious, this means that while following the
41
.. i18n: other guidelines, you should always use your best judgment in order to
42
.. i18n: achieve the best readability. And if writing readable code requires an
43
.. i18n: additional effort, it's worth it a thousand times.
46
At the risk of stating the obvious, this means that while following the
47
other guidelines, you should always use your best judgment in order to
48
achieve the best readability. And if writing readable code requires an
49
additional effort, it's worth it a thousand times.
51
.. i18n: .. Be careful if you change the following, you don't want to mess up the
52
.. i18n: guidelines numbering -- see the sectnum:: directives !!
55
.. Be careful if you change the following, you don't want to mess up the
56
guidelines numbering -- see the sectnum:: directives !!
60
.. i18n: coding_guidelines_python
61
.. i18n: coding_guidelines_framework
62
.. i18n: coding_guidelines_testing
67
coding_guidelines_python
68
coding_guidelines_framework
69
coding_guidelines_testing