====== Coding Best Practices for GetSimple ====== * All new code developed can using PHP 5.2+ * All PHP files will use complete open tags and include an ending tag with no whitespace after it. (no shorthand PHP ''$string = 'Some plain text and a ' .$variable; than to use double quotes like this: $string = "Some plain text and a $variable"; * Do not use [[http://en.wikipedia.org/wiki/Ternary_operation#Perl.2C_PHP|ternary operators]]. Instead of this: $dynamic = ($language == 'php' ? true : false); use this: if($language == 'php') { $dynamic = true; } else { $dynamic = false; } * Do not use PHP short tags ''''. Instead, use the full tag syntax: ''''