<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arthur Menezes</title>
    <description>The latest articles on DEV Community by Arthur Menezes (@arthurcrm).</description>
    <link>https://dev.to/arthurcrm</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4004146%2F0482fbfa-ebe1-4e2e-86c7-3714a169f73f.png</url>
      <title>DEV Community: Arthur Menezes</title>
      <link>https://dev.to/arthurcrm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arthurcrm"/>
    <language>en</language>
    <item>
      <title>The 2,000-line Apex class nobody dares to touch</title>
      <dc:creator>Arthur Menezes</dc:creator>
      <pubDate>Fri, 26 Jun 2026 14:58:22 +0000</pubDate>
      <link>https://dev.to/arthurcrm/the-2000-line-apex-class-nobody-dares-to-touch-16k8</link>
      <guid>https://dev.to/arthurcrm/the-2000-line-apex-class-nobody-dares-to-touch-16k8</guid>
      <description>&lt;p&gt;On a recent project I worked with Apex files over 2,000 lines long that nobody fully understood. It got so bad I'd joke with the team that just removing a &lt;code&gt;System.debug&lt;/code&gt; — a line that changes literally nothing — felt like it might break something three processes away.&lt;/p&gt;

&lt;p&gt;The disease is always the same in messy orgs: &lt;strong&gt;there's no shared vocabulary.&lt;/strong&gt; What's a Service? What's a DAO? Where does business logic actually live? Nobody agreed, so every dev did it their way — and two years later nobody touches anything without breaking three other things.&lt;/p&gt;

&lt;p&gt;It's never a talent problem. The people who built it know the business and know Salesforce. What's missing is a convention.&lt;/p&gt;

&lt;p&gt;I wrote down the exact set of patterns I apply when I walk into a new org — Trigger Handler, Service, DAO, Controller and Wrapper — with the before/after Apex for each and how they wire together:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://blog.arthurmenezes.dev/padroes-de-projeto-salesforce?lang=en" rel="noopener noreferrer"&gt;Read the full breakdown here&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Curious where others draw the line between Service and Controller in practice. 👇&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>cleancode</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
