Artwork

Innhold levert av Salesforce Casts Podcast and Krishna Teja. Alt podcastinnhold, inkludert episoder, grafikk og podcastbeskrivelser, lastes opp og leveres direkte av Salesforce Casts Podcast and Krishna Teja eller deres podcastplattformpartner. Hvis du tror at noen bruker det opphavsrettsbeskyttede verket ditt uten din tillatelse, kan du følge prosessen skissert her https://no.player.fm/legal.
Player FM - Podcast-app
Gå frakoblet med Player FM -appen!

Best Practices in Apex Programming

8:35
 
Del
 

Manage episode 219327614 series 2443977
Innhold levert av Salesforce Casts Podcast and Krishna Teja. Alt podcastinnhold, inkludert episoder, grafikk og podcastbeskrivelser, lastes opp og leveres direkte av Salesforce Casts Podcast and Krishna Teja eller deres podcastplattformpartner. Hvis du tror at noen bruker det opphavsrettsbeskyttede verket ditt uten din tillatelse, kan du følge prosessen skissert her https://no.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 episoder

Artwork
iconDel
 
Manage episode 219327614 series 2443977
Innhold levert av Salesforce Casts Podcast and Krishna Teja. Alt podcastinnhold, inkludert episoder, grafikk og podcastbeskrivelser, lastes opp og leveres direkte av Salesforce Casts Podcast and Krishna Teja eller deres podcastplattformpartner. Hvis du tror at noen bruker det opphavsrettsbeskyttede verket ditt uten din tillatelse, kan du følge prosessen skissert her https://no.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 episoder

Alle Folgen

×
 
Loading …

Velkommen til Player FM!

Player FM scanner netter for høykvalitets podcaster som du kan nyte nå. Det er den beste podcastappen og fungerer på Android, iPhone og internett. Registrer deg for å synkronisere abonnement på flere enheter.

 

Hurtigreferanseguide

Copyright 2024 | Sitemap | Personvern | Vilkår for bruk | | opphavsrett