Featured

SOLID Design Principles Tutorial Series: Ep 3 - The Open Closed Principle in Apex and JS



Published
In this third episode of the SOLID Design Principles Tutorial Series we go over what the Open Closed Principle is and how we can actually leverage it in both Apex and JavaScript.

The SOLID Design Principles Tutorial Series Order (Subject to Change):
Episode 1 - What are the SOLID Design Principles?
Episode 2 - The Single Responsibility Principle
Episode 3 - The Open/Closed Principle
Episode 4 - The Liskov Substitution Principle
Episode 5 - The Interface Segregation Principle
Episode 6 - The Dependency Inversion Principle
Episode 7 - Building an application with SOLID Principles

Tutorial on Interfaces: https://youtu.be/d3xOEg1Rs88
Tutorial on the Factory Pattern: https://youtu.be/TAegJdt_z7c
Tutorial on the Service Layer: https://youtu.be/5tM_MHV1ypY
Tutorial on Illuminated Cloud 2 and IntelliJ: https://youtu.be/GYAQbs0Z-pc

Please consider donating to help continue to improve the content produced for Coding With The Force: https://www.paypal.com/donate?business=RNHEF8ZWKKLDG¤cy_code=USD

Get Coding With The Force Shirts Here: https://www.redbubble.com/shop/ap/68526656
Get Coding With The Force Cups, Artwork, Bags and more here: https://www.redbubble.com/shop/ap/68525506

Follow all of our social media here:

Patreon: https://www.patreon.com/CodingWithTheForce
Github: https://github.com/Coding-With-The-Force
Facebook: https://www.facebook.com/codingwiththeforce/
Twitter: https://twitter.com/Coding_Force
Instagram: https://www.instagram.com/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

Good Non-SF Specific Development Books:

Clean Code: https://amzn.to/35PuMDU
Clean Architecture: https://amzn.to/35FYo6A

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

Table of Contents:

0:00 - Intro
0:22 - What is the Open Closed Principle?
3:32 - Why is the Open Closed Principle useful?
6:10 - Demoing the Application code we're gonna be modifying
6:55 - Looking at the current Apex code and determing why it doesn't abide by the OCP.
13:11 - Rebuilding the code to use OCP
40:15 - Demoing our application after we've rebuilt it to use OCP
46:51 - Rebuilding a JavaScript Controller to abide by the OCP
1:00:15 - Recap/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
Category
Web design
Be the first to comment