Loss of Fractions in Divisions

This is a small coding issue which can lead to serious calculation problems. When dividing numeric Integer or Long values, the fractional portion of the result, if any, is removed before performing any implicit conversions to a Double or Decimal. Eg – Double = 5/3; // Expected result = 1.6666666666666667 | Actual result = 1.0Double […]

Quick Salesforce Deployments with ANT Migration Tool

Apache’s Ant is a Java library and command-line tool which allows quick deployment/migration of components into a target system. Once you installed Force.com migration tool, it can retrieve and deploy into target org by entering several commands. Instructions to install ANT can be found here or here. If you have installed ANT correctly, entering ant –version in […]

Salesforce Coding Standards

This is an unofficial list of Salesforce Coding Standards sourced from various guidelines & coding standards from the internet. Salesforce recommends following Java standards for naming, that is, classes start with a capital letter, methods start with a lowercase verb, and variable names should be meaningful. Class Class name should be noun/s starting with capital […]