<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeferson Spencer Chaves on Medium]]></title>
        <description><![CDATA[Stories by Jeferson Spencer Chaves on Medium]]></description>
        <link>https://medium.com/@jefersonchaves?source=rss-e102e74d413------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Uk8Piic6T79bGeyk3oOBfw.jpeg</url>
            <title>Stories by Jeferson Spencer Chaves on Medium</title>
            <link>https://medium.com/@jefersonchaves?source=rss-e102e74d413------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:19:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jefersonchaves/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A quick tip: addError on a field]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jefersonchaves.medium.com/a-quick-tip-adderror-on-a-field-be5e351b37de?source=rss-e102e74d413------2"><img src="https://cdn-images-1.medium.com/max/2600/0*E0gqHHjNjFeZA3-X" width="8192"></a></p><p class="medium-feed-snippet">Using addError on an Apex trigger to highlight the field with the error</p><p class="medium-feed-link"><a href="https://jefersonchaves.medium.com/a-quick-tip-adderror-on-a-field-be5e351b37de?source=rss-e102e74d413------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jefersonchaves.medium.com/a-quick-tip-adderror-on-a-field-be5e351b37de?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/be5e351b37de</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-apex]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Thu, 07 Apr 2022 12:53:47 GMT</pubDate>
            <atom:updated>2022-04-07T12:53:47.471Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[My thought process around System Integration]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jefersonchaves.medium.com/my-thought-process-around-system-integration-7b4eb8a1e8a2?source=rss-e102e74d413------2"><img src="https://cdn-images-1.medium.com/max/2600/0*BVAfCslyJ0k375tc" width="5211"></a></p><p class="medium-feed-link"><a href="https://jefersonchaves.medium.com/my-thought-process-around-system-integration-7b4eb8a1e8a2?source=rss-e102e74d413------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jefersonchaves.medium.com/my-thought-process-around-system-integration-7b4eb8a1e8a2?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b4eb8a1e8a2</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[system-integration]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Fri, 12 Mar 2021 18:56:20 GMT</pubDate>
            <atom:updated>2021-03-12T18:56:20.159Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[From C# Developer to Salesforce Developer: Why I Don’t Regret the Move]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/inside-the-salesforce-ecosystem/c-developer-to-salesforce-developer-c0e8d43d3461?source=rss-e102e74d413------2"><img src="https://cdn-images-1.medium.com/max/2600/1*geuVmC4xzvajwFw6lwvO7Q.jpeg" width="3782"></a></p><p class="medium-feed-snippet">Seven years ago, I transitioned to a Salesforce developer.</p><p class="medium-feed-link"><a href="https://medium.com/inside-the-salesforce-ecosystem/c-developer-to-salesforce-developer-c0e8d43d3461?source=rss-e102e74d413------2">Continue reading on AppExchange and the Salesforce Ecosystem »</a></p></div>]]></description>
            <link>https://medium.com/inside-the-salesforce-ecosystem/c-developer-to-salesforce-developer-c0e8d43d3461?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0e8d43d3461</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[trailblazer]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[career-development]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Wed, 09 Sep 2020 14:01:02 GMT</pubDate>
            <atom:updated>2020-09-09T14:01:02.574Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[An Overlooked Piece of Advice]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jefersonchaves.medium.com/an-overlooked-piece-of-advice-bdb2ec250645?source=rss-e102e74d413------2"><img src="https://cdn-images-1.medium.com/max/600/1*wJCNdUMvzywFd2tusvWJFw.jpeg" width="600"></a></p><p class="medium-feed-snippet">Data structure vs Objects</p><p class="medium-feed-link"><a href="https://jefersonchaves.medium.com/an-overlooked-piece-of-advice-bdb2ec250645?source=rss-e102e74d413------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jefersonchaves.medium.com/an-overlooked-piece-of-advice-bdb2ec250645?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdb2ec250645</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[clean-code]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Mon, 27 Jul 2020 10:16:54 GMT</pubDate>
            <atom:updated>2020-07-29T14:24:42.801Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
        </item>
        <item>
            <title><![CDATA[Salesforce DX with GitHub Actions]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jefersonchaves.medium.com/salesforce-dx-with-github-actions-563356e9434e?source=rss-e102e74d413------2"><img src="https://cdn-images-1.medium.com/max/2600/0*7RWWgo0pZ-8nvLiT" width="3353"></a></p><p class="medium-feed-snippet">First impressions</p><p class="medium-feed-link"><a href="https://jefersonchaves.medium.com/salesforce-dx-with-github-actions-563356e9434e?source=rss-e102e74d413------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jefersonchaves.medium.com/salesforce-dx-with-github-actions-563356e9434e?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/563356e9434e</guid>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[sfdx]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Tue, 08 Oct 2019 16:43:43 GMT</pubDate>
            <atom:updated>2019-10-08T16:43:43.835Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Continuation on Lightning Web Components]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://jefersonchaves.medium.com/continuation-on-lightning-web-components-8735b7f37fa1?source=rss-e102e74d413------2"><img src="https://cdn-images-1.medium.com/max/2600/0*afHMwFwu6FoPMLFB" width="4498"></a></p><p class="medium-feed-snippet">Or how to handle synchronous calls with slow backends</p><p class="medium-feed-link"><a href="https://jefersonchaves.medium.com/continuation-on-lightning-web-components-8735b7f37fa1?source=rss-e102e74d413------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://jefersonchaves.medium.com/continuation-on-lightning-web-components-8735b7f37fa1?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/8735b7f37fa1</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-integration]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Thu, 11 Jul 2019 20:15:20 GMT</pubDate>
            <atom:updated>2019-07-11T20:15:20.349Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Breaking the monolith on Salesforce]]></title>
            <link>https://jefersonchaves.medium.com/breaking-the-monolith-on-salesforce-668802a26c85?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/668802a26c85</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Thu, 02 May 2019 19:03:41 GMT</pubDate>
            <atom:updated>2019-05-02T19:52:37.542Z</atom:updated>
            <content:encoded><![CDATA[<h4>Callable Interface</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dMo8mZ1CkBKc7pTk" /><figcaption>Photo by <a href="https://unsplash.com/@lastnameeaster?utm_source=medium&amp;utm_medium=referral">La-Rel Easter</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For many implementations that I worked so far, they tend to become a “Big Ball of Mud” — of course, this is not exclusive to the Salesforce ecosystem, but some challenges are specific. Currently, I work in a product company that is a Salesforce ISV (Independent Software Vendor that ships software using the Salesforce platform).</p><p>Then talking to some colleagues and other fellow software engineers I started to dive deeper into this subject to evaluate: why we get into such trouble? Is this truly a problem? What are the alternatives?</p><h3>Why</h3><p>Because the implementations usually start small and simple, but eventually the companies begin to realise the value they can get from Salesforce, and quickly they become complicated.</p><p>Then due to lack of Salesforce tooling, it was nearly impossible or quite expensive to pay the technical debt.</p><h4>Some workarounds</h4><ul><li>Leveraging the database that would drive business logic through triggers.</li><li>API calls such as REST or SOAP.</li><li>Dynamic instantiation through Type.forname.</li></ul><h3>Is this a problem?</h3><p>Yes but only if you want to scale:</p><ul><li>Have a bigger team working in the product.</li><li>Separate delivery cadences.</li><li>More autonomy to teams.</li><li>Smaller and more frequent deliveries.</li></ul><p>The <a href="https://martinfowler.com/books/continuousDelivery.html">Continuous Delivery book</a> was published in 2010 and articulates why you should deliver frequently - go for it if you are not familiar with the subject. If you are like me, you probably already researched Continuous Deployment — and thus I would highly recommend <a href="https://itrevolution.com/book/accelerate/">Accelerate book</a> to learn more about the data behind high performance IT companies and what capabilities they leverage to do so.</p><h3>Alternative</h3><p>In <a href="https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_apex_callable_interface.htm">Winter’19</a> Salesforce launched an attractive interface named: <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_interface_System_Callable.htm">Callable</a>.</p><p>That allows synchronous loosely-coupled integrations. What?</p><p>Yes, now you can have a class (let’s call it producer) that implements Callable — that is not the point yet. Then you can have another class (consumer) that instantiates the producer class sending the parameters.</p><h4>Benefits</h4><ul><li>The producer can evolve with no limitation around interfaces: means ISVs can deliver Managed Packages without shipping “Global Interfaces” — that is a significant benefit on the sense that they can deprecate code gradually.</li><li>You can plug potentially any class that implements Callable interface in the code path, and as long as they do they respect the agreement made: happy days!</li><li>Means different teams can work in parallel and deliver in a separate cadence.</li></ul><h3>Conclusion</h3><p>I would not advise any small implementation to start with loosely-coupled integrations because there is a price to pay: communication (between the team producing the class and the team consuming it) and engineering practices to support it well. So, monoliths are an excellent way to start given they are easy to build and maintain (on a small scale).</p><p>However, I do advise any significant implementation out there or ISV to consider the usage of Callable interface — for synchronous integrations. And if they are looking for asynchronous integrations: Platform Events, but that is a whole new article.</p><p>Then teams can start to breakdown how they deploy: because they decomposed their dependencies. But that is also another article, a good one, perhaps the next one!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=668802a26c85" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apex Lazy Load Constants]]></title>
            <link>https://jefersonchaves.medium.com/apex-lazy-load-constants-a8e36cd924dd?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8e36cd924dd</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Thu, 11 Apr 2019 15:28:06 GMT</pubDate>
            <atom:updated>2019-04-11T15:44:04.068Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ww8SYEITpZkeN2Am" /><figcaption>Photo by <a href="https://unsplash.com/@freegraphictoday?utm_source=medium&amp;utm_medium=referral">AbsolutVision</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Just a quick note to talk about a pattern to lazy load constants (similar to an old question in <a href="https://salesforce.stackexchange.com/questions/180957/best-way-to-code-large-static-maps-in-apex">Stackoverflow</a>).</p><h4>Problem</h4><p>Sometimes you have a class full of constants and some of those are resource intensive (CPU or memory).</p><h4>Solution</h4><p>Lazy load those constants:</p><pre>public static final Map&lt;String, String&gt; ISO_TO_SYMBOL {<br>  get {<br>   if (ISO_TO_SYMBOL == null) {<br>    ISO_TO_SYMBOL = new Map&lt;String, String&gt;{<br>     &#39;USD&#39; =&gt; &#39;$&#39;,<br>     &#39;CAD&#39; =&gt; &#39;$&#39;,<br>     &#39;EUR&#39; =&gt; &#39;€&#39;,<br>     &#39;GBP&#39; =&gt; &#39;£&#39;,<br>     &#39;JPY&#39; =&gt; &#39;¥&#39;,<br>     &#39;KRW&#39; =&gt; &#39;₩&#39;,<br>     &#39;CNY&#39; =&gt; &#39;元&#39;<br>    };<br>   }<br>   return ISO_TO_SYMBOL;<br>  }<br>  set;<br> }</pre><h4>Benefits</h4><ol><li>Assure the static instance is never changed: constant.</li><li>Load the map only if requested: lazy load.</li></ol><h4>Drawback</h4><ol><li>More convoluted code.</li></ol><h4>Question</h4><p>Is this a supported pattern or just a corner case? Asking because have not found an example online.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8e36cd924dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining SFDX on Jenkins]]></title>
            <link>https://jefersonchaves.medium.com/streamlining-sfdx-on-jenkins-114f4098166?source=rss-e102e74d413------2</link>
            <guid isPermaLink="false">https://medium.com/p/114f4098166</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[salesforce-dx]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Jeferson Spencer Chaves]]></dc:creator>
            <pubDate>Thu, 28 Mar 2019 10:02:12 GMT</pubDate>
            <atom:updated>2019-03-28T10:15:56.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_57yiNuK1VEcubfGocPaA.jpeg" /><figcaption>Jenkins + Salesforce DX = ❤</figcaption></figure><p>If you use <a href="https://jenkins.io/">Jenkins</a> as a CI tool and want to streamline the process to build and test the <a href="https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htm">Salesforce DX</a> project, this <a href="https://github.com/claimvantage/sfdx-jenkins-shared-library">library</a> is for you.</p><h4>Motivations</h4><p>Salesforce did their job and provided a helpful walkthrough including a <a href="https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ci_jenkins_code.htm">sample Jenkinsfile</a>, but in my experience, that was not enough.</p><p>I realised this was not enough while assisting on migrating projects for customisation and managed packages at the company I work for — <a href="https://claimvantage.com/">ClaimVantage</a> — and we felt that we should address the following:</p><ol><li>Avoid duplication (we started with 76 lines but quickly jumped to 171 lines and mostly was performing the same tasks)</li><li>Simplify testing against multiple organisation configurations (really useful for ISVs like us)</li><li>Easy to understand (developers should be able to understand what is happening during the build quickly)</li></ol><h4>Solution</h4><p>We created a <a href="https://jenkins.io/doc/book/pipeline/shared-libraries/">Shared Library</a> for Jenkins that can solve the problems mentioned above and as a bonus helped us to drive some standards (such as simplifying the installation of managed packages, reporting multiple test executions, etc.).</p><p>Look below how simple that can become:</p><pre>#!groovy<br>@Library(&#39;sfdx-jenkins-shared-library&#39;)_</pre><pre>sfdxBuildPipeline()</pre><p>The library is called <a href="https://github.com/claimvantage/sfdx-jenkins-shared-library">Salesforce DX — Jenkins Shared Library</a> and is open-source, which means you can use it today on your projects: if you are an ISV, a Customer or a Consultant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*nNXn9XF8WqCr2Z1KxvUcGg.png" /></figure><p>The build from the image above contains six different configurations, and they are all executed in parallel.</p><h4>What’s next?</h4><p>My next plans for the library are (feel free to join and propose new changes):</p><ol><li>Second-generation packaging.</li><li>Retrieve package installation keys from Credentials using a pattern.</li></ol><h4>Conclusion</h4><p>The main aim of this article is to spread the word about the <a href="https://github.com/claimvantage/sfdx-jenkins-shared-library">SFDX — Shared Library</a>. I would love to know if people would like me to write more articles on challenges we faced and how solved some of them, and how to use the library in more complex scenarios such as creating communities, setup platform encryption, etc. Let me know in the comments below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=114f4098166" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>