Friday, January 29, 2010

Apex Code Enhancements and Collections best practices

Apex Code Enhancements and Collections best practices: "

Spring '10 is just around the corner, with many great new features. One of the Apex Code enhancements which caught my attention was the limits on the number of items a collection can hold has been removed. The previous limit was set at 200. Add this to the new ability to use generic sObjects to create a collection and Collections within the platform just got a whole lot more powerful.

As Ben Parker, the o-so-wise uncle of Peter Parker (aka Spiderman) once said: "with great power comes great responsibility." Changes to Collections is no different, and require some new thinking in regards to best practices.

The release notes, for example, mention that there is still a limit on heap size so care must be taken to not load up a collection and hit this limit. Good news is that a few other other Spring '10 changes can certainly be used to ensure you design your applications as efficiently as possible.

Here are just a few new SOQL clauses and functions which can be used with collections to help make the most fo the changes.


This is certainly not a complete list, but should certainly be something every developer is familiar with.

"

Thursday, January 21, 2010

The new salesforce features look interesting.

My notes:

semijoin - in the last release
antijoin -

child to child antijoin
allowing a subselect in the

parse xml
xmldom
If you include this in a package and test and

2 new classes related to eachtoher
XMLDOM
and XML

IDE Upgrade now support 3.4 Galileo
Additional support in IDE
No limit on collection size

Logging and Debugging

Wednesday, January 20, 2010

SFDC Unit Tests

Almost 3AM and trying to get a unit test cast working. Maybe I'm just tired.

More tomorrow I guess.

Monday, November 16, 2009

Salesforce Selectoption

Wow if you accidentally put a space in this string:



You will get a error that I racked my head for:

Invalid selectOptions found. Use SelectOption type in Apex.

Now ok ... so I had to try to isolate the code then I finally realized that the " " at the end of the {!items} was there omg.

nasty nasty nasty error.

Thursday, October 8, 2009

Playing around with JQuery.
Played with flexbox got it working under salesforce but there we're issues with ie6 and ie7. (that's going to suck)

Learning Python more ... I think I'm just going to start reviewing each language just to see what are the idiosyncracies of all of them.

Tuesday, October 6, 2009

Started on the version 3 of my web site using the salesforce cloud db.
Lets see what I can do now ... probably an asynchronous call to either get the xml from a remote computer and inserting it into the db.

Thursday, October 1, 2009

So many things change when you go from working from home to working in the office.
There is a standing rule at where I work that everybody has to go in.

The logic "which makes a lot of sense"

Complete all Unit Test tests.
1) For some really odd reason My computer was running at 2 Gig memory but I couldn't find the culprit Rebooted and that fixed the issue but it was really odd.

2) So in my testmethod I'm getting the error:

Salesforce: Testmethods do not support webservice calls.

Solution remember to insantiate each Custom Object.