Note #01
Coding conventions and best practices
In the software engineering community, standardized coding conventions and best practices help keep code relevant and useful for clients, future developers, and coders themselves. Let’s take a look at some Salesforce Apex coding conventions and best practices.
Check out these Apex code quality rules that may be useful to you and your projects.
10 Best Practices for Apex Code
This article outlines Salesforce Apex’s coding best practices, including not using DML/SOQL/SOSL statements in loops, avoiding hardcoded IDs, utilizing only one trigger per SObject Type, delegating triggers to regular classes, ensuring code is bulkified, preventing SOQL injection, not using seeAllData in unit tests, using braces in for loops, maintaining correct naming conventions, avoiding debug statements…

