Salesforce Developer Tutorial - The Complete Guide To The Apex Common Library in 2022

Опубликовано: 29 Май 2026
на канале: Coding With The Force
18,578
273

In this 7.5 hour long class we go over absolutely everything related to the Apex Common Library, The Apex Mocks Library and the Separation of Concerns Design Principle that melds it all together. This is the only tutorial in EXISTENCE that covers absolutely everything about these libraries and how to use them!

Github Wiki with all code and documentation for this video: https://github.com/Coding-With-The-Fo...

Schedule Salesforce consulting time with me here: https://calendly.com/codingwiththefor...

Please consider donating to help continue to improve the content produced for Coding With The Force: https://www.paypal.com/donate?busines...

Get Coding With The Force Merch Here: https://my-store-d20559.creator-sprin...

Follow all of our social media here:

Patreon:   / codingwiththeforce  
Github: https://github.com/Coding-With-The-Force
Facebook:   / codingwiththeforce  
Twitter:   / coding_force  
Instagram:   / codingwiththeforce  

Salesforce development books I recommend:

Advanced Apex Programming: https://amzn.to/3lXi8to
Salesforce Lightning Platform Enterprise Architecture: https://amzn.to/2R0D4BQ
Mastering Salesforce DevOps: https://amzn.to/3lTtTRN
Apex Design Patterns Book: https://amzn.to/3DwqljP


Good Non-SF Specific Development Books:

Clean Code: https://amzn.to/35PuMDU
Clean Architecture: https://amzn.to/35FYo6A
Design Patterns: Elements of Reusable Object-Oriented Software Book: https://amzn.to/3LhvHBd

-----------------------------------------------------------------------------------------------------------------------

Table of Contents:

0:00:00 - Intro
0:01:00 - Part 1: Intro to Separation of Concerns
0:21:54 - Part 2: Intro to the Apex Common Library
0:42:29 - Part 3: The Factory Pattern
1:17:02 - Part 4: The fflib_Application Class
1:59:29 - Part 5: The Unit of Work Pattern
2:17:04 - Part 6: The fflib_sObjectUnitOfWork Class
2:47:26 - Part 7: The Service Layer
3:07:53 - Part 8: Implementing the Service Layer with Apex Common
3:52:16 - Part 9: The Template Method Pattern
4:02:32 - Part 10: The Domain Layer
4:14:16 - Part 11: Implementing the Domain Layer with Apex Common
4:57:35 - Part 12: The Builder Pattern
5:12:06 - Part 13: The Selector Layer
5:26:33 - Part 14: Implementing the Selector Layer with Apex Common
6:08:33 - Part 15: The difference between Unit and Integration Tests
6:22:03 - Part 16: Unit Test Mocking and SoC
6:36:36 - Part 17: Implementing Unit Tests with The Apex Mocks Library
7:33:19 - Outro

DISCLAIMER: The views and ideas expressed on this YouTube channel and blog are based on past development experiences and may not always work for your particular scenarios. The advice in these videos may also become outdated as technology advances. They should be used as examples for educational purposes only. Using any shown solutions in your own org is not advisable since they are example scenarios.

#salesforce #salesforcedeveloper #salesforceadmin