Artwork

Content provided by Salesforce Casts Podcast and Krishna Teja. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Salesforce Casts Podcast and Krishna Teja or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Best Practices in Apex Programming

8:35
 
Share
 

Manage episode 219327614 series 2443977
Content provided by Salesforce Casts Podcast and Krishna Teja. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Salesforce Casts Podcast and Krishna Teja or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

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

  1. Bulkify your code
  2. Proper usage of access modifiers
  3. Refactoring the code
  4. Always write code considering the governor limits
  5. Avoid Hardcoding
  6. Avoid Null pointer Exceptions
  7. Avoid SOQL statements in for loops
  8. Avoid Infinite Loops

Subscribe

You can subscribe to my course at Salesforce Casts

Links:

  continue reading

28 episodes

Artwork
iconShare
 
Manage episode 219327614 series 2443977
Content provided by Salesforce Casts Podcast and Krishna Teja. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by Salesforce Casts Podcast and Krishna Teja or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

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

  1. Bulkify your code
  2. Proper usage of access modifiers
  3. Refactoring the code
  4. Always write code considering the governor limits
  5. Avoid Hardcoding
  6. Avoid Null pointer Exceptions
  7. Avoid SOQL statements in for loops
  8. Avoid Infinite Loops

Subscribe

You can subscribe to my course at Salesforce Casts

Links:

  continue reading

28 episodes

All episodes

×
 
Loading …

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.

 

Quick Reference Guide

Copyright 2025 | Privacy Policy | Terms of Service | | Copyright
Listen to this show while you explore
Play