Project

General

Profile

Guidelines » History » Version 21

Greg Burri, 04/05/2011 02:44 PM

1 1 Greg Burri
h1. Guidelines
2
3
h2. Documentation
4
5
* Use of ' when referencing a name like 'myVar'
6
* Use of " when referencing a value like "my string"
7
8 2 Greg Burri
h2. Coding
9 1 Greg Burri
10 12 Greg Burri
See the prototypes for code reference : source:/prototypes.
11 5 Greg Burri
12 13 Greg Burri
h3. Some random rules
13
14 21 Greg Burri
* We use "Allman style":http://en.wikipedia.org/wiki/Allman_style#Allman_style_.28bsd_in_Emacs.29 whith three spaces indentation, no tabulation.
15 13 Greg Burri
* Try to minimize the use of dynamic allocation. Use constructor initializer to set non-pointer members.
16
* Use parameter references variable passing instead of pointers.
17
* Always have the design pattern "RAII":http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization in mind.
18 18 Greg Burri
* Avoid exception specification, see : http://www.ddj.com/architect/184401544
19 13 Greg Burri
20 5 Greg Burri
h2. Version number
21
22 14 Greg Burri
A version number has three numbers plus a tag and some other information :
23
_<a>.<b>.<c> <tag> <date+time> <tree hash>_
24 5 Greg Burri
25
_<a>_ : Major version
26
_<b>_ : Evolution
27 1 Greg Burri
_<c>_ : Revision (bugfixes)
28 19 Greg Burri
_<tag>_ : alpha | beta<num> | <nothing>
29 14 Greg Burri
_<date+time>_ : Date and time of the built tree, for example : _2009-08-01 17:42Z_. See "ISO8601":http://en.wikipedia.org/wiki/ISO_8601
30 17 Greg Burri
_<tree hash>_ : The hash of the built tree, for example : "b53118220bb28abf649df43fc144cc21919b512e":http://git.euphorik.ch/index.cgi?p=aybabtu.git;a=tree;h=b53118220bb28abf649df43fc144cc21919b512e
31 5 Greg Burri
32 14 Greg Burri
For example (date, time and hash are omitted)  :
33 20 Greg Burri
* _1.0.0 alpha_ (first version)
34
* _1.0.0 beta1_
35
* _1.0.0 beta2_
36
* _1.0.0 beta3_
37
* *_1.0.0_* (stable version)
38 11 Greg Burri
* _1.0.1_ (first revision)
39 7 Greg Burri
* _1.0.2_ (second revision)
40 20 Greg Burri
* _1.1.0 alpha_ (first evolution)
41
* _1.1.0 beta_
42
* *_1.1.0_*
43 5 Greg Burri
* _1.1.1_
44
* etc..
45 8 Greg Burri
46
h3. Beta and alpha versions
47
48
The alpha is a development version not yet finished only for developers.
49 9 Greg Burri
The beta is an almost released version that can be public.
50 15 Greg Burri
51
Only Alpha versions are built in Debug with full log enabled. All other versions are built in release mode.