Get Started with APEX – Backbone of Salesforce

Apex 10 Mar , 2017  


Let me first confess that being a developer, I have fallen in love with this language.. or more precisely with Salesforce as a service. I left my job and started to try my best to dive into it. I will give some key points to know about Apex before you say “Hello World” to Apex. As a language, Apex is:

Easy to use—Apex is based on familiar Java idioms.

  • Object oriented – Apex is object oriented as it supports classes, interfaces, and inheritance.
  • Easy to use – If you have worked on C# or Java, Its very important to know that there is nothing very tough for you because it is based on familiar C#/Java based Dot(.) Notation implementation
  • Strongly typed – Strongly typed means that the types of all variables are known or inferred at compile time. A strongly typed language does not allow you to use one type as another. C is a weakly typed language and is a good example of what strongly typed languages don’t allow.Apex validates references to objects at compile time.
  • Hosted – Apex is saved, compiled, and executed on the server—the platform.
  • Automatically upgradeable is the interesting feature of apex because compiled code is stored as metadata in the platform, Apex is automatically upgraded as part of Salesforce releases.
  • Apex is multitenant aware again because Apex runs in a multitenant platform, it guards closely against runaway code by enforcing limits, which prevent code from monopolizing shared resources.
  • Easy to test Apex provides built-in support for unit test creation, execution, and code coverage. Salesforce ensures that all custom Apex code works as expected by executing all unit tests prior to any platform upgrades.
  • Versioned—Custom Apex code can be saved against different versions of the API.