![Salesforce Casts Podcast artwork](https://is4-ssl.mzstatic.com/image/thumb/Podcasts113/v4/60/e1/7f/60e17f4d-91d9-c126-0387-609916e31162/mza_10369914186334540071.jpg/100x100bb.jpg)
Best Practices in Apex Programming
Salesforce Casts Podcast
English - October 19, 2018 14:21 - 8 minutes - 7.92 MB - ★★★★★ - 4 ratingsHow To Education Technology salesforce training Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
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: