Posts

Showing posts from March, 2015

Test-Driven Development in Salesforce

Image
 Concept - To Get some functionality working now and  improve or refactor it afterwards Hi Developers !!. This post is regarding   Test Driven Development   approach in Salesforce. Before going into any details or explanation about  "Test Driven Development in Salesforce" we need to know about (Test-Driven Development).  What is Test Driven Development (TDD) ?  Test Driven Development is an evolutionary approach to development which combines test - first development where you write a test code before  you write just enough production code to fulfill that test and  refactor (making code clearer, cleaner and elegant) . We can also say that TDD is a method of software development in which UNIT Testing is repeatedly done on source code. TDD is a method which will help us to get a better code in less time with no defects.  Benefits: There are many benefits of using Test Driven Development approach for software development. Some of the benefits are : 1. Give confidenc

Salesforce Collections Basics

Image
Hi Developers !!. This post is regarding the Salesforce Data Collections. Before going into details we need  to know what are Data Collections. So here we go : Data Collections -   As the name suggests, Data Collections are simply grouping of any Data Types. Data Collections in Salesforce - Apex Collections or Salesforce Collections has Three different types of Collections or we can say the Apex Language provides Developers with three different types of Classes where we can store our data in any one of these classes. The classes are:  1.  Sets  2.  Lists  3.  Maps   We use the above Apex Collections often in  our Triggers, Controllers and Classes because they go hand in hand with  SOQL (Salesforce Object Query Language)         All these Collections works like an ARRAY with Some additional features which Salesforce provides us  and have easier access methods than ARRAY.         Why we Need Apex Collections ?    There are many Limitations wit