← Resources
Snippets

Salesforce Apex Snippets

A curated collection of reusable Apex patterns I reach for constantly — SOQL queries, trigger handlers, callout helpers, and more.


What’s inside

A growing set of battle-tested Apex snippets I use across projects:

  • Generic trigger handler framework
  • Bulk-safe SOQL query patterns
  • HTTP callout with error handling and retry logic
  • Custom exception classes
  • Platform Event publish/subscribe patterns

Copy, adapt, and use freely.