9
votes

Inspired by the mods of a few other communities, this is a continuation of a series of quarterly rewards for the best answer, and I'd ask the community for the best answers from the past quarter to get an additional reward:

Please link to an answer which was created from April 1st 2017 through June 30th 2017 and which you think deserves an additional reward. Only one entry per answer will be valid. For multiple favorites submit separate answers to this post.

Here is a data query to help with the decision making process:

If your answer isn't linked on the list above, no problem! You are free to choose your own favorite answer which didn't get the limelight. Any nominated answer can be from you or from someone else.

The highest voted answer of this meta post will be picked up for the reward of 200 points after 2 weeks.

Note: Answer must have 1+ upvote and submitted in the same quarter only. Answer should not be a wiki. Please only propose one post in any answer here so the votes can easily be tallied.

SHOUT OUT to @DerekF for contributing some of his hard earned points last quarter to further increase the rewards pool! Thanks!

locked by Adrian Larson Jul 14 '17 at 15:49

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. See the help center for guidance on writing a good question.

Read more about locked posts here.

  • Locking this post to prevent future votes. – Adrian Larson Jul 14 '17 at 15:49
8
votes

I always enjoy profiling questions, so here's one: How can you benchmark Apex code to determine what operations consume the most CPU time?.

It's pretty awesome to see folks using a package I developed! I need to publish some of the improvements I have been working on... anyway it's far from complete but I like that this answer gets people thinking about the question of performance. It's obviously a topic I find compelling.

  • 3
    Great answer and also using the package developed by our moderator. Awesome ! We need a place which references all the awesome packages ! – Martin Lezer Jun 29 '17 at 7:06
6
votes

I like Rahul's answer on Maintain unique user name in Test methods?

Talk about unlikely collisions! It is also sound advice to move code for test data creation into utility methods. All of the answers to this question offer sound advice, must have been tough to choose which to accept.

3
votes

I like this question and answer.

Got some undocumented stuff on testing an asynchronous code, using Test.stopTest() from @sfdcfox's answer.

@future runs in test without Test.stopTest() - Can that be?

  • 1
    The preciseness and quality of answer makes its very good. All of Sfdcfox's answers are very good :) but i like this one better. – RedDevil Jul 7 '17 at 15:48
3
votes

I'm going to nominate Caspar's answer on Different return types of a class method as being clear and helpful for the less skilled and experienced programmers here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .