Best practices applied for Guidewire ClaimCenter development
Olivier Van de Velde
Olivier Van de Velde
Technical Authority and Scrum Master EBP Web Apps at Siemens Mobility
User Interface (PCF) Best Practices
- Modify Base PCF Files Whenever Possible
- Add a Suffix to New PCF Files to Avoid Name Conflicts
- Use Display Keys to Display Text
- Use Existing Display Keys Whenever Possible
- Observe Display Key Naming Conventions
- Add a Suffix to New Display Keys to Avoid Name Conflicts
- Organize Display Keys by Page Configuration Component
- Avoid Post on Change and Client Reflection for Page RefreshesUse Post On Change with Extreme Caution
- Use Client Reflection Instead of Post on Change If Possible
- Avoid Repeated Calculations of Expensive Widget Values
- Use Page Variables Instead for Expensive Value Expressions
- Use Recalculate on Refresh with Expensive Page Variables Cautiously
- Do Not Use Post on Change with List Views
- Use Application Permission Keys for Visibility and Editability
Data Model Best Practices
1. Observe General Entity Naming Conventions
2. Add a Prefix to New Extensions to Avoid Name Conflicts
3. Use Singular for Field Names Except for Arrays
4. Add ID as a Suffix to Column Names for Foreign Keys
5. Observe Typelist Naming Conventions
Gosu Language Best Practices
- Observe General Gosu Naming Conventions
- Declare Functions Private Unless Absolutely Necessary
- Use Public Properties Instead of Public Variables
- Use Extensions to Add Functions to Entities
- Match Capitalization of Types, Keywords, and Symbols
Gosu Coding Best Practices
- Use Whitespace Effectively
- Use Parentheses Effectively
- Use Curly Braces Effectively
- Program Defensively Against Conditions that Can Fail
- Omit Semicolons as Statement Delimiters
- Use != Instead of <> as the Inequality Operator
- Observe Null Safety with Equality Operators
- Use typeis Expressions for Automatic Downcasting
- Observe Loop Control Best PracticesImplement Conditional Operators in Loop Conditions Correctly
- Interrupt Loop Execution as Early as Possible
- Return from Functions as Early as Possible
Gosu Performance Best Practices
- Use the Fastest Technique for String Concatenation
- Consider the Order of Terms in Compound Expressions
- Avoid Repeated Method Calls Within an Algorithm
- Remove Constant Variables and Expressions from Loops
- Pull Up Multiple Performance Intensive Method Calls
- Be Wary of Dot Notation with Object Access Paths
- Avoid Code that Incidentally Queries the Database
- Use Comparison Methods to Filter Queries
- Use Count Properties on Query Builder Results and Find Queries
- Do Not Instantiate Plugins for Every Execution