Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 1.39 KB

File metadata and controls

72 lines (45 loc) · 1.39 KB

#Style Guide#

** Description **

###IDE's & Operating Systems### Rules

  • Any IDE, is acceptable, except Adobe Dreamweaver. Developers caught using Dreamweaver will be forced to use notepad for a week. The only alternative punishment is being shot with rock-salt.
  • Any OS is acceptable.

Why

  • Dreamweaver is slow and has little functionality compaired to most IDEs. Whatever OS a developer chooses,

###Spacing### Rules

  • All spacing is done in tabs. Scripts not spaced properly, MUST be re-written correctly.
  • recommended tab width: 2

Why

###-### Rules

Why

###-### Rules

Why

###-### Rules

Why

###-### Rules

Why

Short Version:

  • Tabs not spaces
  • recommended tab width: 2
  • Underscores not CamelCase
  • ALL file names must use [a-z0-9_-] NO uppercase letters
  • classes with dedicated files must use <class-name>.class.php
  • comment blocks have a 100 character soft-limit
  • when including/requiring files, path must be absolute
  • When handling paths (other than URLs) you must always use DS
  • Use of GOTO is allowed, HOWEVER the destination of GOTO must be in the same file and marked with a comment. NO EXCEPTIONS.
  • There is a soft-length-limit on file sizes. Any file over 1,000 lines long should be split into another file. This is not a requirement.