When you start out in Salesforce development, there seems to be little need forĀ software design patterns. Perhaps because development starts with little triggers doing this and that in a few lines of code. But, as soon as the requirements, codebase, and team-size grow, then the advantages of patterns and other software engineering practices kick in. Continue reading “Patterns in Apex: Dependency Injection, Strategy, and Decorator”
Category: Apex
Salesforce Trigger Handlers Driven by Custom Metadata
Salesforce has a number of recommendations regarding best practice when writing Apex triggers. Two of these recommendations are:
Continue reading “Salesforce Trigger Handlers Driven by Custom Metadata”
Please don’t use static flags to control Apex Trigger recursion!
Trigger recursion in Apex can be a bit hard to get your head around. Often it is indirect, so hard to diagnose. What can happen is that Continue reading “Please don’t use static flags to control Apex Trigger recursion!”
Salesforce is Opening Up Metadata to Apex Code
Your Salesforce Org is made up of two types of data: Continue reading “Salesforce is Opening Up Metadata to Apex Code”