Coding standards in Salesforce

Visualforce page Name:

Example:

InventoryStatusPage

------------------------------------------------------------------------------------------------------------

Controller Name:

Example:

InventoryStatusController

------------------------------------------------------------------------------------------------------------


Extension Name:

Example:

InventoryStatusExt

------------------------------------------------------------------------------------------------------------


Test Class Name:

Example:

InventoryStatusTest

------------------------------------------------------------------------------------------------------------


Batch Class Name:

Example:

InventoryStatusBatch

------------------------------------------------------------------------------------------------------------


Scheduler Class Name:

Example:

InventoryStatusScheduler

------------------------------------------------------------------------------------------------------------

1. Never use SOQL and DML inside for loop.

2. Never hard code values inside the apex classes. Make use of Custom Label or Custom Component.

No comments:

Post a Comment