Coding standards

From TempusServa wiki
Revision as of 10:36, 18 November 2022 by Kpe (talk | contribs) (Created page with "=== Naming standards (tobe) === Package / naming placement * Package name all lowercase * General platform entities ** Servlets ** Fields ** Views * Solution specific code Class naming * Starting with uppercase * No special characters * Seperate words with uppercase === Safety standards === * Input sanitization used in SQL, using either ** Escape all string parameters using DbConnection.EscapeSQL ** Prepared statements * Page codeunits should contain user group restr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Naming standards (tobe)

Package / naming placement

  • Package name all lowercase
  • General platform entities
    • Servlets
    • Fields
    • Views
  • Solution specific code

Class naming

  • Starting with uppercase
  • No special characters
  • Seperate words with uppercase

Safety standards

  • Input sanitization used in SQL, using either
    • Escape all string parameters using DbConnection.EscapeSQL
    • Prepared statements
  • Page codeunits should contain user group restrictions

Review standards

The following CHANGES requires a code review

  • Changes to common objects
    • Command
    • Security
  • Changes to base servlets
  • CodeunitPagePublic