Basic handlers

A basic handler typically includes both variables and functions. It is used for text reporting and for cases that require use of an object.

The basic handler has no preset variables or function names. The benefits of using a basic handler are as follows:
  • Simplicity. For example, when you are coding a Rich UI application, you might code a basic handler if your only purpose is to process data rather than to update the widgets on a web page. You avoid the technology-specific details that are presented by content assist in the alternative case, which involves working with a variable that is based on a Rich UI handler.
  • Object orientation. You might code a basic handler if you prefer to work with a programming idiom in which a variable is seen as an actor. If the EmployeePart part includes functions named retrieveSalaray and printSalary, the variable that is based on the part might retrieve its salary from a database and print the detail, as suggested here:
    myEmployee EmployeePart{id = 15};
    myEmployee.retrieveSalary();
    myEmployee.printSalary();