Index: openacs-4/packages/acs-core-docs/www/style-guide.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/style-guide.html,v diff -u -r1.19 -r1.19.2.1 --- openacs-4/packages/acs-core-docs/www/style-guide.html 16 Feb 2005 00:21:03 -0000 1.19 +++ openacs-4/packages/acs-core-docs/www/style-guide.html 26 Aug 2005 00:02:30 -0000 1.19.2.1 @@ -1,8 +1,8 @@ -OpenACS Style GuideOpenACS Style Guide

OpenACS Style Guide

+ ">

OpenACS Style Guide

By Jeff Davis -

Motivation

+

Motivation

Why have coding standards for OpenACS? And if the code works why change it to adhere to some arbitrary rules?

@@ -27,7 +27,7 @@ over a long period by a lot of different people, OpenACS sometimes lacks this basic guessability and in the interest of bringing it into line we have advanced these guidelines. -

Commandments

+

Commandments

Here is a short list of the basic rules code contributed to OpenACS should follow...

  1. Follow the file naming and the package structure rules.� @@ -74,8 +74,8 @@ toolkit more useful for everyone and more easily extended.

  2. Make sure your datamodel create/drop scripts work.� Break the table creation out from the package/stored - procedure creation and use create or - replace where possible so that scripts + procedure creation and use create or + replace where possible so that scripts can be sourced more than once. Make sure your drop script works if data has been inserted (and permissioned and notifications have been attached etc). @@ -89,6 +89,6 @@

  3. Solicit code reviews.� Ask others to look over your code and provide feedback and do the same for others. -

Revision History

Document Revision #Action Taken, NotesWhen?By Whom?
0.1Creation12/2003Jeff Davis
($Id$)