Blogs
-
Custom Metadata Types For Parameterized Dependency Injection
Implementing dependency injection through Custom Metadata Types is an effective approach for crafting Salesforce code that is easily extensible. Even in cases where the design may not undergo extensions (perhaps due to a client with unchanging requirements), this method proves valuable by promoting the separation of concerns and compelling dependencies to be modularized, aligning well…
-
Clean Code Emphasizes The Comparison Between Code And Comments.
As developers, it is our duty to ensure that the code we produce is easily comprehensible, especially by fellow developers who may inherit or collaborate on our code. Additionally, we should write code in a manner that allows us to understand it when we revisit it in the future. This is where comments play a…
-
Preventing Recursive Triggers in Salesforce Apex Code
Apex Recursive Trigger In this blog post, we’ll explore methods to circumvent recursive triggers in Apex code. Salesforce advises having a solitary trigger for a specific object, primarily due to the unpredictability of trigger occurrence sequences. Salesforce provides various tools for automating business processes, including Workflow, Process Builder, and ultimately, APEX classes. What Constitutes Recursion?…