Coding Standards
Most languages have best practises when coding to ensure the maximum consistency and readability of code.
- Variable names must be in capitals, and begin with V_ to denote them as a variable. e.g. V_SCORE
- Array names must be in capitals, and begin with A_ to denote them as an array. e.g. A_VALUES
- Function names must be in capitals and begin with F_ to denote them as a function. e.g. F_MYFUNC
- XML tag names must be in lower case with no spaces and contain a-z, 0-9. Use underscore _ rather than dash - to separate words so it is not confused for a minus in expressions later.
- The langiages is interpreted, so functions have to be declared before they are used.
- Substitution is central to every process so you can eaisily add {V_MYVAR} in amongst some HTML and it will be replaced by the contents of V_MYVAR.