The Apex Master Class
What Are Switch Statements in Apex? (Ep. 27)
What Is A Switch Statement? A switch statement looks at one variable and picks a branch based on its value. It’s doing much the same job…
15 Jun 2022
3 min
Salesforce
Salesforce
98 posts
The Apex Master Class
What Are Switch Statements in Apex? (Ep. 27)
What Is A Switch Statement? A switch statement looks at one variable and picks a branch based on its value. It’s doing much the same job…
15 Jun 2022
3 min
The Apex Master Class
Conditional Statements (If/Else) in Apex (Ep. 26)
Making Your Code Decide Things Every bit of code we’ve written so far runs straight through, top to bottom, doing the same thing every time. Which…
13 Jun 2022
3 min
The Apex Master Class
When to Use the Private Keyword in Apex (Ep. 25)
Your Default Setting Last of the four access modifiers, and the one you should be reaching for most. private means only this class can use it.…
2 Jun 2022
4 min
The Apex Master Class
When to Use the Protected Keyword in Apex (Ep. 24)
The One Nobody Uses protected is the access modifier most Salesforce developers have never deliberately typed. It sits in an odd middle ground and it only…
27 Apr 2022
3 min
The Apex Master Class
When to Use the Public Keyword in Apex (Ep. 23)
What Does Public Mean? Last episode we covered global and I told you to use it as little as possible. Today’s is the one you’ll actually…
25 Apr 2022
3 min
The Apex Master Class
When to Use the Global Keyword in Apex (Ep. 22)
First, What Is An Access Modifier? This is the first of four episodes on access modifiers, so let’s define the term before we get into the…
22 Apr 2022
3 min
The Apex Master Class
When to Use the Static Keyword in Apex (Ep. 21)
Knowing What It Is Isn’t The Same As Knowing When To Use It Last episode we worked out what static actually does. This episode is the…
20 Apr 2022
4 min
The Apex Master Class
What Is the Static Keyword in Apex? (Master Class Ep. 20)
What Does Static Mean? I’ll be straight with you up front: static is one of those keywords that seems perfectly obvious until somebody asks you to…
18 Apr 2022
4 min
The Apex Master Class
What Are Maps in Apex? (Apex Master Class Ep. 19)
What Is A Map? A map is a collection of key/value pairs, where each unique key points to a single value. I’ll be honest with you:…
14 Apr 2022
4 min
The Apex Master Class
What Are Sets in Apex? (Apex Master Class Ep. 18)
What Is A Set? A set is an unordered collection of elements that contains no duplicates. Which is basically a List with both of its defining…
11 Apr 2022
3 min
The Apex Master Class
What Are Lists in Apex? (Apex Master Class Ep. 17)
What Is A List? Salesforce and roughly every other language’s documentation define a list as “an ordered collection of elements that are distinguishable by their indices.”…
8 Apr 2022
3 min
The Apex Master Class
What Are Collections in Apex? (Master Class Ep. 16)
What Is A Collection? Every variable we’ve made so far holds exactly one thing: One variable, one value. Fine for a while. Now imagine you’ve queried…
6 Apr 2022
3 min