Artwork

内容由Salesforce Casts Podcast and Krishna Teja提供。所有播客内容(包括剧集、图形和播客描述)均由 Salesforce Casts Podcast and Krishna Teja 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.player.fm/legal
Player FM -播客应用
使用Player FM应用程序离线!

Best Practices in Apex Programming

8:35
 
分享
 

Manage episode 219327614 series 2443977
内容由Salesforce Casts Podcast and Krishna Teja提供。所有播客内容(包括剧集、图形和播客描述)均由 Salesforce Casts Podcast and Krishna Teja 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.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集单集

Artwork
icon分享
 
Manage episode 219327614 series 2443977
内容由Salesforce Casts Podcast and Krishna Teja提供。所有播客内容(包括剧集、图形和播客描述)均由 Salesforce Casts Podcast and Krishna Teja 或其播客平台合作伙伴直接上传和提供。如果您认为有人在未经您许可的情况下使用您的受版权保护的作品,您可以按照此处概述的流程进行操作https://zh.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集单集

Alle afleveringen

×
 
Loading …

欢迎使用Player FM

Player FM正在网上搜索高质量的播客,以便您现在享受。它是最好的播客应用程序,适用于安卓、iPhone和网络。注册以跨设备同步订阅。

 

快速参考指南