Salesforce Apex Master Class (Ep. 21) - When to use the Static Keyword in Apex

preview_player
Показать описание
In this episode we go over when to actually use the static keyword in Apex!

Follow all of our social media here:

Salesforce development books I recommend:

Good Non-SF Specific Development Books:

Special Thanks to our Producers Below (your support means a ton!):
Gabe Hirakawa

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

Table of Contents:

0:00 - Intro
1:20 - When to use the static keyword
2:25 - When to use a static method
8:02 - When to use a static variable
12:02 - 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
Рекомендации по теме
Комментарии
Автор

Great Video!!!! As a seasoned SF dev I have seen this issue occur in all levels of development. Static vs Non-Static is a concept that, I feel, begins a developer down a terrific path of thinking bout code as a living entity that has function AND form vs just some lines that accomplish a user story on a Jira board. Great video. Looking forward to new ones in this series.

al
Автор

thank you. I'm trying to like every your video. they are very helpful to me as a low-junior

oyoyoyoyoyoy
Автор

This new video helped a lot in understanding Static methods.... Hopefully when we do a project in future you can mention your thought process on why you chose for that particular use case...

pedroprada
Автор

give me a real time example when we go for static and when to go for nonStatic methods in apex??

sasireddypolimera
Автор

What are your thoughts on putting system.debug statements in prod code? I have two people that I work with that disagree strongly on this.

chrisburns