𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Advanced Apex Programming in Salesforce

✍ Scribed by Dan Appleman


Publisher
Desaware Publishing
Year
2021
Tongue
English
Leaves
383
Edition
5
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Table of Contents


Table of Contents
Introduction
Note to Readers of Previous Editions
Sample Code
About the Code Listings
Part I – Thinking in Apex
Beyond Syntax
1 – The Execution Context
Running Apex Code
2 – Static Variables
Maintaining Data Across Trigger Invocations
Caching Data
Controlling Program Flow
3 – Limits
The Nature of Limits
Dealing with Limits
Platform Cache
Other Limits
Thinking of Limits
4 – Bulk Patterns
An Interesting Challenge
Building to Tests
Evaluating Worst-Case Conditions
A Common Solution
Query Optimization
Into the Future
Batch Apex
Enforcing Data Integrity
The Update Case
The DML Dilemma
Addressing Data Skew
Other Approaches
Bulk Patterns and Web Services
Part II – Application Architecture and Patterns
5 – Fun With Collections
Using Maps to Obtain Sets
Grouping Objects
Case Sensitivity
Avoid Using Objects as Keys
Keeping Track of Objects to Update
The Contains Method
Eliminating Duplicate Fields from Queries
6 – Triggers
The Framework Dilemma
One Trigger to Rule Them All
Architecture, Triggers, and Happy Soup
Implementing a Trigger Dispatcher
Managing Data Updates
Implementing a Data Manager
Controlling Program Flow
We All Live in the Same Metadata
Defensive Trigger Architectures
Controlling Trigger Execution in Four Acts
Best Practices
Defensive Trigger Patterns with Static Variables
The All-or-nothing Dilemma
Defense Through Cooperation
Additional Trigger Considerations
Before vs. After Triggers
Missing Triggers
Change Data Capture
7 – Going Asynchronous
Setting the Stage
Future Calls - Simple but Flawed
Industrial Strength Future Calls
Going Asynchronous with Batch Apex
Handling Errors in a Batch Process
Going Asynchronous with Queueable Apex
Handling Errors in Queueable Apex
Using Queueable Apex to Replace Future Calls
Centralized Asynchronous Processing
Asynchronous Transactions with Callouts
Going Asynchronous with Scheduled Apex
Suicide Schedulers
Going Asynchronous with Platform Events
Going Asynchronous with Change Data Capture
8 – Concurrency
Introduction to Concurrency
Optimistic Concurrency
Pessimistic Record Locking (For Update)
Handling DML lock errors
9 – Application Configuration
Storing Configuration Data
Accessing Custom Settings and Custom Metadata
Writing Custom Settings
Custom Setting Quirks
Writing Custom Metadata
Thinking About Application Configuration
Part III – Testing, Debugging and Deployment
10 – Debugging and Diagnostics
Reproducing Problems
Diagnostic Data
Instrumenting Apex - I
Centralized Exception Handling
Instrumenting Apex – II
Instrumentation and Platform Events
Thinking about Debugging and Diagnostics
11 – Unit Tests
Why Johnny Won’t Test
Testing in the Real World
Common Test Design Patterns
Using Test.LoadData
Object Initialization Revisited
Testing Namespaced Code
Testing in Packages
12 – Designing for Packages
Dynamic SOQL and Dynamic Apex
Person Accounts
Other Best Practices
Fun with Namespaces
Managing Organizations – With Salesforce DX
13 – Maintaining Apex
The Nightmare Scenario
The Perfect Scenario
Salesforce DX in the Real World
Salesforce for the Enterprise
Salesforce DX for Managed Packages
Fun with Sandboxes
Continuous Integration
Salesforce Updates
Using Salesforce Support
Conclusion
Acknowledgements and Dedication
About the Cover
Online Courses by Dan Appleman
Full Circle Insights
Also by the Author


πŸ“œ SIMILAR VOLUMES


Advanced Apex Programming in Salesforce
✍ Dan Appleman πŸ“‚ Library πŸ“… 2018 πŸ› Desaware Publishing 🌐 English

<b>Beyond the Salesforce documentation - Fourth edition</b> <p> Advanced Apex Programming in Salesforce is neither a tutorial nor a book for beginners. Intended for developers who are already familiar with the Apex language, and experienced Java and C# developers who are moving to Apex, this book st

Mastering Apex Programming: A developer'
✍ Paul Battisson πŸ“‚ Library πŸ“… 2020 πŸ› Packt Publishing 🌐 English

<span><p><b>Get to grips with the advanced features of Apex programming for Salesforce developers using this comprehensive guide</b></p><h4>Key Features</h4><ul><li>Discover how to build reliable applications with Apex by avoiding common mistakes and pitfalls</li><li>Learn how to use the different a

Mastering Apex Programming: A Salesforce
✍ Paul Battisson πŸ“‚ Library πŸ“… 2023 πŸ› Packt Publishing 🌐 English

<p><span>Advance your Apex programming skills to the next level with best practices, proven techniques, and practical code samples with this updated edition along with the most recent advancements in Apex</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Understand the various integrat