Daily Learnings: Fri, Mar 10, 2023
It is through science that we prove, but through intuition that we discover. — Henri Poincaré
Apex Learnings
Some additional learnings from Advanced Apex Programming on concurrency:
- Apex is NOT a multithreaded language
- The Salesforce platform allows for multithreading processes, so you can still run into concurrency bugs
- These are the hardest to replicate, requiring potentially unlimited time to identify, diagnose, replicate, and then fix
- Much easier to fix in the initial application and architecture design rather than debugging in the future
Separation of Concerns & Apex Commons Lib
I also spent some time watching the initial video in the Separation of Concerns playlist from Coding with the Force (found here). I took more notes on what SoC is in its corresponding note. The video series uses the Apex Commons Library, which is a very powerful library for implementing this software design principle into your code in Salesforce.