Having studied the Separation of Concerns in the previous chapter and reflected on 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 Lightning 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.
Implementation of design guidelines
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...