Jump to main content
PolicyCenter  10.1.2
PolicyCenter 10.1.2
  1. PolicyCenter 10.1.2
  2. Best Practices GuideA reference of recommended design patterns for data model extensions, user interface, business rules, and Gosu programming. The intended readers are configuration engineers.
  3. Gosu language best practices
  4. Gosu coding best practices
  • Best Practices GuideA reference of recommended design patterns for data model extensions, user interface, business rules, and Gosu programming. The intended readers are configuration engineers.
    • Overview of best practices
    • Data model best practices
    • User interface best practices
    • Rules best practices
    • Gosu language best practices
      • Gosu naming and declaration best practices
      • Gosu commenting best practices
      • Gosu coding best practices
        • Guidewire internal methods
        • Use whitespace effectively
        • Use parentheses effectively
        • Use curly braces effectively
        • Program defensively against conditions that can fail
        • Omit semicolons as statement delimiters
        • Observe null safety with equality operators
        • Use typeis expressions for automatic downcasting
        • Observe loop control best practices
        • Return from functions as early as possible
        • Use gw.api.util.DateUtil instead of java.util.Date
      • Gosu performance best practices
      • Gosu template best practices
      • Gosu best practices checklist
    • Upgrade best practices
    • Rating Management best practices

Gosu coding best practices

Guidewire recommends a number of best practices for Gosu code.

  • Use whitespace effectively
  • Use parentheses effectively
  • Use curly braces effectively
  • Program defensively against conditions that can fail
  • Omit semicolons as statement delimiters
  • Observe null safety with equality operators
  • Use typeis expressions for automatic downcasting
  • Observe loop control best practices
  • Return from functions as early as possible
  • Use gw.api.util.DateUtil instead of java.util.Date

© 2021 Guidewire Software, Inc. Legal notice