GUIDEWIRE BEST PRACTICES QUESTIONS AND
ANSWERS
Best Practice - Answers :Is a set of informal rules and recommendations
Standard - Answers :Is a document agreement that provides rules and guidelines that
deliver an assurance of best practices.
Are all standards best practices? - Answers :True
What goals do standards and best practices share? - Answers :Quality, efficiency, and
consistency. (QEC)
When Referencing Typecodes, instead of the text reference "typecode" use
______________ - Answers :TC_TYPECODE
For conditional operators, which is preferred? "not", "and", "or"; "!", "&&", "||" - Answers
:"not", "and", "or"
Two things to avoid for code placement are? - Answers :Avoid placing code in the Code
tab of a PCF- Create a UI helper class
Avoid putting UI-supporting logic in Enhancements
True/False: Deprecated classes and methods are okay to use - Answers :False
Turning on and running Studio Inspection will allow you to analyze what? - Answers
:Configuration resources
What is a set of in-memory entities called? - Answers :Bundle
How to add to writable bundle? - Answers :add () method
What is the best practice for querying? - Answers :Filter at database, not in memory
Where do you place code required for screen operations? - Answers :UI helper class
How many blank lines are added after methods? - Answers :2 blank lines
What do best practice and standards do? - Answers :Produce standardized solutions,
ensures the stability and integrity of customer code, improve performance, reduce
rework and wasted effort, save on maintenance, promote security, facilities software
upgrades.
, What is the course content? - Answers :It contains best practices, cloud delivery
standards, and review material (BDR)
General coding contains - Answers :Coding standards, logging, UI, unit testing,
database interaction, performance diagnostic.
What are the lessons three categories? - Answers :General coding, early problem
detection, cloud specific category. (GEC)
True/False: It is okay to use the internal "com.guidewire.*" classes - Answers :False
How many spaces are logical blocks of code indented by? - Answers :2 spaces
gwb gosudoc - Answers :What is the command to generate Gosu documentation?
{ } - Answers :What surrounds logical blocks of code?
How do you insert comments? - Answers :// or /** insert comment here /*
What should you use instead of varchar(xx)? - Answers :shorttext, mediumtext, or
longtext
How do you name packages? - Answers :short name that will apply in the future that
defines project or customer
How do you name subpackages? - Answers :based on feature NOT function (ex:
si.bc.check)
How do you name classes? - Answers :upper camel case + single noun / adjective
How do you name Interfaces? - Answers :upper camel case + primary thing it describes
How do you name functions? - Answers :lower camel case + noun for most (is +
adjective for Boolean)
How do you name constants? - Answers :All caps + an underscore separating words
How do you name enumerations? - Answers :upper camel case
How do you name member variables? - Answers :underscore followed by name in lower
camel case
How do you name local variables? - Answers :lower camel case + short name
describing purpose
How do you name new display keys? - Answers :add _Ext suffix
ANSWERS
Best Practice - Answers :Is a set of informal rules and recommendations
Standard - Answers :Is a document agreement that provides rules and guidelines that
deliver an assurance of best practices.
Are all standards best practices? - Answers :True
What goals do standards and best practices share? - Answers :Quality, efficiency, and
consistency. (QEC)
When Referencing Typecodes, instead of the text reference "typecode" use
______________ - Answers :TC_TYPECODE
For conditional operators, which is preferred? "not", "and", "or"; "!", "&&", "||" - Answers
:"not", "and", "or"
Two things to avoid for code placement are? - Answers :Avoid placing code in the Code
tab of a PCF- Create a UI helper class
Avoid putting UI-supporting logic in Enhancements
True/False: Deprecated classes and methods are okay to use - Answers :False
Turning on and running Studio Inspection will allow you to analyze what? - Answers
:Configuration resources
What is a set of in-memory entities called? - Answers :Bundle
How to add to writable bundle? - Answers :add () method
What is the best practice for querying? - Answers :Filter at database, not in memory
Where do you place code required for screen operations? - Answers :UI helper class
How many blank lines are added after methods? - Answers :2 blank lines
What do best practice and standards do? - Answers :Produce standardized solutions,
ensures the stability and integrity of customer code, improve performance, reduce
rework and wasted effort, save on maintenance, promote security, facilities software
upgrades.
, What is the course content? - Answers :It contains best practices, cloud delivery
standards, and review material (BDR)
General coding contains - Answers :Coding standards, logging, UI, unit testing,
database interaction, performance diagnostic.
What are the lessons three categories? - Answers :General coding, early problem
detection, cloud specific category. (GEC)
True/False: It is okay to use the internal "com.guidewire.*" classes - Answers :False
How many spaces are logical blocks of code indented by? - Answers :2 spaces
gwb gosudoc - Answers :What is the command to generate Gosu documentation?
{ } - Answers :What surrounds logical blocks of code?
How do you insert comments? - Answers :// or /** insert comment here /*
What should you use instead of varchar(xx)? - Answers :shorttext, mediumtext, or
longtext
How do you name packages? - Answers :short name that will apply in the future that
defines project or customer
How do you name subpackages? - Answers :based on feature NOT function (ex:
si.bc.check)
How do you name classes? - Answers :upper camel case + single noun / adjective
How do you name Interfaces? - Answers :upper camel case + primary thing it describes
How do you name functions? - Answers :lower camel case + noun for most (is +
adjective for Boolean)
How do you name constants? - Answers :All caps + an underscore separating words
How do you name enumerations? - Answers :upper camel case
How do you name member variables? - Answers :underscore followed by name in lower
camel case
How do you name local variables? - Answers :lower camel case + short name
describing purpose
How do you name new display keys? - Answers :add _Ext suffix