First page Back Continue Last page Summary Graphics
Guidelines, code format
Use tabulation to ease reading
- Divide code into sections by tabulating it
- Sample (JavaDoc and dmDebug.write not included)
{
//Assume return value of error/incomplete handling
boolean bRet = false;
try
{
//Make sure we have an dmUserAccess instance
if (prepareUserAccess())
{
//User must be logged in before method can continue
if (idmUserAccess.isUserLoggedIn())
{
//OK, do the work and return new status
bRet = true;
}
}
}
catch (Exception e) {
dmDebug.error(this,sampleMethod,e);
}
return bRet;
}
Notes: