28 subscribers
Go offline with the Player FM app!
Best Practices in Apex Programming
Manage episode 219327614 series 2443977
In this episode we will be discussing about best practices that a developer needs to consider when he crafts Apex code.
Often when I do code reviews I see code which is not bulkified, SOQL queries being used in for Loops, public access specifier being used though it’s not required and etc. These are not only bad practices but it also make it hard for other developers to add new functionality when the size of the projects grows.
Few of the practices which I tried highlighting are
- Bulkify your code
- Proper usage of access modifiers
- Refactoring the code
- Always write code considering the governor limits
- Avoid Hardcoding
- Avoid Null pointer Exceptions
- Avoid SOQL statements in for loops
- Avoid Infinite Loops
Subscribe
You can subscribe to my course at Salesforce Casts
Links:
28 episodes
Manage episode 219327614 series 2443977
In this episode we will be discussing about best practices that a developer needs to consider when he crafts Apex code.
Often when I do code reviews I see code which is not bulkified, SOQL queries being used in for Loops, public access specifier being used though it’s not required and etc. These are not only bad practices but it also make it hard for other developers to add new functionality when the size of the projects grows.
Few of the practices which I tried highlighting are
- Bulkify your code
- Proper usage of access modifiers
- Refactoring the code
- Always write code considering the governor limits
- Avoid Hardcoding
- Avoid Null pointer Exceptions
- Avoid SOQL statements in for loops
- Avoid Infinite Loops
Subscribe
You can subscribe to my course at Salesforce Casts
Links:
28 episodes
All episodes
×
1 #28 Why Marc Benioff decided not to acquire Twitter 20:02

1 #27 All about the Syntax Expander tool am working on - Part 2 33:47

1 #26 All about the Syntax Expander tool am working on - Part 1 24:01



1 #23 A $300 million investment Salesforce made that’s worthy enough 18:43

1 #22 A funny or inspirational story I heard from a friend recently 13:34

1 #21 Top 5 qualities I look at before I hire a Salesforce Developer 11:38

1 #20 Resume building tips for Salesforce Developers 12:32

1 #19 How to explore freelance opportunities in Salesforce 9:29

1 #18 Frequently asked interview questions on Webservices 5:54

1 #17 What is Account, Contact, Opportunity and etc in Salesforce Automation 7:26

1 Things to know before you learn Lightning Web Components 5:30




1 Lightning Data Service vs Apex Standard Controllers 8:13

1 What is Einstein Prediction Builder & few use cases where it can be helpful 7:02

1 Synchronous vs Asynchronous Programming in Salesforce 7:48

1 Why did salesforce come up with Lightning Experience? 8:03




1 Everything you need to know about Oauth & JWT 12:38



1 What to develop/build after you are done learning Salesforce and how to become a better Salesforce Developer. 12:05

1 Challenges faced when you migrate Salesforce Org from Classic to Lightning 4:50
Welcome to Player FM!
Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.