← All articles

Tag

Best Practices

9 articles

The 80/20 of Salesforce: The 20% of Features That Deliver 80% of Value

·9 min read

After fifteen years on the platform, the pattern is clear: a small set of unglamorous features carries almost all the value. Here's the 20% I protect first.

SOQL Patterns That Won't Kill Your Governor Limits

·9 min read

The SOQL antipatterns I keep finding in code review, the patterns that replace them, and the trade-offs nobody explains — from years of production Salesforce.

Async Apex Patterns: Queueable vs Batch vs Future — The Decision Tree

·9 min read

Choosing between Queueable, Batch Apex, and Future methods is the asynchronous decision most Salesforce devs get wrong. Here's the framework I use, and the cases where the obvious choice is wrong.

Data Migration to Salesforce: The Honest Playbook

·9 min read

What actually goes into a clean Salesforce data migration — from field mapping through cutover — and the gotchas that turn one-week migrations into one-month projects.

Flow Performance Optimisation: 5 Things Slowing Your Flows Down

·7 min read

The Flow patterns that quietly destroy performance — and the fixes that have worked for me on government and financial services orgs.

Apex Test Patterns: How to Write Tests That Actually Catch Bugs

·9 min read

Most Apex tests pass coverage and catch nothing. The patterns that actually catch bugs — test data factories, behaviour assertions, governor limit checks, and the bulk cases everyone skips.

Error Handling in Apex: Beyond Try-Catch

·9 min read

Try-catch is where Apex error handling starts, not where it ends. Custom exceptions, persisted logs, partial-success DML, and errors that survive a rollback.

A Trigger Framework That Actually Scales

·5 min read

Most Salesforce orgs start with a handful of triggers and end up with a mess. Here's the framework I've used across government, financial services, and ISV orgs — and why the boring parts matter most.

Domain Layer Patterns in Apex That Survive Real Projects

·9 min read

The domain layer patterns I actually use in production Apex — how fflib domain classes plug into triggers, where validation belongs, and when it's overkill.