<?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: Cameron Hayden</title>
    <description>The latest articles on DEV Community by Cameron Hayden (@hayden_86).</description>
    <link>https://dev.to/hayden_86</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%2F4211037%2F3694b3d9-ec66-4c0b-8cfe-d971d2f5a36f.jpg</url>
      <title>DEV Community: Cameron Hayden</title>
      <link>https://dev.to/hayden_86</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hayden_86"/>
    <language>en</language>
    <item>
      <title>KMP on a real app: the first shared module</title>
      <dc:creator>Cameron Hayden</dc:creator>
      <pubDate>Tue, 27 Oct 2026 15:52:14 +0000</pubDate>
      <link>https://dev.to/hayden_86/kmp-on-a-real-app-the-first-shared-module-59ba</link>
      <guid>https://dev.to/hayden_86/kmp-on-a-real-app-the-first-shared-module-59ba</guid>
      <description>&lt;p&gt;We just shipped our first Kotlin Multiplatform module in a real app. It's small — models, validation, and a bit of networking — but it's in production.&lt;/p&gt;

&lt;p&gt;What I'd tell someone starting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start with a module that has no UI dependencies&lt;/li&gt;
&lt;li&gt;Write the tests in shared code from day one&lt;/li&gt;
&lt;li&gt;Keep platform-specific code behind interfaces, not &lt;code&gt;expect/actual&lt;/code&gt; everywhere&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The biggest win was validation: one implementation, same behavior on both platforms, one place to fix bugs.&lt;/p&gt;

&lt;p&gt;The biggest surprise was build times. They're noticeable, and they add up in CI.&lt;/p&gt;

&lt;p&gt;Next step is sharing some state-management logic. I'm being cautious about that one — UI-adjacent code is where shared modules get messy.&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>mobile</category>
      <category>multiplatform</category>
    </item>
  </channel>
</rss>
