Search

Quirky Apex

Developer related topics for the Salesforce.com platform

Using JavaScript Promises within Lightning Components

In my previous blog post I promised (pun intended) to walk you through how to implement JavaScript Promises within Lightning Components and discuss how they can help simplify managing asynchronous callbacks.

Continue reading “Using JavaScript Promises within Lightning Components”

 

A few days ago I had some free time and decided to make something fun using Lightning Components and now finally you can play Minesweeper on Salesforce!

https://marchbanks05-developer-edition.eu14.force.com/ms/c/MS_App.app

Best played on a desktop browser as you’ll need to right click!

Have fun playing!

Lightning Component Methods

In todays post, I will be walking you through Lightning Component Methods (a.k.a. Aura Methods) and how they can benefit your applications by simplifying the development process and maximising code reuse.

Continue reading “Lightning Component Methods”

Yesterday I passed the Service Cloud exam! I have to admit this was a bit of a challenging exam to pass to say the least!

Some useful links to help pass the exam:

If you’re interested in what topics are in the exam or if you’ve got general questions let me know in the comments.

Sent off to get back Salesforce certification ranking from the Artisan Hub and here are my results! Ranked 6th within The Netherlands isn’t that bad if might say so!

artisan ranking

https://about.artisans.com.au/salesforce-certified-professional-artisan-hub-launch

FFLIB – Application structure

We’ve covered all of the layers so far in use when using FFLIB. Here’s a quick overview of the different layers again.

  • Selector – all of your queries go into this layer.
  • Domain – the layer which contains reusable pieces of code for working with sObjects and is the entry point for handling trigger events.
  • Service – business logic orchestration layer which can be called from anywhere in your application.
  • Unit of work – a pattern for managing transactions on the platform.

In this blog post I’m going to cover how to “stitch” all of those layers together to produce a rock solid code base and have an application structure which is properly set up.

Continue reading “FFLIB – Application structure”

ApexMocks – Argument Capture

In this blog post I’m writing about ApexMocks and one particular feature which I found extremely useful, argument capture. Argument capture can really enhance your unit testing capabilities within FFLIB and ApexMocks based projects.

Continue reading “ApexMocks – Argument Capture”

A really useful plugin for hiding away all of the metadata XML files whilst you’re developing in Sublime 3 is ToggleExclude. Check out the package listing over on PackageControl.io to see how it can really help with helping you focus on the files which matter when developing.

https://packagecontrol.io/packages/ToggleExclude

Below is my configuration file for hiding away Apex class, Trigger, Visualforce Page, Visualforce Component and Lightning Component metadata files.

{
   "conditional_file_exclude_patterns": [
      "*.cls-meta.xml",
      "*.component-meta.xml",
      "*.page-meta.xml",
      "*.trigger-meta.xml",
      "*.cmp-meta.xml"
   ],
   "enabled": true
}

An approach to reusing Lightning Components

In this blog post I’m going to show you how to increase the usability of your Lightning Components in your application by decoupling responsibilities and enforcing separation of concerns.

Continue reading “An approach to reusing Lightning Components”

Create a website or blog at WordPress.com

Up ↑