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(); + +?>