SOLID Design Principles in Salesforce Tutorial Series: Ep 6 - The Dependency Injection Principle

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

GitHub Code Examples: https://github.com/Coding-With-The-Force/Salesforce_SOLID_Design_Principles_Tutorial_Series

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:24 - What is the Dependency Inversion Principle?
5:49 - Why is the Dependency Inversion Principle so useful?
9:15 - Implementing the Dependency Inversion Principle In Apex
31:24 - Demoing our Apex Class
33:54 - Implementing the Dependency Inversion Principle in JS
38:49 - 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
Web design
Be the first to comment