How to become a Coding expert in Salesforce

How to become a Coding expert in Salesforce

Let's see how to become a coding expert in Salesforce. If you are new to Salesforce then check out our FREE Salesforce Training. Here are a few tips to become an expert coder in Salesforce.

1. Learn Apex Design Patterns

There are different design patterns available but below 4 Apex Design patterns, every developer should learn in Salesforce.

  1. Object Oriented Programming
  2. Singleton: There can only be one
  3. Strategy: Make a gametime call
  4. Builder: Construct complex objects
  5. Command: Execute an action by name [ TBD ]

Design patterns are complex. but help you to become an expert developer in Salesforce. Learn more here.

2. Apex CPU Time Limit

Being an expert coder you should focus on performance. Learn about how to resolve System.LimitException: Apex CPU time limit exceeded error in Salesforce. Here are some tips.

  1. Avoid Multiple automation on a Single Object
  2. Trigger Framework
  3. Avoid multiple Validation Rules
  4. Using Map based query
  5. Use Async Apex
  6. Aggregate SOQL usage
  7. Avoid Nested For loop
  8. Avoid using process builder
  9. Salesforce Solution Design – Performance considerations
  10. Use Return Early Pattern

Learn more about Apex CPU Time Limit Exceeded.

3. Too many SOQL Queries 101

Learn about how to Resolve the “Too many SOQL queries: 101” error.

  1. Avoid SOQL queries inside For Loop
  2. Bulkify Apex Trigger and Recursion Handling
  3. Move some business logic into @future
  4. Minimize the No.of SOQLs by merging the queries

Learn more about Too Many SOQL Queries here.

4. Monitoring & Auditing Tools in Salesforce

There are different Monitoring & Auditing Tools are available in Salesforce. Here are some of them

  1. Salesforce Health Checker
  2. Portal Health Check
  3. Salesforce Optimizer
  4. Salesforce Accelerator
  5. Manual Org Assessment
  6. Security Center
  7. Login History
  8. View Setup Audit Trail
  9. System Overview
  10. Field History Tracking
  11. Lightning Usage App
  12. Apex Exception Emails
  13. Debug Logs
  14. Event Monitoring
  15. Transaction Security Policy
  16. API Usage Notification
  17. Force.com Code Scanner
  18. Apex PMD
  19. Custom Error Handling framework

Learn about all Monitoring & Auditing Tools in Salesforce to make your code and salesforce org secure.

5. Security in Apex

When you use Apex, the security of your code is critical. How to enforce data security and how to prevent SOQL injection attacks in Apex. We’ll also review what Locker Service does for you and security?best practices?for?LWC.

Check our post Security in Salesforce learn about

  1. User Mode vs System Mode
  2. Object and Field-level Security (CRUD & FLS)
  3. Record-level Security (Sharing)
  4. Sharing Clauses for Apex Classes
  5. Data Security in LWC

Please subscribe to our blog and?YouTube?channel for recording. Don't miss our next session "Salesforce DevOps at Google"

Sign-up to get notifications directly on the Apex hours website.

Ivan Hassig

Fintech | Insurtech | IA Researcher | SFDC Industries | Vlocity | Managing Director | Regional Vice President | We are hiring!

2 年
Ivan Hassig

Fintech | Insurtech | IA Researcher | SFDC Industries | Vlocity | Managing Director | Regional Vice President | We are hiring!

2 年
Luis Escalante

Salesforce Certified Developer| 13x Superbadges | Experience With Apex, LWC, Visualforce

2 年

In this case, if somebody does not have any previous code experience (HTML, CSS, etc) do you recommend to first learn some of those first before start to learn Apex, or it would be fine if somebody just jump directly into Apex?

回复
SAMIR SAYYAD

Salesforce Techno Functional Consultant - | Trailhead 2XRanger | AI Enthusiast & Trailblazer | #Awesome AdminEloper | SALES, SERVICE, CPQ, FSL Consultant | AI + DATA + CRM || Upcoming Salesforce Solution Architect ????

2 年

a Coding ??

Sloke Jain

4×Salesforce Certified | 2×Flosum Certified | Conga CPQ | LWC & Aura Component | Lead software Engineer at Persistent Systems | Top talent FY24 |Ex-TCS

2 年

Helpful

要查看或添加评论,请登录

Apex Hours的更多文章

社区洞察

其他会员也浏览了