Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 10th, 2012  |  syntax: None  |  size: 1.01 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 1) Indentation is a mess
  2.  
  3. 2) First param to MasterTemplate::setup is the page title so it should reflect what the page does.
  4.  
  5. 3) Use of prefixes (especially in post and get results) is discouraged. Use 'mode' instead of 'mode'
  6.  
  7. 4) commenting whilst helpful is only helpful when correct ;)
  8.  
  9. 5) If you only have a single post value being sent use a descriptive name ('reveal' is more descriptive than 'mode' for instance)
  10.  
  11. 6) Try to avoid assigning variables if you're only going to use them once
  12.  
  13. 7) Using $class->name with Entity Classes (character, city, ship, etc) isn't required as $class has a valid toString() method that is called by default if you just use echo $class;
  14.  
  15. 8) When using flash, you should either show the pages content again so that they can fix any mistakes they've made or redirect them to a valid page. (The flash will persist if MasterTemplate::redirect is used)
  16.  
  17. 9) If your method is set to POST don't use GET variables. (reveal.php?strMode=reveal)
  18.  
  19. 10) Try to keep your HTML HTML 5 compliant