Best practices applied for Guidewire ClaimCenter development

Best practices applied for Guidewire ClaimCenter development

User Interface (PCF) Best Practices

  1. Modify Base PCF Files Whenever Possible
  2. Add a Suffix to New PCF Files to Avoid Name Conflicts
  3. Use Display Keys to Display Text
  4. Use Existing Display Keys Whenever Possible
  5. Observe Display Key Naming Conventions
  6. Add a Suffix to New Display Keys to Avoid Name Conflicts
  7. Organize Display Keys by Page Configuration Component
  8. Avoid Post on Change and Client Reflection for Page RefreshesUse Post On Change with Extreme Caution
  9. Use Client Reflection Instead of Post on Change If Possible
  10. Avoid Repeated Calculations of Expensive Widget Values
  11. Use Page Variables Instead for Expensive Value Expressions
  12. Use Recalculate on Refresh with Expensive Page Variables Cautiously
  13. Do Not Use Post on Change with List Views
  14. 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

  1. Observe General Gosu Naming Conventions
  2. Declare Functions Private Unless Absolutely Necessary
  3. Use Public Properties Instead of Public Variables
  4. Use Extensions to Add Functions to Entities
  5. Match Capitalization of Types, Keywords, and Symbols

Gosu Coding Best Practices

  1. Use Whitespace Effectively
  2. Use Parentheses Effectively
  3. Use Curly Braces Effectively
  4. Program Defensively Against Conditions that Can Fail
  5. Omit Semicolons as Statement Delimiters
  6. Use != Instead of <> as the Inequality Operator
  7. Observe Null Safety with Equality Operators
  8. Use typeis Expressions for Automatic Downcasting
  9. Observe Loop Control Best PracticesImplement Conditional Operators in Loop Conditions Correctly
  10. Interrupt Loop Execution as Early as Possible
  11. Return from Functions as Early as Possible

Gosu Performance Best Practices

  1. Use the Fastest Technique for String Concatenation
  2. Consider the Order of Terms in Compound Expressions
  3. Avoid Repeated Method Calls Within an Algorithm
  4. Remove Constant Variables and Expressions from Loops
  5. Pull Up Multiple Performance Intensive Method Calls
  6. Be Wary of Dot Notation with Object Access Paths
  7. Avoid Code that Incidentally Queries the Database
  8. Use Comparison Methods to Filter Queries
  9. Use Count Properties on Query Builder Results and Find Queries
  10. Do Not Instantiate Plugins for Every Execution


要查看或添加评论,请登录

社区洞察

其他会员也浏览了