<?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 Alexandre Cools on Medium]]></title>
        <description><![CDATA[Stories by Alexandre Cools on Medium]]></description>
        <link>https://medium.com/@alexandrecools?source=rss-1e0c05bc2374------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ILumyarberbt0PtbnQ6MKg@2x.jpeg</url>
            <title>Stories by Alexandre Cools on Medium</title>
            <link>https://medium.com/@alexandrecools?source=rss-1e0c05bc2374------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:23:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexandrecools/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[The Key Principles Behind the Architecture I’m Aiming For]]></title>
            <link>https://alexandrecools.medium.com/the-key-principles-behind-the-architecture-im-aiming-for-0fd9912e3e07?source=rss-1e0c05bc2374------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fd9912e3e07</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[swiftui]]></category>
            <dc:creator><![CDATA[Alexandre Cools]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 19:02:05 GMT</pubDate>
            <atom:updated>2025-11-07T19:02:05.189Z</atom:updated>
            <content:encoded><![CDATA[<p>I don’t think there’s such a thing as a <em>perfect</em> architecture.</p><p>There are always trade-offs to make — what matters is choosing the right ones for your context. And, of course, what’s important varies from one developer to another.</p><p>Some are obsessed with testability. Others want everything neatly split across Swift Packages. And sometimes… we kind of want <em>everything</em> at once 😅</p><p>As for me, I wanted to take a step back and list what really matters to <em>me</em>: what I’d like to have in an ideal setup, what I’d rather avoid, and how much each of these things might <em>actually</em> cost — in time, complexity, or flexibility.</p><p>In short, I want to lay out the key criteria that feel important, but with nuance: some are worth enforcing, others maybe not.</p><h3>✅ What I’d Like to Have</h3><ul><li><strong>Testable business logic</strong> — being able to test important logic when needed, without feeling like <em>everything</em> must be tested.</li><li><strong>Simplicity</strong> — code that’s easy to read, easy to understand, and doesn’t require a diagram just to follow the flow.</li><li><strong>Fast iteration</strong> — being able to ship a basic CRUD in a few hours, not a week.</li><li><strong>Reactive updates</strong> — when something changes in the database or a model, the UI should reflect it naturally.</li><li><strong>Smaller, focused files</strong> — I’m not against having some logic inside a view, as long as it’s scoped and directly related to what the view does. The goal is to avoid giant 1,000-line views mixing layout, data flow, and unrelated business logic.</li><li><strong>Feature modularity</strong> — the ability to extract parts of the app into separate SPM modules when it makes sense.</li><li><strong>Evolutive structure</strong> — no months-long refactors just to introduce a new feature.</li></ul><h3>❌ What I’d Rather Avoid</h3><ul><li><strong>The over-engineered monster</strong> — an architecture doing a thousand things, half of which are never used, “just in case”.</li><li><strong>Too many layers to get simple stuff done</strong> — no need to go through five files just to add a value to UserDefaults or Storage.</li><li><strong>Dogmatic rules</strong> — not everything needs a ViewModel or a Repository. It should be logical, not mandatory.</li><li><strong>Code duplication</strong> — business logic should live in one place and be easily reusable, not copy-pasted everywhere.</li><li><strong>Pointless abstractions</strong> — if a protocol only exists because “we might have multiple implementations one day”, it’s probably a bad idea.</li><li><strong>UIKit nostalgia</strong> — we’re using SwiftUI for a reason. Let’s not recreate UIKit with declarative syntax.</li></ul><p>Overall, I think most of the things I’m aiming for are what most developers want too. The real challenge now is figuring out <em>how</em> to make it work — without falling back into the traditional architectures that caused me trouble in the first place.</p><p>At the end of the day, what I’m really looking for is an architecture that simply <strong>feels right</strong> — one that lets me move fast, keeps the code clear, and plays nicely with SwiftUI’s philosophy.</p><p>It doesn’t need to be perfect or universal, just something that fits <em>the way I build apps</em>.</p><p>Next, I’ll start turning these ideas into something more tangible — experimenting, testing, and seeing what actually works in practice.</p><p>As always, if you have thoughts, different perspectives, or even strong disagreements, I’d love to hear them. That’s how we all grow and refine our craft.</p><p>Until next time — happy coding 👩‍💻👨‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fd9912e3e07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI: What if we started from scratch?]]></title>
            <link>https://alexandrecools.medium.com/swiftui-what-if-we-started-from-scratch-04effaa0bfbd?source=rss-1e0c05bc2374------2</link>
            <guid isPermaLink="false">https://medium.com/p/04effaa0bfbd</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[mobile-apps]]></category>
            <dc:creator><![CDATA[Alexandre Cools]]></dc:creator>
            <pubDate>Wed, 05 Nov 2025 19:02:00 GMT</pubDate>
            <atom:updated>2025-11-05T19:02:00.635Z</atom:updated>
            <content:encoded><![CDATA[<p>Since SwiftUI came out, I’ve tried quite a few ways to structure an app — MVVM (with all its use cases, repositories, and other layers), TCA, and a few custom hybrids along the way.</p><p>And every single time, I’ve run into the same points of friction:</p><ul><li>Spending way too much time updating a simple value, just because it has to go through every layer of the architecture.</li><li>Passing data through multiple layers, often via “middleman” objects that end up introducing observation bugs.</li><li>Debugging turning into a full-blown obstacle course, with more and more layers and lines of code piling up.</li><li>Overly complex component creation — structs with a dozen parameters just to make something work.</li><li>And plenty of other small annoyances along the way.</li></ul><p>Long story short, no SwiftUI architecture has really won me over so far.</p><p>Too often, it feels like I’m making compromises for unclear benefits — mostly trying to apply UIKit thinking to something that was never meant for it.</p><h3>Starting from Scratch</h3><p>The idea behind this series of articles is to step back and rethink what really matters in a modern, pragmatic SwiftUI architecture.</p><p>I’ll start from the simplest possible foundation: <strong>a SwiftUI view, and nothing else</strong>. No view models. No business layer. No use cases. Just the view.</p><p>As the project grows and real needs appear, I’ll add structure only where it makes sense.</p><p>The goal? To find a balance between <strong>simplicity, clarity, and scalability</strong>, without falling into over-engineering.</p><p>I’m not claiming to have <em>the truth</em> — far from it.</p><p>What I want is to challenge our assumptions, question the “standard” approaches, and experiment with something lighter, more modern, and hopefully just as solid.</p><p>And if, along the way, I realize some ideas don’t hold up, I’ll be the first to say so.</p><h3>What’s Next?</h3><p>If this topic resonates with you — or even if you totally disagree (kindly 😄) — I’d love to hear your thoughts in the comments.</p><p>Next step: defining what a <em>“good”</em> SwiftUI architecture should really provide. What are the <strong>non-negotiable foundations</strong> that make it solid? And what are the <strong>nice-to-haves</strong> that are cool but not essential?</p><p>See you soon for the next part — and until then, happy coding! 👩‍💻👨‍💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04effaa0bfbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>