“Apex Code Best Practices”
Abstract.
Best Practice #1: Bulkify your Code.
Best Practice #2: Avoid SOQL Queries or DML statements inside FOR Loops.
Best Practice #3: Bulkify your Helper Methods.
Best Practice #4: Using Collections, Streamlining Queries, and Efficient For Loops.
Best Practice #5: Streamlining Multiple Triggers on the Same Object.