Print Store Tools

Recommendations for elegant or graceful code:

  1. Easy to read,
    Indented in a consistent manner,
    Meaningful variable and function names,
    objects/functions well organized.
    Comments where needed.
  2. Straightforward, no unnecessary complexity
  3. Good architecture.
    No redundant/duplicate code, Reuse of modules/files/functions as appropriate.
  4. Separation of application and presentation. HTML not embedded in PHP, but stored in templates.
  5. Robust field validation,
    graceful error handling
  6. Secure, appropriate reactions to malicious or accidental actions.
  7. Runs as intended
  8. Common configuration settings/constants sourced from a single point
  9. Use of all available resources.
    Includes using Linux commands or scripting where appropriate.
  10. Efficient logic
  11. Small footprint