Implementation of design guidelines
Having studied the separation of concerns in the previous chapter and reflected in the previous illustration, the following design guidelines help to ensure that the Service layer is agnostic of the caller, easy to locate, and encourages some Salesforce Platform best practices, such as bulkification. Note that bulkification is not just a concept for Apex Triggers; all the logic in your application must make efficient use of governed resources.
Naming conventions
A colleague of mine used to reference the following when talking about naming:
”There are only two hard things in Computer Science: cache invalidation and naming things.”
– Phil Karlton
In my career so far, I have come to realize that there is some truth in this statement. Naming conventions have never been as important on the Salesforce Platform as they are currently, as it lacks a means to group or structure code, such as by using...