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
