Friday, July 19, 2013

Fun with Numbers - Primitive Data types in APEX

Did you come across the issue when there can be obvious things we might miss primitive data types in APEX. One example I came across was as below

Double  myVal   = 3 * (10 / 4);

I expected the value to be 7.5 right... wait..
00:06:08.038 (38803000)|USER_DEBUG|[3]|DEBUG|RAJ    :6.0


Next  I changed the value to this..

Double myVal2  = 3 * (10 / 4.00);

00:06:08.038 (38895000)|USER_DEBUG|[4]|DEBUG|RAJ    :7.5

The simple variation on how the primitives are handled by the compiler is important. 

Friday, March 29, 2013

Data Migration Considerations

Here is a nice article of things to consider for data migration. http://wiki.developerforce.com/page/Fifteen_Things_to_Consider_Before_Your_Next_Data_Migration . Although many things look obvious , these are real world scenarios and very helpful before jumping on to the migration project. 

Salesforce Architect Resources

Finally there is one place where we can get more information relevant for Architects. http://wiki.developerforce.com/page/Architect_Core_Resources . This page a has nice collection of articles and links to other resources. I personally visit this site many times in a day.

Sunday, February 17, 2013

Winter 13 - SOQL best practices

Salesforce has come up with nice enhancements in Winter 13 .. in terms of SOQL queries it has enabled the following.

1. Ability to create custom index fields on formula fields...(this is a real time saver when used in reports)

2. Index on fields that can have NULL values.

For more info, please check the article at Force.com SOQL Winter 13

Tuesday, December 18, 2012