Переходьте в офлайн за допомогою програми Player FM !
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 епізодів
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 епізодів
Усі епізоди
×Ласкаво просимо до Player FM!
Player FM сканує Інтернет для отримання високоякісних подкастів, щоб ви могли насолоджуватися ними зараз. Це найкращий додаток для подкастів, який працює на Android, iPhone і веб-сторінці. Реєстрація для синхронізації підписок між пристроями.