From 66fccb3a8ac10b54fab08bc415418a9e14f820dc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 13 Feb 2005 02:23:20 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5416 --- doc/boinc_dev.php | 1 + doc/coding.php | 176 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 177 insertions(+) create mode 100644 doc/coding.php diff --git a/doc/boinc_dev.php b/doc/boinc_dev.php index 25b15f6088..196b9d6d7c 100644 --- a/doc/boinc_dev.php +++ b/doc/boinc_dev.php @@ -18,6 +18,7 @@ before getting into the source code. Read about:

Various implementation notes: diff --git a/doc/coding.php b/doc/coding.php new file mode 100644 index 0000000000..dbac2b4673 --- /dev/null +++ b/doc/coding.php @@ -0,0 +1,176 @@ + All languages +

Code factoring

+ + +

code documentation

+ + +

Naming

+ + +

Indentation

+ + +

Constants

+ + +

Braces

+ + +

comments and #ifdefs

+ + +

C++ specific

+

Includes

+ +

extern declarations

+ + +

Use of static

+ + +

Things to avoid unless there's a truly compelling reason:

+ +

Things to avoid

+ +

error codes

+ + +

structure definitions

+ + + +

PHP specific

+ +

Getting POST and GET data

+Remember that hackers can pass arbitrary values in POST and GET, +and they can use this to do SQL injections and other exploits. + +"; + +page_tail(); + +?>