<?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 stefan klerkx on Medium]]></title>
        <description><![CDATA[Stories by stefan klerkx on Medium]]></description>
        <link>https://medium.com/@devaronius?source=rss-4fb0088b4eba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*JPtfkt7a0_F8OdYt5LtnMw.png</url>
            <title>Stories by stefan klerkx on Medium</title>
            <link>https://medium.com/@devaronius?source=rss-4fb0088b4eba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 20:11:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devaronius/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[Clean AI, part 1: Why your AI setup needs an architecture]]></title>
            <link>https://devaronius.medium.com/clean-ai-part-1-why-your-ai-setup-needs-an-architecture-c8647fbf337d?source=rss-4fb0088b4eba------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8647fbf337d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[agentic-programming]]></category>
            <category><![CDATA[open-code]]></category>
            <dc:creator><![CDATA[stefan klerkx]]></dc:creator>
            <pubDate>Wed, 11 Nov 2026 18:29:25 GMT</pubDate>
            <atom:updated>2026-11-12T09:06:43.890Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZSh2ZTpb-bM5sM8p3-ZLnw.png" /></figure><p>We all have one AI harness we use most; for me, that is Claude. But harness clients come and go: two years ago, ChatGPT was the place to be, and programmers switched overnight to Claude Code when it was released. As AI evolves, we don’t know what the next harness will be or what new capability it will bring.<br>At the same time, AI cloud labs are limiting how many tokens we can spend running our agents.<br>With that in mind, I wanted my repository to work well regardless of which AI harness we used: switch between cloud services to balance token buckets, or use a private or local AI for privacy-sensitive sessions I didn’t want running on these giants’ servers. It shouldn’t matter which of these cases is driving me right now; my output quality should stay the same.</p><p>I wanted to introduce my local AIs, Ornith and Qwen, to my repository, and run these LLMs through OpenCode for simple work when I didn’t want to waste my Claude tokens or when I hit my 5-hour window, so I could keep going even at a slower token speed.</p><p>When I first used OpenCode on my repository, it failed on nearly every task, even though it had access to all our rules.</p><p>For this first task, I ran Ornith, a 35-billion-parameter open-weight model running locally via LM Studio. The task was straightforward: implement a pre-approved feature, test it, and open a pull request. That should have been an easy place to see how well the setup carried over. <br>The tool loaded our instruction file and skills without issue. Over three sessions, this is what happened:</p><ul><li>It opened the Agents file but never opened any of the referenced files inside it for more instructions on specific topics</li><li>It only shipped half of the requested design because it didn’t compare its work against the decisions we had written down.</li><li>It wrote tests as throwaway scripts instead of following our Test Driver Development rules</li><li>It opened a Pull request, misread the server’s response, and reported that the PR already existed when it didn’t.</li><li>It spent 32.000 tokens on one process token for reasoning and produced nothing</li></ul><p>So what could have caused a different AI to miss the mark so badly, while Claude had no issues? At first, the answer was not obvious, so we looked for the issue in the setup itself.<br>Was the context window the issue here?<br>After some analysis, we found that the model had 262.000 tokens available, and all failures occurred between 25.000 and 85.000 tokens. So the real issue was not the window size, but how we organized the information. That shifted the focus from capacity to structure.</p><p>It turned out that all the guardrails we had built so far were wired in a way that only Claude would work well with them. In other words, the setup depended on one tool, not on the architecture itself, which explained the mismatch.</p><ul><li>The check we relied on for open work was a hook designed specifically for Claude.</li><li>The rule against truncating a tool’s output was plain prose. The “always use a skill first” rule was one pointer in one file.</li></ul><p>When we switched to a different AI tool, the knowledge came along as plain markdown, but the enforcement mechanism stayed behind. It turns out it never belonged to the repository; it belonged to a single AI tool. That was the break in the chain, and it explained the failure.</p><h3>It worked by accident</h3><p>Most of the teams I talk to build their AI workspace the same way as we did at first. The pattern is familiar, and it usually starts the same way. <br>You install your chosen AI harness, and you write an instruction file. You add a few commands, maybe a hook, and paste the same context into the chat every week. It works, so you keep going. Over time, that pattern becomes the default.<br>Then, after a while, something changes: a new model comes out, or your favorite model gets an update, and you want to try it out. That is where the cracks start to show.<br>At the same time, a member of your team prefers a new model that is cheap enough to run locally because it has become good enough for part of the work. And you find out that your “AI setup” is really just a pile of files in one format for a specific vendor that mixes three different things:</p><p><strong>What you know</strong>:</p><p>It describes how your project domain works, what you have decided over time and why those decisions were made, and what work is still open and needs to be done</p><p><strong>What you want done</strong></p><p>The plan for how you want to review pull requests, file a note for your wiki, or decide which steps a release should take to bring your product to a storefront.</p><p><strong>How one particular tool is wired</strong></p><p>What specific config your AI should follow, which hooks it should trigger, and what permission syntax it should use to decide whether the agent can run a Skill or only the user.</p><p>The “<strong>what you know</strong>” and “<strong>what you want done</strong>” will outlive any AI harness, but the “how<strong> one particular tool is wired</strong>” will change with every new vendor or major version update. Because all three live in the same files, you can’t avoid the changes that force you to update your tools’ wiring. You can’t change the third without rewriting the first two.</p><p>Developers have solved a similar problem before, but for applications, and called it Clean Code Architecture. It keeps your business rules at the center and your frameworks at the edge, so swapping the database or the UI doesn’t touch the rules. That gives us a useful model to follow.</p><p>With this as a reference, we can borrow many aspects and apply them to our AI infrastructure, and call it Clean Agentic AI. From here, the same idea can guide our setup, so the rest follows naturally.</p><h3>The three rings</h3><p>Just as in Clean Code Architecture, we use the same ring structure for Clean Agentic AI. The sections below show how that structure works.<br>In the image below, you can see how the rings are divided for the current example, with the harness on the outside, like Claude Code, OpenCode, or Codex.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMumvCd0GFBAGd4hDd81Tg.png" /><figcaption>The three rings of Clean Agentic AI</figcaption></figure><h3>Ring 1: the vault (entities)</h3><p>At the center of our Clean AI Architecture sits the knowledge, just as the entities do in Clean Code; these files should be the source of truth for our system and should not change when we switch AI harnesses. That is why this ring stays fixed.<br>For our Clean Architecture, it is the vault circle: a folder of markdown notes, which we prefer to be Obsidian-style. These files hold the domain vocabulary, the decisions and their reasons, research write-ups, and other domain knowledge we collect over the duration of our project.<br>Next to it sits a compiled, shorter version of the same notes: a wiki optimized for agents that need to look things up quickly.</p><p>The vault will never tell a tool or harness what to do. It records the source of truth and stays in place.<br>But like all documentation, it can quickly go out of date, and if a note disagrees with the code, the code always wins, and the note gets marked.<br>While notes can speak to specific code in our project, the difference between documentation in the vault and code as documentation is that, as AI, we should use both. The code tells us what a function or feature does, but the vault tells us why it does it and why we made that decision.<br>Something that becomes more valuable for AI decision-making the more similar our choices are.</p><p>To prevent these issues between code and documentation, we will use, like in the real world, a librarian whose job is to analyze the vault for inconsistencies, stale notes, and improvements we can make to enrich our vault library even more. That keeps the notes aligned with the source of truth.</p><h3>Ring 2: the aiOS (use cases and mappers)</h3><p>Around the vault sits the aiOS circle; this is the operating layer of our system, where we store and manage how AI behavior should be written so any harness can carry it out. These behaviors are then split into the following parts:</p><ul><li><strong>Skills</strong> <br>For those who work with Claude or Codex, skills are nothing new: we define them as task recipes that any session can load.</li><li><strong>Runbooks</strong> <br>A runbook describes a job step by step in plain language, like how the librarian manages the vault, how the reviewer QA&#39;s a pull request, or how we prefer to research a specific topic.<br>A runbook describes a job step by step in plain language, like how the librarian manages the vault, how the reviewer QA’s a pull request, or how we prefer to research a specific topic.</li><li><strong>Tools</strong> <br>While we use reasoning for a lot of tasks, sometimes we just want to execute specific tasks where we can use ordinary scripts to save on token usage and streamline output between AI harnesses when we expect the same result every time, like open-items ledger, pull-request, and scrum board ticket builders and preflight checks on builds.</li><li><strong>Config</strong> <br>Like any OS system, we provide configuration when needed, and this config provides vendor-neutral keys we can use in the adapters to define the effort level we want or the role it plays. That keeps the layer portable. For example, in the aiOS config you might set a key such as effort_level: medium. Then, in the Claude harness, this could map to using Opus 5.5, while in OpenCode it might mean using a balanced mode prompt flag. Similarly, a role setting in the config, such as agent_role: reviewer, would translate into the specific syntax or command each harness adapter needs for that tool. This way, your core configuration stays consistent, while each harness handles the specifics behind the scenes.</li><li><strong>Maps</strong><br>Maps connect intent to a place: where a new note goes, which skill serves a request, where code belongs. A map only points; it never explains. That makes it a guide, not a rule.</li></ul><p><strong>Maps connect intent to a place: where a new note goes, which skill serves a request, where code belongs. A map only points; it never explains. That makes it a guide, not a rule. T</strong>ogether with the tools that read the vault, maps serve as Clean Architecture’s mappers: they translate between what the vault holds and what an agent needs. The digest of open work shown at session start is one example: a tool reads every open item in the vault and hands the agent a short list. This is the handoff layer.</p><p>One file deserves special mention: AGENTS.md. This file provides the base instructions and guardrails for all the agent sessions. So it belongs to the aiOS ring, even though the harness circle is what loads it in the end.</p><h3>Ring 3: harnesses (the view)</h3><p>On the outermost ring, we have the harness ring, where we keep the per-agent-harness adapters, hooks, and agent-specific config required, and nothing else. These files are stored in the defined agent folder:</p><ul><li>`.claude/` for Claude Code;</li><li>`.opencode/` for OpenCode;</li><li>`.codex/` for Codex;</li></ul><p>An agent definition here wraps an aiOS runbook and adds only the wiring and guardrails the harness supports. This keeps the harness thin.</p><p><strong>Hooks</strong> work the same way: the session-start digest, the guard on piped commands, and the check on vault notes are ring-2 scripts, and each tool’s config only says when to call them. Claude Code and Codex call them as hooks; an OpenCode plugin calls the same session-start script.</p><p>These were the results we found when we tried the different harnesses with the structure above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_s-fts72wbf5zOAlC2KjaA.png" /></figure><p>Knowledge travels between tools. Constraints do not. The harness circle is exactly what doesn’t travel, so it should contain as little as possible.</p><h3>The dependency rule</h3><p>In Clean Code Architecture, all dependencies point inward, so you can remove outer circles without a big impact on the inner circles. For our Clean AI Architecture, we will follow the same rule: all <strong>dependencies point inward.</strong></p><p>So what does that look like in our repo? Our runbooks never mention a specific tool. If a runbook needs a code review, it says “load the reviewer’s instructions”, not “use the Claude subagent”. There are two places where a tool can come up: a scheduled job can list what it needs from the tool that runs it, and a file can have a specific section at the end for agent-specific differences that lists its adapters. Outside of those, tool names stay out of the aiOS.</p><p>The vault can mention a tool or agent, but only to record something we observed during a session. As one research note says, the OpenCode harness splits a command on &amp;&amp; before it checks permissions. We found this during our research and recorded it in our research notes, but we will not find a rule in the vault for an agent like OpenCode saying, “always split your commands on &amp;&amp;.”<br>If we ever switched from OpenCode to Claude, then that rule would quietly stop being true.</p><p>Settings need a bit more care, because part of a setting is ours and part belongs to the vendor. “The reviewer runs at medium effort” is our decision, so it lives in the aiOS ring. How you actually write that down differs per tool, so that part lives in Harnass’s ring. We write the decision once, a small script generates each tool’s config from it, and a test fails if the two ever get out of sync.</p><h3>Don’t count on the model to follow the rules</h3><p>The local model taught us one more thing. At one point I asked it whether our session-start instructions were in its system prompt. It said no, but they were. Later, a permission rule blocked one of its commands, and it told me that the command failed because of an authentication problem. The error message it had just received said “permission”, not “authentication”.</p><p>So you can’t rely on a model to tell you what it reads, or why something failed. <br>The bigger issue is that if you can’t trust its own report, you also can’t trust it to have followed a rule just because it was written down somewhere it could read.</p><p>This issue changes the question from:</p><p>“<strong>where do we write this rule?</strong>” to “<strong>what actually makes this rule happen?</strong>”</p><p>After some debate, we ended up with these four options, from the strongest to the weakest:</p><ol><li><strong>A git hook: </strong>Git runs it on every commit, whoever or whatever makes the commit. Ours rejects commits with messages that don’t follow our convention. The model doesn’t have to know the rule exists.</li><li><strong>Validation scripts: </strong>A script that checks the work and reports the result. Our vault linter either says “clean” or lists what is wrong. The model still has to run it, but it can’t misread the result.</li><li><strong>A setting or plugin in the tool itself</strong>: Settings and plugins, as in OpenCode, that ask for approval before a git push will only work for the agents you configured it for; the moment you switch, this guardrail will fail on you.</li><li><strong>A sentence in an instruction file.</strong> This only works if the model reads it, understands it, and decides to follow it; ultimately, instruction files are more suggestions than hard rules.</li></ol><p>The further inward a rule lives, the closer it gets to the top of that list, and the less it matters which tool or model you are using. In the upcoming episode 4, we will go deeper into this topic.</p><h3>What Clean Agentic AI is not</h3><p>When I explain this to other developers, the first question is usually whether this is the same as Clean Architecture we use for coding. Well, it isn’t. Our app has its own data, domain, and presentation layers, and those stay exactly as they are. Clean Agentic AI borrows only the idea of separating responsibilities to benefit our AI tooling.</p><p>The second question is often whether the point is to use fewer Agent harnesses. It’s actually the opposite. We run three harnesses in the same repository today. When we added the third one, Codex, we didn’t have to rewrite anything we already knew. It got its own small set of wiring files and reused everything else.<br>The goal of Clean Agentic AI is to give you the freedom to run any Agentic agent that you want, and if the moment comes that your agent dies, is out of tokens, or is replaced by something new, you do not have to throw away or duplicate all your agentic architecture just to make it work on the other harness.</p><h3>A 15-minute exercise for your repo</h3><p>Let’s try this 15-minute exercise: map every file in your repository that exists because of AI.<br>Like instruction files, commands, skills, hooks, agent definitions, prompt snippets, and the context you keep pasting. Sort each one into a ring:</p><p>FileRing 1 (knowledge)Ring 2 (behavior, tool-neutral)Ring 3 (one tool’s wiring)…</p><p>Now look at ring 3. Any file there that holds <em>knowledge</em> or a <em>rule</em>, not only wiring, is your first thing to move inward. In our case, it was “show the open work first”, which only a Claude Code session-start hook carried out.</p><h3>What comes next</h3><p>In part 2, we will focus more on the first circle, the vault itself: what goes in there, how do we structure a good vault, and how can we generate a wiki that our AI can use to increase its knowledge of our project and give it the insights to see those indirect links between topics that normally only programmers know of in their heads, while keeping our token expenditure low.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8647fbf337d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making your Flutter app desktop ready]]></title>
            <link>https://devaronius.medium.com/making-your-flutter-app-desktop-ready-d8ff9be9ce34?source=rss-4fb0088b4eba------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8ff9be9ce34</guid>
            <category><![CDATA[desktop]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[macos]]></category>
            <dc:creator><![CDATA[stefan klerkx]]></dc:creator>
            <pubDate>Wed, 10 Mar 2021 21:16:13 GMT</pubDate>
            <atom:updated>2021-03-10T21:21:14.438Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why limit your project to only one platform if you can have many</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*gWkwszawZFDMydlCzrsINg.png" /></figure><p>Many of you will probably already have heard that Flutter 2.0.1, a.k.a Flutter 2, has finally made it to the stable channel, and with this, a new marker in the short history of the platform. It has been a little more than two years since the Flutter 1.0 release where Google made a bold claim to build an ambient computing platform where the platform does not prescribe the rules, language, and limitations you should accept, but that the developer can finally build their app to their heart&#39;s content if that would be for a small phone or on a full fletch desktop. Of course, back then, only Android and IOS were available, and for those that were not afraid to solve some Platform bugs, we had the first view of what a web world in flutter would mean but Flutter 2 finally fulfills the promise made al that time ago with support for:</p><ul><li>Windows</li><li>MacOS</li><li>Linux</li><li>Web</li><li>IOS</li><li>Android</li></ul><p>It is an incredible feat of engineering to make this possible.</p><h4><strong>But how do I harness this new power for desktop?</strong></h4><p>well first off, what do we need to develop for desktop?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*Yr_fTJ74aeQkfw22uiZEqQ.png" /></figure><h3>Building for the Windows Platform</h3><p>To Build a Windows desktop version, you need to have Visual Studio 2019 installed. (Not visual studio code, that doesn’t count) with the “Desktop development with C++” module installed including all of its default components.</p><p>As you probably already guest the platform-specific code will be in C++ and not C#</p><p>run the following command to enable the given desktop platform in your project.</p><pre>flutter config --enable-windows-desktop</pre><h4>New or existing project</h4><p>Your starting a new project, just check the windows desktop feature to on for flutter in the wizard.</p><p>What a wizard!! 😱</p><p>No problem as always flutter makes everything available in the console and it is even required for those with an existing flutter app.<br>Enter the following command to generate the platform-specific folder.</p><pre>flutter create --platforms<strong>=</strong>windows . </pre><p>O and don’t forget the dot on the end otherwise flutter has no clue what you want.</p><p>After all of this run the flutter doctor to check if everything is still in order. You will see Visual Studio as well with the given checkmark. (If not, what were you doing before this? install the real visual studio).</p><pre>Doctor summary (to see all details, run flutter doctor -v):                                           <br>[√] Flutter (Channel beta, 1.27.0-1.0.pre, on Microsoft Windows [Version 10.0.19042.782], locale en-AU)<br>[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)                      <br>[√] Chrome - develop for the web                                                                      <br>[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)                         <br>[√] Android Studio (version 4.1.0)                                                                    <br>[√] VS Code (version 1.51.1)                                                                          <br>[√] Connected device (3 available)</pre><p>Oke, time to finally start with the fun stuff, running our new windows app.<br>In your device selection prompt you would see now your WINDOWS (desktop) and press run.</p><p>and congratulations, your very own desktop app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKafRly3NWe5Y-J5ouhjaA.png" /></figure><h3>Building for the MacOS Platform</h3><p>Those fortunate enough to run your project on a MacBook are probably already done after ready what is necessary but in case you missed all of this for some really strange reason.</p><p>To build a macOS app we are in need of <a href="https://developer.apple.com/xcode/">Xcode</a> and <a href="https://cocoapods.org/">CocoaPods</a> and that&#39;s it. So if you&#39;re already running an IOS app you&#39;re golden.</p><p>Following we have to run many same commands as given for windows</p><pre>flutter config --enable-macos-desktop</pre><pre>flutter create --platforms<strong>=</strong>macos .<br>flutter doctor</pre><h3>Building for the Linux Platform</h3><p>Sorry guys, this would require a bit more we had to do for the other platforms.</p><p>For Linux desktop development, you need the following in addition to the Flutter SDK:</p><ul><li><a href="https://clang.llvm.org/">Clang</a></li><li><a href="https://cmake.org/">CMake</a></li><li><a href="https://developer.gnome.org/gtk3/3.2/gtk-getting-started.html">GTK development headers</a></li><li><a href="https://ninja-build.org/">Ninja build</a></li><li><a href="https://www.freedesktop.org/wiki/Software/pkg-config/">pkg-config</a></li><li>libblkid</li><li>liblzma</li></ul><p>The easiest way to install the Flutter SDK along with these dependencies is by using <a href="https://snapcraft.io/flutter">snapd</a>. For more information, see <a href="https://snapcraft.io/docs/installing-snapd">Installing snapd</a>.</p><p>Once you have snapd, you can install Flutter using the <a href="https://snapcraft.io/store">Snap Store</a>, or at the command line:</p><p>content_copy</p><pre>$ sudo snap install flutter --classic</pre><p>If snapd is unavailable on the Linux distro you’re using, you might use the following command:</p><p>content_copy</p><pre>$ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev</pre><p>After this, we run similar commands as the other platforms</p><pre>flutter config --enable-linux-desktop</pre><pre>flutter create --platforms<strong>=</strong>linux .<br>flutter doctor</pre><p>I hope you guys will have a great start now with starting your own desktop version and happy progamming.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8ff9be9ce34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why choose Flutter for your company?]]></title>
            <link>https://devaronius.medium.com/why-choose-flutter-for-your-company-6b2e67a4a7d9?source=rss-4fb0088b4eba------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b2e67a4a7d9</guid>
            <category><![CDATA[native-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[bussiness]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[affordability]]></category>
            <dc:creator><![CDATA[stefan klerkx]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 19:25:24 GMT</pubDate>
            <atom:updated>2020-07-03T10:20:12.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*5ArTQt-h7KSt4VSiJ9ly5A.jpeg" /></figure><p>Last week you had an excellent idea for a new app and shared your findings with your colleagues and business partner, and they all love the idea.</p><p>You started the research on your potational customer base, and everything seems to point to a gap in the market that your idea can fill.<br>But then, on what platform do we develop this app?</p><p>Your business partner wants that the app works for IOS devices and has that high-quality native feel, but from your research, you’ve discovered that a significant portion of your customer base owns an android phone. So what do we do? Do we go native? We can build a tailor-made app for the platforms we need, or maybe cross-platform? We don’t have to make the app separate for all platforms, but we will have to sacrifice some functionality that is specific to that platform, or do we?</p><blockquote>There are two ways to build apps these days, both have a different set of compromises on Reach &amp; Retention, High-quality look &amp; feel, Time to market, and Affordability.</blockquote><h3>The dilemma of mobile app development</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*YxkSEM5zCMO-iX0lCH0fTg.png" /></figure><p><strong>The first option:</strong> The option that 80% of businesses are still doing today, build two entirely separate Android and IOS apps on two completely different codebases. What requires double the development teams, double the money, but in the end, you get a beautiful result in the form of our castle above us.<br>To get there, you got many compromises like time and affordability.<br>But what is the alternative?</p><p><strong>The second option</strong> is to use the company’s third-party cross-platform tool kits that get you there much faster thanks to the use of one codebase, but the end quality is not the same, you don’t get that castle. But why?<br>Often these cross-platform tool kits use languages like javascript to convert it to the native platform. Still, the result is not native, and you can feel that there is something off, so another compromise on our quality and user retention.</p><p><strong>Flutter is the third option:</strong> it’s fully native, and everything you write in Flutter, is compiled directly to native machine code. What means is what you write is what you get on your phone with no contact switch and a single codebase, So you get that direct road to the castle.</p><h3>What are the pro’s of Flutter for my company</h3><h4>Time to Market</h4><p>The most significant advantage is the speed at which you can build and show a working product. Flutter can build to Android, iOS, Web, Mac, and Windows devices. <br>Flutter is the ideal platform to quickly build your MVP (minimum viable product) and run your development cycles. Flutter apps run on all platforms, and with the benefits of stable hot-reload, your developers don’t have to sit through endless loops of compile builds to test the product code they just have written.</p><h4>High-quality look and feel</h4><p>Flutter breaks the barriers by no longer have to worry about which platform your product ships to, and thanks to this, your designer can now put all of his efforts into creating a beautiful Design and User Experience while still keeps that nice native feel.</p><p>Flutter is prepared to use 120 frames per second (fps). That means that, especially with animations, you can give an even more luxurious visual experience to your apps. Of course, your phone or tablet must be ready to support this.</p><h4>Affordability</h4><p>The third pro is, of course, your development costs, you no longer need separate developers for IOS, Android, and web development. Were you before required all three, you now only need the flutter developer to build your product for all the different platforms, and maybe the best thing, Flutter itself, is free.</p><blockquote>1 codebase, 1/2 the development team, and less money needed.</blockquote><p>For the average Minimal Viable Products (MVPs), you need around 12 weeks for the full scope of the first version of the app. If you had this done natively, it would have been about 20 weeks, so a saving of 60%.</p><h4>Reach And Retention</h4><p>Flutter reaches all your users by shipping your product natively to Android and ios. The behavioral changes we have learned to expect on our native platforms like scrolling and navigation are built into Flutters framework, so the development team can focus on building the app knowing the critical functions are already there. So you can create a very native driven android app or go more brand-based.</p><h3>But what are the con’s of Flutter</h3><p>The one disadvantage is that Flutter apps are more significant in size. Generally speaking, Flutter apps are greater than 4MB.<br>One other small con is that Flutter is still a young platform and has a short third-party support library. Yet, at the moment of writing this, there is already a very active developer-base that is constructing these missing libraries.</p><p>In a year or two, this con will be converted into a pro and will be one of it’s best features.<br>However, if you plan an app properly, then Flutter can become the best.</p><h4>Some last words</h4><p>Though the Dart Language is suitable for Flutter and its challenging nature makes coding sometimes tricky. You can overcome this with the support of Java, C++, C#, and Objective-C.</p><p>An excellent cross-platform app development company, on average, takes a minimum of 250 hours for creating an app that efficiently works on iOS and Android.<br>Today’s market is transforming digitally, and it’s an excellent time to develop mobile applications. Rather than hiring iOS and Android developers, I would suggest you hire a Flutter developer who can simultaneously create applications for iOS and Android and if your in for it for web, Mac, and Windows as well.</p><p>Undoubtedly, Flutter cross-platform is a trendsetter in the mobile app development industry, and soon, we will see more of it in the IT and software field. Hopefully, it will get a warm place inside your company.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b2e67a4a7d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Atomic design with Flutter]]></title>
            <link>https://devaronius.medium.com/atomic-design-with-flutter-a8f69b68f39d?source=rss-4fb0088b4eba------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8f69b68f39d</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[atomic-design]]></category>
            <dc:creator><![CDATA[stefan klerkx]]></dc:creator>
            <pubDate>Fri, 14 Feb 2020 16:08:03 GMT</pubDate>
            <atom:updated>2020-07-08T10:37:24.043Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2AS2Sc1jZURg4zgKdOD8SA.png" /></figure><p>Flutter is the newest cross-platform system on the market where you can create IOS, Android, Web, Mac and Windows applications from one codebase. How? Well, everything is a widget.<br>From a simple text field to the frame of the page itself.</p><p>But as more people start building User Interfaces, for this new platform there is a need to level-set our jargon and make sure as UX/UI practitioners we share the same language and applying the same knowledge. Let’s discuss using the UI Ontology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MSNqptEvEQeTnmFaFf5NUA.png" /><figcaption>everything is a widget, they’re all connected but separate at the same time</figcaption></figure><p>The UI ontology is not comprehensive as user interfaces are constantly evolving and changing, but mastering al the different elements could be a challenge. Your boss wants that your design works on all the platforms for every size and so we always build pages for all the different UX requirements.<br>one for mobile, one for tablet and so one, but what if we could reuse everything and still have the different UX pages. let’s introduce Atomic Design.</p><p>The goal of Atomic Design is to construct components in its smallest form also known as <strong>atoms</strong> and combine them to construct more complex components that in turn complete more complex functions. Atomic Design defined five structures to optimize the reusability in your application, these are:</p><p>Atom, Molecule, Organism, Template, Page</p><p>The implementation of an <strong>Atom</strong> for Flutter is a <strong>widget</strong>, The Flutter Framework has been developed with the notion that everything is a widget, from a simple text label up to the app itself, in this context, we can say that the text label is the atom.</p><p>but if we want to use this how do we work with the state management in Flutter?</p><h3>Development in flutter</h3><p>The way of development in Flutter differs much from what we’re used to for app-, web- and software development.<br>The implementation of a central controller per page is no longer feasible and with an eye on the future not dynamic enough to reuse on the different platforms. Therefore we have to look at how Flutter uses its state and that everything that exists in the Flutter architecture is stored into memory when the app is running. This includes the app’s assets, all the variables that Flutter keeps about the UI, animations, textures, and fonts and more.</p><p>This definition of the state is not very useful for architecting an app but is a big difference between Flutter and their native counterparts where you don’t manage some state like textures but that Flutter will handle those for you. Therefor a useful definition of state in Flutter is whatever data you need to rebuild your UI at any given moment in time. This form of state management can be separated into two types of state:</p><ul><li>ephemeral state</li><li>app state</li></ul><h4>Ephemeral state</h4><p>The ephemeral state is your neatly contained state inside a single widget that is seldom needed to be accessed by other widgets and therefore not needed to be serialized and doesn’t change in complex ways.<br>For the Ephemeral state, there is no need for a ViewModel or other forms of state management, all that is needed is a Stateful widget.</p><h4>App state</h4><p>The app state is the state you want to share across many parts of the app and that you want to keep between user sessions. this can be user preferences, login info, data object states or other forms of state that need to be shared between widgets.</p><h3>Build organisms not Pages</h3><p>We are all used to the fact that we build pages that have limited reusability, but flutter gives us the widget where we can construct every UX element to the smallest part as a self-sustaining UX element.<br>In the case of flutter, a widget has been stript back to the level of an Atom.</p><h4>The Atom</h4><p>An atom is a single cell, the basic building block or in Flutter terms a Text, Align, Center or a simple custom made widget. The most basic building blocks for your app. these Atoms are almost always a StatelessWidget and don’t do any ephemeral state management.</p><h4>The Molecule</h4><p>After creating your atoms, things get more interesting when we combine them and let them work together.<br>A Molecule is a group of bonded atoms and is the smallest fundamental unit of a compound. The molecule takes on their properties and if needed have their ephemeral state and serves as the backbone for our UI system.</p><p>This makes molecules exist as stateless and stateful widgets, depending on the requirement of an ephemeral state.</p><p>for example:<br>A couple of rounded containers wouldn’t be very useful but combine them as a page indicator and they can do something together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MWzuQGNnQcz7Ylw5vXIDnA.png" /></figure><h4>The organism</h4><p>The organism is the combination of several molecules to form a relatively complex section of our UI and we can see the final interface to take shape in the form as a page slider or product grid that might consist of the same molecule repeated over and over again.</p><p>The organism encourages the creation of standalone, portable, and reusable widgets.<br>Because the organism is a standalone widget its only need context to function as the product grid does it still need the dataset to function</p><h4>Template</h4><p>Most templates start as wireframes and are ideal for UI testing and where we see some old faces again by constructing the page we want to use.<br>The template can be compared to a Fragment from the Android Framework.</p><p>A template is very concrete and has all the logic to let the organisms work together, therefore, the template contains an app state approach to set the states of the given organisms.</p><h4>Pages</h4><p>The page is the specific instance of the given template by providing it with the correct data en context.<br>therefore page in not really a component but the end product on your application screen, for example, the different recipes pages your cooking app contains. All recipes work from the same template but the given data and context make them unique.</p><p>The GetIt library in Flutter is a great example of accomplishing this.</p><h3>Some small thoughts</h3><p>After working six months with this approach, I found myself much of the time in the realization, that half of the new template page was already done for me. <br>For my latest project, I created lots of atoms, molecules, and organisms, and even if the given requirements were not directly met with the current modules I always could make some small changes or extended the functions of the organism to get the functions I needed.</p><p>Something that for most will be overlooked will be the testability of this approach. All your molecules and organisms are small and have a specific scope and therefore extremely easy to unit test, with the extra benefit of reusability through the hole app will increase the stability of your app tenfold.</p><p>I hope you loved this story, it was my first one on this platform, so if you have any suggestions or improvements I would love to hear them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8f69b68f39d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>