<?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 Rémy Baudet on Medium]]></title>
        <description><![CDATA[Stories by Rémy Baudet on Medium]]></description>
        <link>https://medium.com/@remy.baudet?source=rss-9b7a12c8c2da------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*54qmbNO3fYPJOHuLxbsyFQ.jpeg</url>
            <title>Stories by Rémy Baudet on Medium</title>
            <link>https://medium.com/@remy.baudet?source=rss-9b7a12c8c2da------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:34:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@remy.baudet/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 Inverse Conway Maneuver, in the Agentic Era]]></title>
            <link>https://medium.com/@remy.baudet/the-inverse-conway-maneuver-in-the-agentic-era-2c4b8309bb9d?source=rss-9b7a12c8c2da------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c4b8309bb9d</guid>
            <dc:creator><![CDATA[Rémy Baudet]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 23:16:40 GMT</pubDate>
            <atom:updated>2026-10-11T23:16:40.510Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iQzCIDBa1WIBp86M" /></figure><p>At OncoHealth, when we set out to build Iris Oncology from zero, one of the first decisions I made wasn’t technical. It was organizational. I used the “inverse Conway maneuver”, deliberately designing our team structure to produce the system architecture we wanted, rather than letting the architecture emerge from whatever team structure we happened to have. Team Topologies gave me the language for it: draw the team boundaries first, and the system boundaries will follow.</p><p>It worked. I was managing three teams, and the platform’s architecture, mobile-first, cloud-native, feature-oriented, mapped cleanly onto how they were organized, because I’d designed it that way on purpose instead of discovering it by accident eighteen months in.</p><p>I’ve been thinking about that experience again lately, because at Very Good Ventures , building an agentic engineering practice around Claude Code, I’ve run into a version of the same problem with a twist nobody warned me about: the “team” now includes a member that doesn’t have a Slack channel.</p><p>Conway’s Law, in its original form, says a system’s design mirrors the communication structure of the organization that built it. That’s a statement about people: who talks to whom, who has to sync before shipping, where the friction of coordination naturally is.</p><p>Coding agents don’t have communication boundaries in that sense. They don’t get tired of meetings, they don’t guard territory, they don’t need convincing. What they have instead is a context boundary: how much of a codebase they can hold and reason about safely at once, how confidently they can make a change without silently breaking something elsewhere in the codebase that never entered their reasoning.</p><p>That’s a different kind of constraint, but it turns out to matter for exactly the same reason the human version did. If you don’t deliberately design around it, the system will still take a shape, just not one anybody chose.</p><p>And the mirror itself still holds. With agents, the communication structure is how you split and hand off the work: what each sub-agent is asked to own, what context it gets, where its output merges back. The codebase ends up mirroring that orchestration.</p><p>Here’s where the analogy goes further than I expected. A stream-aligned team, in Team Topologies terms, owns a slice of the product end to end. It isn’t split by layer, but it isn’t made of interchangeable generalists either. Inside the team, people bring different expertise. Someone’s most comfortable in the data layer, working closely with the backend developers and the API contracts. Someone else lives in the presentation layer, pairing tightly with the designer, thinking in components and states. That’s not a weakness of the team, it’s how a good team divides real complexity into ownable pieces while still shipping a whole feature together.</p><p>The agent skills I’ve built work the same way, and I didn’t fully appreciate that until I saw it happen. The Figma-to-Flutter skill I built is, in effect, a specialist that works closely with design, the same way a front-end-leaning engineer would: it reads a design system, reasons about tokens and components, and produces the presentation layer. The Native Codebase Analyzer, which I’ll come back to, is a different kind of specialist entirely, one that lives in the structure of a legacy system rather than in a design file. Neither one is a generalist trying to do everything. Each is scoped to the part of the system where it can reason well, the same way I’d want the right expert on a stream-aligned team.</p><p>That’s the part of the inverse Conway maneuver that transfers directly: the team still owns a stream of work end to end, and you’re still deciding who (or what) brings which expertise to it, then drawing the architecture to match.</p><p>When I proposed Feature-First Clean Architecture at VGV, it wasn’t designed for agentic development. I framed it in terms of code quality and maintainability: each feature isolated into its own package, with clear boundaries and minimal cross-feature coupling. It became an AI-ready monorepo pattern later, once agents were part of the daily work. It’s only in hindsight that I’ve come to see it as something closer to an inverse Conway maneuver, just applied to a wider set of collaborators.</p><p>Each feature package in FFCA happens to be sized to roughly what a sub-agent can own end-to-end, implement, test, and reason about, without needing to track everything happening elsewhere in the codebase. I didn’t set out to design for agent context windows specifically. But an architecture that gives a human engineer a clean, isolated unit of ownership turns out to give an agent almost exactly the same thing.</p><p>That’s not a coincidence, once you look at it through the Conway lens. Good team boundaries and good agent boundaries are answering the same underlying question: how much can one actor safely own before the coupling gets dangerous?</p><p>The clearest example I have is the Native Codebase Analyzer I built for a native-to-Flutter migration. Its job, described plainly, is to compress weeks of manual codebase analysis into hours. Described through this lens, its actual job is to draw the Conway map of a legacy system, finding where the real seams are, before deciding how to split the migration work across parallel sub-agents.</p><p>Skip that step, and you get what I’ve started calling silent Conway drift: agents working across features with no deliberately drawn boundaries, quietly stepping on each other’s assumptions, producing merge conflicts and architectural drift that nobody chose and nobody notices until it’s expensive to unwind. It’s the same failure mode Conway originally described in human teams, a system shaped by whoever happened to be in the room, just moving faster now because an agent doesn’t need a sprint to make the mistake.</p><p>The inverse Conway maneuver used to mean one thing: design your team structure deliberately, so the architecture you get is the one you actually wanted. I think it now means something broader: design boundaries so every collaborator, human or agent, gets a scope it can own safely and a specialty it can be good at.</p><p>Same principle. One more kind of teammate to design for.</p><p>P.S. This article was co-written with Claude. The experiences and opinions are mine, and the AI helped with structure and editing. The cover image was generated with Gemini.</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/inverse-conway-maneuver-agentic-era-r%C3%A9my-baudet-wqosf/"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c4b8309bb9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[For years I told my wife it would take too long. Last weekend I built it.]]></title>
            <link>https://medium.com/@remy.baudet/for-years-i-told-my-wife-it-would-take-too-long-last-weekend-i-built-it-38fdff124a61?source=rss-9b7a12c8c2da------2</link>
            <guid isPermaLink="false">https://medium.com/p/38fdff124a61</guid>
            <dc:creator><![CDATA[Rémy Baudet]]></dc:creator>
            <pubDate>Sun, 11 Oct 2026 23:16:01 GMT</pubDate>
            <atom:updated>2026-10-11T23:16:01.250Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*taOlTcKaY2yjNVhC" /></figure><p>For years my wife asked me to build the software for her business. And for years I gave her the same answer. As a side project, squeezed around everything else, it would take me months I did not have. So it sat on the someday list and stayed there.</p><p>Last weekend it came off that list. I built it in two days.</p><p>My wife’s business is ewaera . She is a personal stylist who helps women and men find their own style and the confidence that comes with it. The name carries that idea. In Yoruba, “ewa” means beauty and “ara” means style. Put together they point at a new era of beauty and style, the kind you wear out into the world and feel like yourself in.</p><p>What I built for her is Ewaera Stylebook: a clipping tool and a public lookbook. Laëtitia clips products from across the web, curates them into looks for each client, and shares a lookbook the client can open on their phone.</p><p>Under the hood it is a Flutter monorepo: three apps on one Supabase backend. There is an iOS app where she does the clipping and curation, an admin web app for managing clients and items and looks, and a public web lookbook her clients view and share.</p><p>What changed was not my free time. It was the tooling. Three things did the heavy lifting: Claude Code, the open-source Claude Code plugins from Very Good Ventures — VGV AI Flutter Plugin and VGV Wingspan, and Feature-First Clean Architecture (or FFCA).</p><p>Claude Code handled the work that used to bury a side project before it got interesting. The scaffolding, the wiring, the boilerplate, the tenth version of a form and a list. I described what I wanted and reviewed what came back instead of typing every line.</p><p>The VGV plugins gave that work shape. Instead of an AI improvising a structure I would regret in a month, the code landed in a layout a real Flutter team would recognize, with the linting and conventions VGV ships in the open. Speed is worthless if you cannot read your own codebase a week later.</p><p>Feature-First Clean Architecture is the piece that made the speed safe. Each feature lives in its own slice, split cleanly into domain, data, and presentation. The model and I worked from the same map, so adding the next feature never meant untangling the last one. Three apps grew side by side without turning into a knot.</p><p>The weekend felt different from how I expected. I spent almost no time fighting setup and most of it making decisions: what each app should do and what to leave for later. I was building, not configuring.</p><p>The takeaway I am keeping is simple. The distance between “that would take too long” and “it’s done” got a lot shorter. Things I had written off as not worth the evenings are suddenly worth a weekend.</p><p>You can see ewaera at ewaera.com and @ewaerastyle. If you have a project you have been putting off for years, or a partner who has been waiting just as long, this might be the weekend you finally ship it!</p><p><em>Originally published at </em><a href="https://www.linkedin.com/pulse/years-i-told-my-wife-would-take-too-long-last-weekend-r%C3%A9my-baudet-s4qnc/"><em>https://www.linkedin.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38fdff124a61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Caldense — Building an AI-First SaaS in Dart: A Phase 0 Retrospective]]></title>
            <link>https://medium.com/@remy.baudet/caldense-building-an-ai-first-saas-in-dart-a-phase-0-retrospective-12e3a87ee2d6?source=rss-9b7a12c8c2da------2</link>
            <guid isPermaLink="false">https://medium.com/p/12e3a87ee2d6</guid>
            <category><![CDATA[ai-first]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Rémy Baudet]]></dc:creator>
            <pubDate>Sun, 22 Feb 2026 06:08:53 GMT</pubDate>
            <atom:updated>2026-02-22T06:12:01.372Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How spike-driven development helped me validate Caldense — and change my mind about the architecture along the way.</em></p><p>I wanted to build a tool to automatically color-code Google Calendar events. Simple idea, clear value, small scope. The first thing I did was open Claude Desktop and start brainstorming.</p><p>The product brief that came out of that session was good. Clear problem, clear solution, phased roadmap. But the first implementation plan suggested jumping straight into Phase 0: build the cloud service, set up Firebase Auth, deploy to Cloud Run, the full thing. Reasonable advice on paper — but something felt off.</p><p>I had real unknowns. Could Dart actually talk to Google Calendar? Would server-side OAuth work the way I expected? How does multi-user token management behave in practice? Committing to a full cloud architecture before answering those questions seemed like building on sand. So I pushed back, proposed a spike-driven approach, and kept myself as the human in the loop — reviewing each spike’s findings before deciding whether to proceed. Three spikes, clear go/no-go criteria at each step, architecture decisions earned rather than assumed.</p><h3>Why Dart, and Why It Matters More Than It Sounds</h3><p>I chose Dart as the backend language for a specific reason: I planned a monorepo with a Flutter frontend targeting web first, then mobile, then potentially desktop. Sharing one language across client and server eliminates an entire category of friction. Business logic lives in caldense_core, imported by both the backend and the Flutter app. No translation layer, no duplicated models.</p><p>There’s a second, less obvious reason this matters. When most of your code is generated by an AI coding assistant, a monorepo with a single language becomes even more powerful. The model has full context across the entire codebase — domain models defined once in caldense_core flow naturally into API handlers and the Flutter UI, without mental overhead or translation. I&#39;d call this <strong>AI-First development</strong>: designing the architecture to maximize the leverage of AI-generated code, not just using AI as a faster typist.</p><p>The risk was that Dart’s server-side ecosystem is thinner than Node or Python. The spikes were designed to answer that question directly.</p><h3>Spike 1: Can Dart Talk to Google Calendar?</h3><p>The first spike was about feasibility: authenticate with Google Calendar, read events, apply colors based on rules, structure the code for reuse. I expected auth to be the hard part.</p><p>The googleapis and googleapis_auth packages completely changed the picture. clientViaUserConsent() handled the entire OAuth dance — opening the browser, spinning up a local callback server, exchanging the authorization code, returning an authenticated client — in about 30 lines. Token refresh came for free via autoRefreshingClient(). What I&#39;d modeled as medium risk evaporated.</p><p>The googleapis package provides a fully typed CalendarApi: no manual JSON parsing, no guessing at field names. The rules engine — matching events by title keywords, applying priority ordering — was about 100 lines of well-tested Dart. By end of spike, the CLI could scan 45 events, identify which ones matched rules, and patch their colors. Dry-run mode previewed changes before applying them. Everything worked.</p><p>The decision to start with a CLI rather than jumping to the cloud was also validated here: debugging locally with fast iteration and readable stdout was far easier than it would have been through Cloud Run logs. The caldense_core package produced here runs unchanged in the cloud service.</p><p><strong>Go.</strong></p><h3>From Cloud Deployment to Multi-User Auth</h3><p>Spikes 2 and 3 moved from proving the concept to proving the architecture.</p><p><strong>Spike 2</strong> answered the Cloud Run question: Dart on Cloud Run works. AOT-compiled cold starts were fast, the free tier (2 million requests/month) comfortably covered 100 users on 5-minute sync intervals, and the shelf + shelf_router combination was minimal and pleasant. The POST /sync endpoint reused caldense_core almost unchanged. Cloud Scheduler triggered it reliably over 24 hours with no token refresh failures. No caveats, no surprises.</p><p><strong>Spike 3</strong> was the most interesting, and produced the most consequential architecture change.</p><p>The original plan called for two separate OAuth flows: Firebase Auth for user identity, then a separate Google Calendar OAuth consent for API access. Technically correct reasoning — they are distinct concerns — but during implementation it became obvious this was unnecessary complexity. A single OAuth flow with combined scopes achieves both at once:</p><pre>static const scopes = [<br>  &#39;openid&#39;,<br>  &#39;email&#39;,<br>  &#39;profile&#39;,<br>  &#39;https://www.googleapis.com/auth/calendar.events&#39;,<br>];</pre><p>One consent screen. One token exchange. The id_token in the response establishes user identity; the refresh_token grants ongoing calendar access. The UX concern I&#39;d anticipated — two redundant consent screens — disappeared entirely. The jose package handled JWT validation against Google&#39;s public keys directly, more reliably than the dart_firebase_admin bindings I&#39;d initially planned on.</p><p>By end of Spike 3, per-user sync worked with two separate test accounts, independent tokens, and no data leakage between users. Token revocation was handled gracefully: invalid_grant caught, Firestore status updated, re-auth prompt returned to the client.</p><p>The best architecture decisions during the spikes were the ones I changed. Keeping myself as the human in the loop created the space to make them.</p><p><strong>Go.</strong></p><h3>Claude Code for Infrastructure: The Underestimated Gain</h3><p>Claude Code wasn’t just useful for generating Dart code. It became the primary interface for managing infrastructure throughout the spikes — through MCP servers for GCP, Firebase, and PostHog.</p><p>Cloud project setup, API enablement, OAuth consent screen configuration, Cloud Run deployments, Firestore security rules, Cloud Scheduler wiring, PostHog instrumentation: all of it happened within the same session as the code. No context switching to the console. No cross-referencing documentation tabs.</p><p>Code generation gets all the attention in conversations about AI-assisted development. Infrastructure management might be where the real day-to-day productivity gain is — especially for solo developers or small teams, where the same person writes the code and manages the infra. The mental model shift is real: infrastructure stops being a separate discipline and becomes part of the same conversation as the product.</p><h3>PostHog: One Tool, Multiple Roles</h3><p>Early on I consolidated around PostHog for observability, analytics, and eventually feature flags and experiments — rather than stitching together separate tools for each.</p><p>The first use was structured logging. Cloud Run captures stdout automatically, but PostHog gives a proper UI for querying logs, filtering by user or request ID, and alerting. The PostHogLogger in the Dart backend batches events asynchronously and sends them as server_log events with level, message, and structured context. Logging failures never block request handling. Setting it up via the PostHog MCP server in Claude Code took minutes.</p><p>The same tool will handle product analytics when the Flutter frontend ships — the official posthog_flutter package supports web, iOS, and Android from a single codebase. And when it&#39;s time to run pricing experiments or test different onboarding flows, PostHog handles that too. One integration, one free tier (1 million events per month), and the cost doesn&#39;t become relevant until well after the product is generating revenue.</p><h3>System Architecture</h3><p>Here’s what’s running at caldense.app:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTrA1KREDOMW8MKJG6mt5Q.png" /><figcaption>C4 Model Diagram — Level 2</figcaption></figure><p>A single Cloud Run service handles everything: API endpoints and the web UI. Firestore stores user profiles, calendar tokens, rules, and feedback. Secrets are resolved at runtime from Secret Manager. CI/CD runs via GitHub Actions with Workload Identity Federation for keyless GCP authentication.</p><p>The web UI is deliberately simple, vanilla HTML/JS/CSS, no framework, served directly from Cloud Run. Users can manage their own rules, add conditions, and trigger syncs manually. Flutter comes in next phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HRrFqfNehVPBz1F1fUAEkA.png" /></figure><h3>What I’d Do Differently</h3><p>The single most important lesson: the move from a two-step OAuth flow to a single combined flow was obvious in retrospect and took too long to arrive at. The instinct to keep things simple is usually right. The spikes created the space to act on it — but I could have asked the simplification question explicitly at the design stage rather than discovering it during implementation.</p><p>More broadly: the spike-driven approach was right, but I arrived at it by pushing back on an AI-generated plan by instinct rather than by having a deliberate process. Worth making that process explicit from the start of any new project: what are the real unknowns, what’s the minimum experiment to resolve each one, what’s the go/no-go criteria?</p><h3>The Bigger Picture</h3><p>Three spikes, roughly a week of focused sessions, and the core questions are answered. Dart on Cloud Run works. The monorepo bet is paying off — caldense_core written in Spike 1 runs unchanged across CLI, cloud, and will run again in the Flutter frontend. The AI-First architecture means the coding assistant has full context across every layer as the product grows. That&#39;s a design choice, not an accident.</p><p>The remaining questions are product questions: do real users find it useful, and what’s the right price to charge? PostHog will help answer both.</p><p>Those are more interesting questions than the technical ones. Time to find out.</p><p><em>Next: onboarding the first testers and starting the Flutter frontend!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12e3a87ee2d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Flutter App with Claude Code and Feature-First Clean Architecture]]></title>
            <link>https://medium.com/@remy.baudet/building-a-flutter-app-with-claude-code-and-feature-first-clean-architecture-fa89fe5aa58b?source=rss-9b7a12c8c2da------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa89fe5aa58b</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Rémy Baudet]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 03:48:37 GMT</pubDate>
            <atom:updated>2025-07-12T04:03:27.435Z</atom:updated>
            <content:encoded><![CDATA[<h3>How AI-Powered Development and FFCA Principles Accelerated Mobile App Creation from Concept to Implementation</h3><p>When my son’s school introduced a QR code-based pickup system, it presented the perfect real-world challenge to explore how AI could streamline mobile app development. The result? LiveSpotAlert — an iOS Flutter application that uses geofencing to trigger Live Activities displaying a QR code. Spoiler Alert: The app is not complete yet!</p><p>What made this project truly exciting was how Claude Code, Anthropic’s AI-powered development assistant, combined with Feature-First Clean Architecture (FFCA) principles, enabled rapid prototyping — transforming an idea into a working app in hours, not weeks.</p><blockquote>Read my first article on this topic:<br><a href="https://medium.com/@remy.baudet/feature-first-clean-architecture-for-flutter-246366e71c18">https://medium.com/@remy.baudet/feature-first-clean-architecture-for-flutter-246366e71c18</a></blockquote><h3>🎯 Goals</h3><p><strong>Accelerate Development Velocity</strong></p><ul><li>Transform architecture concepts into production-ready code within hours</li><li>Eliminate repetitive boilerplate through AI assistance</li><li>Maintain consistent code quality and structure</li></ul><p><strong>Validate FFCA in Practice</strong></p><ul><li>Apply FFCA to a real-world mobile scenario</li><li>Demonstrate scalable folder structures for complex features</li><li>Implement clean separation of concerns with isolated dependencies</li></ul><p><strong>Explore AI-Human Collaboration</strong></p><ul><li>Leverage Claude Code for architectural planning and implementation</li><li>Identify efficient workflows for AI-assisted development</li><li>Capture lessons learned for future projects</li></ul><h3>🚀 The Challenge: Complex Mobile Requirements</h3><p>Building LiveSpotAlert required tackling several advanced mobile features:</p><ul><li><strong>Geofencing</strong>: Background location monitoring via flutter_background_geolocation</li><li><strong>Live Activities (iOS</strong>): Real-time widgets triggered by location events</li><li><strong>QR Code &amp; Media Handling</strong>: Dynamic image display</li><li><strong>State Management</strong>: Seamless flow from geolocation to UI</li><li><strong>Clean Architecture</strong>: Maintainable and scalable code from day one</li></ul><p>Traditionally, this would mean:</p><ul><li>Days of planning and boilerplate</li><li>50+ files and folders manually created</li><li>Manual setup of routing, themes, and state management</li></ul><h3>🤖 Enter Claude Code</h3><p>Claude Code compressed days of work into a streamlined 2-hour process.</p><h4>Phase 1: Architectural Planning</h4><p>Prompt:</p><blockquote>“I would like to create a mobile application using Flutter that would display a live activity on iOS, when arriving at a specific location. That live activity would be configurable to display an image like a QR code.”</blockquote><p>Response:</p><ul><li>Full architectural breakdown</li><li>Technology stack recommendations</li><li>Visual flow diagrams</li></ul><h4>Phase 2: FFCA Structure Implementation</h4><p>After sharing my FFCA article, Claude:</p><ul><li>Designed a custom folder structure</li><li>Generated directory hierarchy</li><li>Created base classes and shared utilities</li></ul><p>Generated Structure:</p><pre>lib/<br>├── apps/live_spot_alert/      # Main app composition<br>├── shared/                    # Shared utilities and base classes<br>│   ├── base_domain/           # Domain base classes<br>│   ├── base_data/             # Data layer base classes<br>│   ├── utils/                 # Common utilities<br>│   ├── ui_utils/              # Flutter-specific utilities<br>│   └── ui_kit/                # Design system components<br>└── features/                  # Feature modules<br>├── geofencing/                # Location monitoring<br>├── live_activities/           # iOS Live Activities<br>└── media_management/          # Image and QR code handling</pre><h4>Phase 3: Foundation Implementation</h4><p>Claude Code also generated:</p><ul><li><strong>pubspec.yaml</strong> with required dependencies</li><li><strong>Domain-layer</strong> abstractions and failures</li><li><strong>Shared utilities</strong> (constants, themes, logging)</li><li><strong>Navigation setup</strong> using GoRouter</li><li><strong>BLoC-based</strong> state management</li><li><strong>Material 3</strong> theme integration</li></ul><h3>📱 Flutter Project and GitHub</h3><p><strong>Building and Running the App</strong></p><p>Once the project generated, I opened it with Intellij IDEA (my favorite IDE!), it compiled correctly but there was an error when I tried to run the app in Debug mode. I was able to fix the issue, related to the initiation of BLoC and then I was able to run the generated app in the iOS Simulator!</p><p>I didn’t asked Claude to use any specific theme so it picked Material, which is the default for Flutter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*FYaWFCgDq19GUvPllXJgvw@2x.jpeg" /></figure><p><strong>GitHub Project</strong></p><p>I also asked Claude to generate the project on GitHub, after adding some dependencies on my machine, it went ahead and created the project with a very detailed README file.</p><p><a href="https://github.com/Statyk7/LiveSpotAlert">GitHub - Statyk7/LiveSpotAlert: iOS Flutter app with Live Activities triggered by geofencing - displays configurable images like QR codes when arriving at specific locations</a></p><h3>💡 Implementation Highlights</h3><p>FFCA Dependency Rules in Practice:</p><pre>// Domain Layer<br>abstract class GeofencingService {<br>  Future&lt;Either&lt;Failure, List&lt;Geofence&gt;&gt;&gt; getGeofences();<br>  Stream&lt;LocationEvent&gt; get locationStream;<br>}<br><br>// Data Layer<br>class GeofencingServiceImpl implements GeofencingService {<br>  final BackgroundGeolocationDataSource _backgroundGeo;<br>  final GeofenceLocalDataSource _localData;<br><br>  // Implements business logic using data sources<br>}</pre><p>Each feature is cleanly isolated:</p><ul><li><strong>Geofencing</strong>: domain/, data/, presentation/</li><li><strong>Live Activities</strong>: Independent of geofencing implementation</li><li><strong>Media Management</strong>: Standalone image and QR code handling</li></ul><h3>⚡ Claude Code Advantages</h3><h4>🎯<strong> Pattern Recognition</strong></h4><p>Claude quickly grasped FFCA and applied it throughout the codebase.</p><h4>⚡ Rapid Iteration</h4><ul><li>Riverpod → BLoC: 30 seconds</li><li>New feature modules: 10 seconds</li><li>Update dependencies: 1 minute</li></ul><h4>🔍 Context Awareness</h4><p>Claude maintained awareness of:</p><ul><li>Folder and naming conventions</li><li>Platform-specific nuances (e.g., iOS-only features)</li><li>Dependency relationships</li></ul><h4>🏗️ Quality Consistency</h4><ul><li>Clean imports and naming</li><li>Modular, testable code</li><li>Adherence to architecture</li></ul><h3>📚 Lessons Learned</h3><h4>Human-AI Collaboration Workflow</h4><p>Optimal flow</p><p>1. Human: Provide high-level requirements and architectural guidance</p><p>2. AI: Generate structure and boilerplate code</p><p>3. Human: Review, refine, and implement business logic</p><p>4. AI: Assist with repetitive tasks and pattern application</p><h4>FFCA + AI Synergy</h4><p>FFCA’s modular design works perfectly with AI:</p><ul><li><strong>Clear boundaries </strong>make it easy for AI to understand scope</li><li><strong>Repeatable patterns</strong> allow AI to apply consistent structure</li><li><strong>Independent features</strong> enable parallel development tracks</li></ul><h4>Velocity Impact</h4><p>An average of around 80% time reduction:</p><ul><li><strong>Traditional Approach</strong>: 2–3 days for project setup</li><li><strong>Claude Code + FFCA</strong>: 2–3 hours for equivalent structure</li></ul><h3>🔮 Future Implications</h3><p>For Individual Developers:</p><ul><li>Focus shifts from boilerplate to problem-solving</li><li>Rapid validation of ideas</li><li>Accessible best practices for all experience levels</li></ul><p>For Development Teams:</p><ul><li>Standardized architecture across members</li><li>Reduced onboarding and ramp-up</li><li>Parallel feature development</li></ul><p>For the Industry:</p><ul><li>Democratized clean architecture</li><li>Accelerated MVP cycles</li><li>New models for human-AI coding partnerships</li></ul><h3>🎯 Summary</h3><p><strong>Claude Code</strong> + <strong>Feature-First Clean Architecture </strong>unlocked:</p><ul><li>10x faster setup</li><li>Clean and maintainable structure from day one</li><li>Focus on features, not framework</li><li>A sustainable path to scale</li></ul><blockquote>AI doesn’t replace developer intuition — it amplifies it. The future of software is human creativity paired with AI efficiency.</blockquote><h3>📖 Upcoming Articles</h3><ul><li>Implementing Geofencing with flutter_background_geolocation</li><li>Live Activities integration patterns for iOS</li><li>BLoC in Feature-First Clean Architecture</li><li>Testing strategies for AI-generated code</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa89fe5aa58b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature-First Clean Architecture for Flutter]]></title>
            <link>https://medium.com/@remy.baudet/feature-first-clean-architecture-for-flutter-246366e71c18?source=rss-9b7a12c8c2da------2</link>
            <guid isPermaLink="false">https://medium.com/p/246366e71c18</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[mobile-apps]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Rémy Baudet]]></dc:creator>
            <pubDate>Thu, 27 Mar 2025 20:37:39 GMT</pubDate>
            <atom:updated>2025-07-08T19:46:09.484Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HqAsTnuY4Uj_wzdtN4iaAQ.png" /><figcaption>Source: DALL-E</figcaption></figure><blockquote><em>Clean Architecture traditionally focuses on technical layers rather than features. </em><strong>Feature-First Clean Architecture,</strong> <em>or </em><strong><em>FFCA</em></strong><em>, combines Feature-First principles with Clean Architecture by giving each feature its own set of Clean Architecture layers within a dedicated folder. This approach aligns with concepts from both Vertical Slice Architecture and Micro-Frontends Architecture.</em></blockquote><h3>Goals</h3><h4>Implement <strong>Clean Architecture</strong> principles</h4><ul><li>Enhance maintainability, scalability, and testability.</li><li>A well-established software design approach with extensive documentation.</li></ul><h4>Adopt a <strong>Feature-First</strong> approach instead of Layer-First</h4><ul><li>Enables teams or individual developers to take ownership of a feature while maintaining a consistent architecture.</li><li>Ideal for API-First backends, Microservices for UX, or BFF (Backend for Frontend) architectures.</li></ul><h4><strong>Optional:</strong> Use a <strong>Monorepo</strong> for multiple Flutter apps</h4><ul><li>Facilitates development of multiple related apps (e.g., Public App, Partner App, Admin App, Internal App, Mobile, Web, etc.).</li><li>Enables UI Component and Business Logic sharing across platforms.</li><li>Simplifies CI/CD and dependency management.</li></ul><h3>Clean Architecture in a Nutshell</h3><p>Defined by Uncle Bob in 2012 (<a href="https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html">Clean Coder Blog</a>), Clean Architecture enforces isolation between Data, Domain, and Presentation layers using the Dependency Rule.</p><p>Below are the typical layers with Clean Architecture for a Flutter application.</p><h4><strong>Presentation Layer</strong></h4><p>UI/UX layer depending on the Domain Layer.</p><p>→ Contains: <em>Screens</em>, <em>State Management</em>, <em>Widgets</em>.</p><h4><strong>Domain Layer</strong></h4><p>Business logic, innermost layer, independent of other layers.</p><p>→ Used to implement the business logic: Using an abstraction of the data, defined in the Data Layer. Used by the Presentation Layer.</p><p>→ Should be using Dart code only (no UI needed here!).</p><p>→ Contains:</p><ul><li><em>Use Cases</em>: For the Business Logic of a feature.</li><li><em>Models</em>: Business objects for a feature.</li><li><em>Service Interfaces</em> (abstract classes), often called Repository: Defines the contract for the functionalities or interactions of a feature.</li></ul><h4><strong>Data Layer</strong></h4><p>Handles data retrieval and processing, Part of the outermost layer.</p><p>→ <em>DTO</em>: Often called Entities, raw data, maps directly to the JSON structures.</p><p>→ <em>Data Sources</em>: Remote (typically APIs with HTTP, GraphQL…) and Local (storage, cache) data sources, returns DTO.</p><p>→ <em>Mappers</em>: To convert Domain Models to DTO, and vice-versa.</p><p>→ <em>Service Implementations</em>: often called Repositories, coordinate data from the different Data Sources:</p><ul><li>Implements the Services Interfaces.</li><li>Use the Data Sources to get DTO Models.</li><li>Convert DTO Models to Entities with Mappers.</li><li>Return Entities or Errors (Failures).</li></ul><h4>Base Layer</h4><p>In addition, it is very common to have an additional “<strong>Base Layer</strong>” for Shared Libraries and Resources: Those are the Common resources accessible by all layers.</p><p>→ <em>Resources: </em>Assets, Configurations.</p><p>→ <em>Shared Libraries: </em>Tools, Utilities…</p><h3>Feature Structure</h3><p>Each Feature can include:</p><h4><strong>Presentation Layer</strong></h4><ul><li>Use an MVC or MVVM pattern and any State Management framework.</li><li><strong><em>Widgets</em></strong>: Specific widgets for that feature, to be used by the Screens to build the UI.</li><li><strong><em>Screens</em></strong>: UI components representing a page or used to build a page. Use the widgets defined for that feature and can use more generic widgets, from the shared base layer for instance or an external UI Kit.</li><li><strong><em>State Management</em></strong>: Connect the Views to the Models, defined in the Domain Layer. Could be the Controllers or ViewModels or Blocs depending on the State Management used.</li></ul><h4><strong>Domain Layer</strong></h4><ul><li><strong><em>Service Interfaces: </em></strong>For all business or domain services. Those are the interfaces (abstract classes) defined to support the Business Logic for the Feature. They use Models are are used by Use Cases (optional). It corresponds to the Repository Interfaces in Clean Architecture.</li><li><strong><em>Models: </em></strong>Those are the Entities in Clean Architecture but I like to call them Models because they are defined by the Business Logic, where Entities are closed to the Data Sources in my opinion!</li><li><strong><em>Use Cases</em></strong> (Optional): Feature Business Logic.</li></ul><h4><strong>Data Layer</strong></h4><ul><li><strong><em>Service Implementations: </em></strong>Implementation of the Service Interfaces defined in the Domain Layer. They coordinate data from the different Data Sources. It corresponds to the Repository Implementations in Clean Architecture.</li><li><strong><em>Data Sources: </em></strong>The data sources are used by the implementation of the domain services and must not be used by any other layers. They should not be declared by Dependency Injection to be used globally and only be used from the data layer. The Remote Sources, sometimes called <em>networking services, </em>are used for integrating APIs (with HTTP/REST or GraphQL for instance). The Local Sources are used for Local storage, Caching, Bluetooth, etc.</li><li><strong><em>DTO (Data Transfer Objects): </em></strong>The types used by the Data Sources (DTO ) must not be used by any other layers.</li><li><strong><em>Mappers: </em></strong>Helper classes to map Models to DTO , and vice-versa.</li></ul><blockquote><em>💡 A given Feature doesn’t have to have an implementation for the 3 layers (Data, Domain, Presentation), depending on the reusability scenario or need, a few options are possible:</em></blockquote><blockquote><strong>Full Feature</strong>: <em>Domain, Data and Presentation Layers.</em></blockquote><blockquote><strong>Domain-Only Feature</strong>: <em>Includes Domain and Data Layers, typically Dart-only code.</em></blockquote><blockquote><strong>Presentation-Only Feature</strong>: <em>Includes only the Presentation Layer, relying on existing Domain logic.</em></blockquote><h3>Application Structure</h3><p>For an App or multiple Apps using this approach:</p><h4><strong>Apps</strong></h4><p>→ App specific folder to construct the app using the different features, define the routes, dependency injection, global configuration, etc. Can have multiple apps (admin app, parter app, test app, etc.). Uses different features to compose the app.</p><ul><li>Router: Page navigation logic.</li><li>Presentation: Pages that are not specific to a feature, and/or composed of widgets from the Presentation Layer of the features.</li></ul><h4><strong>Shared</strong></h4><p>→ Defines the abstraction and base types to be used to implement multiple Features.</p><ul><li>Base Domain</li><li>Base Data</li><li>Utilities: Dart only shared utilities classes, it could be “infrastructure” functionalities like monitoring, logging, feature flag management, etc.</li><li>UI Utilities: Flutter shared utilities classes.</li><li>UI Toolkit: Design System.</li></ul><h4><strong>Features</strong></h4><p>→ A feature to be used to compose the app, like Authentication, Cart, Catalog, Search…</p><p>Each feature has its own folder (“Feature A”) with:</p><ul><li>Data</li><li>Domain</li><li>Presentation</li></ul><h3>Folder Structure</h3><p>This folder structure is adapted to a <em>Monorepo</em> approach:</p><pre>- apps<br>  - [app 1]<br>    - router<br>    - presentation<br>      - screens<br>      - controllers<br>      - widgets<br>- shared<br>  - base_domain<br>  - base_data<br>  - utils/infrastructure<br>  - ui_utils<br>  - ui_kit<br>- features<br>  - [feature a]<br>    - domain<br>      - models<br>      - services (interfaces)<br>      - use_cases<br>    - data<br>      - data_sources<br>        - local<br>        - remote<br>      - dto<br>      - services (implementations)<br>      - mappers<br>  - presentation<br>      - screens<br>      - controllers<br>      - widgets</pre><h3>Dependency Rule</h3><p>At the <strong>App Level</strong>: Features depend on Shared Libraries and other Features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wBctjnpOEhjeVz5Z" /></figure><p>Dependency directions at the Feature level:</p><ul><li>Data → Domain</li><li>Presentation → Domain</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4wX90BGUbqaA3lYU" /></figure><blockquote>💡 To check the architecture respects the dependency rules it is possible to use a custom lint rule: see <a href="https://github.com/kawa1214/import-lint">GitHub — kawa1214/import-lint: The Import Lint package defines import lint rules and report on lints found in Dart code.</a></blockquote><h3>Summary</h3><p>This approach is best suited for medium to large-scale projects. While it introduces initial complexity, it’s a valuable long-term investment.</p><p>By adopting FFCA — Feature-First Clean Architecture, development teams can build more robust, flexible, and maintainable apps that easily adapt to evolving business needs.</p><h4>Upcoming Articles</h4><ul><li>Implementing FFCA in a Monorepo.</li><li>State Management and Dependency Injection integration.</li><li>Sample app demonstration.</li></ul><blockquote>Read the follow-up on this topic:<br><a href="https://medium.com/@remy.baudet/building-a-flutter-app-with-claude-code-and-feature-first-clean-architecture-fa89fe5aa58b">https://medium.com/@remy.baudet/building-a-flutter-app-with-claude-code-and-feature-first-clean-architecture-fa89fe5aa58b</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=246366e71c18" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>