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.28 -r1.29 --- openacs-4/packages/acs-core-docs/www/style-guide.html 27 Oct 2014 16:39:26 -0000 1.28 +++ openacs-4/packages/acs-core-docs/www/style-guide.html 7 Aug 2017 23:47:52 -0000 1.29 @@ -1,18 +1,18 @@ -OpenACS Style Guide

OpenACS Style Guide

+OpenACS Style Guide

OpenACS Style Guide

By Jeff Davis

Motivation

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

Well, first lets consider the OpenACS code base (all this as of December 2003 and including dotLRN). There are about 390,000 - lines of tcl code, about 460,000 lines of sql (in datamodel + lines of Tcl code, about 460,000 lines of sql (in datamodel scripts and .xql files), about 80,000 lines of markup in .adp files, and about 100,000 lines of documentation. All told, just about a million lines of "stuff". In terms of logical units there are about 160 packages, 800 tables, 2,000 stored - procedures, about 2,000 functional pages, and about 3,200 tcl + procedures, about 2,000 functional pages, and about 3,200 Tcl procedures.

When confronted by this much complexity it's important to be @@ -32,7 +32,7 @@

  1. Follow the file naming and the package structure rules.  Some of the file naming rules are requirements for things to function correctly (for example data model creation - scripts and tcl library files must be named properly to be + scripts and Tcl library files must be named properly to be used), while some are suggestions (the object-verb naming convention) which if ignored won't break anything, but if you follow the @@ -88,6 +88,6 @@

  2. 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$)