Browse the blog
Apex & Development
Apex, SOQL, LWC, testing and developer topics for building on Salesforce.
-

JavaScript Promises Explained: new Promise, then, catch and Examples
How JavaScript promises work: the three states, creating a new Promise, chaining then and catch, returning promises, and the mistakes that trip people up.
-

Salesforce JavaScript Developer Practice Questions: 20 Questions
20 original Salesforce JavaScript Developer practice questions weighted like the real exam’s seven sections, each with the answer and a full explanation.
-

Apex Managed Sharing: Share Objects, Row Cause and Recalculation
How Apex managed sharing works: share objects, access levels, Apex sharing reasons (row cause), a trigger example and sharing recalculation with batch Apex.
-

LWC Jest Testing: Set Up and Write Your First Lightning Web Component Tests
How to test Lightning web components with Jest: install sfdx-lwc-jest, write a basic test, mock Apex and wire adapters, and handle async DOM updates.
-

Apex Design Patterns: Service, Domain and Selector Layers Explained
Apex enterprise design patterns in plain English: separation of concerns, the Service, Domain and Selector layers, a trigger handler example and common mistakes.
-

Salesforce Integration Patterns: The 6 Patterns and When to Use Each
The six Salesforce integration patterns from the official Integration Patterns and Practices guide, how to pick one, and the recommended tools for each.
-

Database.QueryLocator vs Iterable in Batch Apex: Which to Use
Database.QueryLocator vs Iterable in Batch Apex: record limits, scope sizes, when each fits, and code for both, straight from the Apex Developer Guide.
-

Database.Stateful in Batch Apex: What Keeps Its Value
What Database.Stateful does in Batch Apex, which variables keep their values between chunks, a worked counting example, and when not to use it.
-

How to Schedule Batch Apex: System.schedule, scheduleBatch and Cron
Three ways to schedule Batch Apex in Salesforce: a Schedulable class with System.schedule, System.scheduleBatch, and the Schedule Apex page, plus cron examples.
-

Batch Apex in Salesforce: Syntax, Examples and Limits
How Batch Apex works: start, execute and finish, scope size, the flex queue, limits, testing and chaining, with a worked example you can copy.