(file) Return to CodeReviewNotes.txt CVS log (file) (dir) Up to [Pegasus] / pegasus / doc

 1 mike  1.1 
 2           
 3 mike  1.2     1.	Indent four spaces (not three and not tabs).
 4 mike  1.1 
 5               2.	Literals used (other than 0 or 1).
 6           
 7               3.	NULL used in several places.
 8 mike  1.2 
 9               4.  Put braces on their own lines like this:
10           
11           	    if (condition)
12           	    {
13           
14           	    }
15           
16           	Avoid this style:
17           
18           	    if (condition) {
19           
20           	    }
21 mike  1.3 
22               5.	Makedepend utility was made the default depend
23           	utility on some platforms. The deafault should be
24           	"mu depend".
25 mike  1.4 
26               6.	Regression tests should only print this:
27           
28           	    "+++++ passed all tests"
29           
30           	Extraneous output should be removed.
31 mike  1.5 
32               7.	All defined constants must begin with "PEGASUS_".
33           
34               8.	All method must use the form myMethodName(). Many places
35           	have my_method_name() (with underscores).
36           
37               9.	Avoid use of (void). Use () instead.
38           
39               10.	Either get rid of throw() declarations or use them
40           	everywhere (perhaps they are not supported by some compilers).
41           
42               11.	Avoid indenting "private:", "public:" and "protected". Use this
43           	style:
44           
45           	    class X
46           	    {
47           	    private:
48           		...
49           	    public:
50           	    };
51           
52 mike  1.5     12.	Use "Type* x" rather than "Type *x".
53           
54               13. Use "if (" rather than "if(".
55           
56               14.	Avoid use of spaces around the condition:
57           
58           	    if( cond )
59           
60 mike  1.8     15.	Keep all lines within 80 columns.
61 mike  1.5 
62 mike  1.8     16.	Build fails on many Linux system (threading support problems).
63 mike  1.6 
64 mike  1.8     17. SSL is the default on Linux (is this okay?).
65 mike  1.6 
66 mike  1.8     19. Fix main logic (Unix v.s. Windows).
67           
68               21.	Get rid of CIMIndication class.
69           
70               22.	Revise licensing headers on all files.
71 mike  1.6 
72 mike  1.11     23. Add Log CVS directives.
73 mike  1.8  
74                24. Avoid inlining of large functions.
75            
76 mike  1.10     25.	Find decent code formatter.
77            
78                26. Revisit use of bit masks in provider interfaces.
79 mike  1.11 
80                27. Revisit provider loading/manager etc.

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2