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

File: [Pegasus] / pegasus / doc / Attic / CodeReviewNotes.txt (download)
Revision: 1.6, Tue Dec 25 04:41:18 2001 UTC (22 years, 4 months ago) by mike
Branch: MAIN
Changes since 1.5: +6 -0 lines
new



    1.	Indent four spaces (not three and not tabs).

    2.	Literals used (other than 0 or 1).

    3.	NULL used in several places.

    4.  Put braces on their own lines like this:

	    if (condition)
	    {

	    }

	Avoid this style:

	    if (condition) {

	    }

    5.	Makedepend utility was made the default depend
	utility on some platforms. The deafault should be
	"mu depend".

    6.	Regression tests should only print this:

	    "+++++ passed all tests"

	Extraneous output should be removed.

    7.	All defined constants must begin with "PEGASUS_".

    8.	All method must use the form myMethodName(). Many places
	have my_method_name() (with underscores).

    9.	Avoid use of (void). Use () instead.

    10.	Either get rid of throw() declarations or use them
	everywhere (perhaps they are not supported by some compilers).

    11.	Avoid indenting "private:", "public:" and "protected". Use this
	style:

	    class X
	    {
	    private:
		...
	    public:
	    };

    12.	Use "Type* x" rather than "Type *x".

    13. Use "if (" rather than "if(".

    14.	Avoid use of spaces around the condition:

	    if( cond )

    15.	Changed "Permisyion" to "Permission"

    16.	Keep all lines within 80 columns.

    17.	Build seems to fail on many Linux system (threading problems).

    18. SSL is the default on Linux (should not be used by defualt).

    19. Fix main logic (Unix v.s. Linux).

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2