<?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 Le Jon on Medium]]></title>
        <description><![CDATA[Stories by Le Jon on Medium]]></description>
        <link>https://medium.com/@jonathan.demontalembert?source=rss-79512a7f6623------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*KubCHvOZ0H6FPopB</url>
            <title>Stories by Le Jon on Medium</title>
            <link>https://medium.com/@jonathan.demontalembert?source=rss-79512a7f6623------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:46:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jonathan.demontalembert/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[Orchestrated Specialist Models Is the Future. Here’s Why.]]></title>
            <link>https://medium.com/@jonathan.demontalembert/orchestrated-specialist-models-is-the-future-heres-why-114302e34e8e?source=rss-79512a7f6623------2</link>
            <guid isPermaLink="false">https://medium.com/p/114302e34e8e</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Le Jon]]></dc:creator>
            <pubDate>Fri, 13 Mar 2026 11:20:46 GMT</pubDate>
            <atom:updated>2026-03-13T12:22:54.062Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From monolithic LLMs to Mixture of Experts (MoE) to fully orchestrated specialists. The same evolution we saw in software architecture is happening in AI.</em></p><h3>We Already Learned This Lesson Once</h3><p>Every backend engineer alive today has lived through the monolith-to-microservices transition. One application handling auth, payments, notifications, and the kitchen sink. It works beautifully on day one. By month twelve, a change to the email service breaks the payment flow, deployments take an hour, and nobody can scale the search endpoint without also scaling the PDF renderer.</p><p>We decomposed. We built services with clear boundaries, independent scaling, independent deployability. It wasn’t a silver bullet. Microservices brought their own pain. But the principle was sound: <em>different workloads have different requirements, and treating them identically is an optimisation for nothing.</em></p><p>Large language models are following the exact same arc.</p><p>A 400B+ parameter model handling your code generation, support ticket triage, content writing, and data extraction is the AI equivalent of that monolithic Rails app circa 2014. Versatile. Convenient. And increasingly painful to operate at scale.</p><h3>The Three Levels of AI Architecture</h3><p>What I’ve come to realise is that there isn’t a single leap from monolith to microservices in AI. There are three distinct levels, each with different tradeoffs, and the industry is moving through them in sequence.</p><h4>Level 1: The Monolith</h4><p>One giant dense model does everything. Every token activates every parameter. You send it a classification task, and all 400 billion parameters fire. You ask it to extract a date from an invoice, and all 400 billion parameters fire again.</p><p>This is where most teams still are. One API key. One system prompt trying to handle twenty different task types. Simple to start. Expensive to scale. Impossible to debug when things go sideways.</p><h4>Level 2: Mixture of Experts (MoE)</h4><p>This is where it gets interesting. MoE models look like one model from the outside, but internally they’re already specialised. <a href="https://huggingface.co/deepseek-ai/DeepSeek-V3">DeepSeek V3 has 671 billion total parameters but only activates around 37 billion per token</a>. <a href="https://huggingface.co/Qwen/Qwen3.5-35B-A3B">Qwen 3.5 35B-A3B has 35 billion total but only activates 3 billion</a>. <a href="https://www.sitepoint.com/definitive-guide-local-llms-2026-privacy-tools-hardware/">Llama 4 Scout has 109B total but 17B active per forward pass</a>.</p><p>The routing is learned during training. The model figures out which “expert” sub-networks should handle which kinds of tokens. You don’t control it. You can’t swap individual experts. You can’t fine-tune one specialist without retraining the whole thing.</p><p><strong>MoE is the monolith pretending to be microservices.</strong> Same deployment simplicity, dramatically better inference efficiency. And for all intensive purposes, it works. The numbers are wild. <a href="https://venturebeat.com/technology/alibabas-new-open-source-qwen3-5-medium-models-offer-sonnet-4-5-performance">Qwen 3.5 35B-A3B with only 3B active parameters outperforms the previous Qwen3–235B, a model nearly 7x its total size</a>. <a href="https://medium.com/@rosgluk/best-llms-for-ollama-on-16gb-vram-gpu-c1bf6c3a10be">GPT-OSS 20B runs at nearly 140 tokens per second locally on an RTX 4080</a> because it’s only activating around 5B parameters per token out of its 20B total.</p><p>The practical insight: <strong>MoE validates the core thesis of small model orchestration (not every token needs every parameter) but implements it inside a single model where you trade control for convenience.</strong></p><h4>Level 3: Orchestrated Specialists</h4><p>This is the full microservices equivalent. Separate models, each fine-tuned for a specific job, with an explicit orchestrator that decides who handles what.</p><p>T<strong>he orchestrator itself is a small model.</strong> NVIDIA Research built exactly this. Their Orchestrator-8B is a small model trained specifically to look at a task, consider the available specialists and the user’s preferences (speed vs accuracy vs cost), and route accordingly. It <a href="https://developer.nvidia.com/blog/train-small-orchestration-agents-to-solve-big-problems/">outperformed GPT-5, Claude Opus 4.1, and Qwen3–235B on benchmarks including Humanity’s Last Exam, FRAMES, and τ2-Bench</a>, at roughly 30% of the cost. Not by being a better generalist, but by being a better coordinator.</p><p>What’s wild is how little data it took. <a href="https://developer.nvidia.com/blog/train-small-orchestration-agents-to-solve-big-problems/">They trained it on just 552 synthetic problems and 1,296 prompts using Qwen3–8B as the base model</a>. The orchestrator doesn’t need to be smart in the generative sense. It needs to be fast, accurate at classification, and good at knowing what it <em>doesn’t</em> know so it can escalate to a bigger model when the specialists can’t handle something. As NVIDIA put it, “small models are already powerful enough to handle this burden if tuned appropriately” because they’re “unburdened by excessive knowledge and trained to capture the essence of problem-solving.”</p><h3>The Hardware Tailwind</h3><p>This pattern wasn’t practical two years ago. What changed:</p><p><strong>Quantisation got good.</strong> GGUF, AWQ, and similar techniques let you run models at 4-bit precision with <a href="https://leetllm.com/blog/run-qwen35-local-ollama">negligible quality loss (less than 1% perplexity degradation)</a>. A 7B model quantised to 4-bit fits in 4–6GB of RAM. Qwen 3.5 9B at Q4 runs on a laptop with 16GB and leaves room to breathe.</p><p><strong>Consumer silicon caught up.</strong> An M-series MacBook with 48GB unified memory runs a 35B MoE model at usable speeds. <a href="https://insiderllm.com/guides/qwen-3-5-local-guide/">An RTX 3090 pushes the Qwen 35B-A3B at over 100 tokens per second</a>. This would have needed a dedicated GPU server in 2022.</p><p><strong>Inference engines matured.</strong> Ollama, llama.cpp, vLLM. Serving a small model no longer requires a machine learning team. ollama run qwen3.5:9b and you&#39;re live. It&#39;s closer to spinning up a Docker container than deploying ML infrastructure.</p><p><strong>NPUs are shipping everywhere.</strong> Qualcomm, Intel, Apple. All embedding dedicated inference silicon in consumer hardware. We’re early on this curve, and the ceiling keeps rising.</p><p><strong>And the frontier is coming down.</strong> The next wave might be <a href="https://github.com/microsoft/BitNet">BitNet</a>, Microsoft’s framework for native 1-bit models where every weight is constrained to {-1, 0, 1}. They’ve <a href="https://github.com/microsoft/BitNet">demonstrated running a 100B model on a single CPU at human reading speed</a>. The models need to be <a href="https://arxiv.org/html/2402.17764v1">trained from scratch at 1-bit</a> (you can’t just quantise an existing model), so the ecosystem is still early. The <a href="https://huggingface.co/microsoft/bitnet-b1.58-2B-4T">biggest publicly available native BitNet model is 2B parameters</a>. But the <a href="https://arxiv.org/html/2402.17764v1">BitNet paper explicitly calls out MoE as the natural pairing</a>: 1-bit weights would make a 100B+ MoE model fit on a laptop. When that arrives, the architecture I’m describing here won’t just be a nice pattern. It’ll be the obvious default.</p><h3>Where This Doesn’t Work (Yet)</h3><p>I’m not going to pretend this is a universal solution. It isn’t.</p><p><strong>Cross-domain reasoning is hard to decompose.</strong> When a task requires simultaneously understanding code, business context, regulatory constraints, and user psychology, routing to a single specialist doesn’t cut it. You need a model with broad world knowledge, and right now that means a large one.</p><p><strong>Orchestration is engineering overhead.</strong> Every routing decision, every context handoff, every confidence check adds latency and surface area for bugs. For simple use cases, one API call to a frontier model is genuinely simpler.</p><p><strong>Fine-tuning isn’t free.</strong> Small models only beat large ones when they’re well-tuned on good domain data. No data? No expertise? Stick with the generalist until you have both.</p><p><strong>The frontier keeps getting cheaper.</strong> Models like Claude Haiku and GPT-4o mini deliver strong performance at dramatically lower cost than their bigger siblings. The cost argument for small models weakens every time the providers drop prices. The latency and privacy arguments hold up better.</p><p><strong>A 9B model on a laptop isn’t Claude Code.</strong> I want to be honest about this. The local experience is good for routine work. It’s not good for the hard problems that made you reach for AI in the first place. The gap is closing. Qwen 3.5’s 9B beats last-generation models 13x its size. But it hasn’t closed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=114302e34e8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your AI Agent Writes 1,000 Lines in Minutes. Here’s How to Actually Review Them.]]></title>
            <link>https://medium.com/@jonathan.demontalembert/your-ai-agent-writes-1-000-lines-in-minutes-heres-how-to-actually-review-them-d14a81f9c662?source=rss-79512a7f6623------2</link>
            <guid isPermaLink="false">https://medium.com/p/d14a81f9c662</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[stacked-diff]]></category>
            <dc:creator><![CDATA[Le Jon]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 07:00:57 GMT</pubDate>
            <atom:updated>2026-03-02T07:28:14.393Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why stacked diffs are the only workflow that scales when agents write faster than humans can read.</em></p><p>I think we’ve been celebrating the wrong thing.</p><p>For the past two years, every conference talk and product launch has been about the same thing: AI writes code faster now. Claude Code, Gemini CLI, Codex, Cursor. The tools are incredible, genuinely. I can spin up three Claude Code sessions before my morning coffee goes cold, point them at different corners of a codebase, and have thousands of lines of working code by lunchtime.</p><p>And then I open GitHub, and there it is. A pull request the size of a short novel. Written by a machine. Waiting for a human to make sense of it. That human is usually the most senior person on the team, already juggling six other things, now expected to carefully read through 1,200 lines of code they didn’t write, generated by a tool whose reasoning they can’t fully trace.</p><p>We got so excited about the writing that we forgot about the reading.</p><h3>The numbers are brutal</h3><p>GitHub’s Octoverse report shows PR volume jumped 29 per cent year on year, with about 41 per cent of new code now AI-assisted. But the really eye-opening data comes from Sonar’s 2026 State of Code survey of over 1,100 developers.</p><p>96 per cent of developers don’t fully trust that AI-generated code is functionally correct. Nearly every developer using these tools knows the output might be wrong, but they’re shipping it anyway because the speed is too good to give up.</p><p>61 per cent agree that AI often produces code that “looks correct but isn’t reliable.” That’s the worst kind of bug: the kind you don’t catch because everything looks fine.</p><p>38 per cent say reviewing AI-generated code actually requires more effort than reviewing code written by their colleagues. AI was supposed to save time. For over a third of developers, it’s created more review work, not less.</p><p>And only 48 per cent always check their AI-assisted code before committing. Half the code being generated by machines that 96 per cent of developers don’t fully trust is going into production with, at best, a quick glance.</p><p>Meanwhile, the number of senior engineers qualified to review complex changes hasn’t grown at all. Those engineers are busier than ever, now also managing agents, writing prompts, and defining guardrails. Review queues pile up. Developers cram unrelated changes into bigger PRs. Reviewers start rubber-stamping. Studies show only 24 per cent of PRs over 1,000 lines get any review comments at all.</p><p>Sonar calls this the verification bottleneck. 95 per cent of developers spend at least some effort reviewing and correcting AI output, and a majority rate that effort as “moderate” or “substantial.” The old toil of debugging legacy code got replaced by new toil: managing AI-generated technical debt. When they asked what the most important developer skill will be in the AI era, the number one answer at 47 per cent was reviewing and validating AI-generated code. Not prompting. Not generating. Reviewing.</p><h3>AI review bots aren’t the answer</h3><p>The industry’s first instinct was predictable: throw more AI at the problem. We got a wave of review bots that scan diffs, leave comments, flag issues. Some are decent at catching null checks and style inconsistencies.</p><p>But a bot that leaves twenty comments on a 2,000-line diff hasn’t actually helped. It’s just given the reviewer twenty more things to think about on top of the 2,000 lines they were already struggling through.</p><p>AI reviewers work brilliantly on small, focused changes. Hand one a 150-line diff with a clear purpose and it’ll give you genuinely useful feedback. Hand it a 1,000-line monster and it falls apart. The tool didn’t get dumber. You just gave it an impossible job.</p><p>The problem isn’t the reviewer, human or AI. The problem is the shape of the thing being reviewed.</p><h3>Change the shape of the work</h3><p>This is where stacked diffs come in, and I genuinely believe this is the most important workflow shift happening in software right now.</p><p>Instead of bundling an entire feature into one enormous pull request, you break it into a sequence of small, dependent changes. Each one builds on the last. Each one is small enough to actually read properly. Each one does one thing.</p><p>A 1,000-line PR becomes maybe three stacked changes: 800 lines of scaffolding (the boring, mechanical stuff that’s quick to scan), 150 lines of core business logic (where the real decisions live), and 50 lines of edge case handling. Each gets its own PR. Each gets reviewed on its own terms.</p><p>Facebook built Phabricator around this. Google’s Critique works the same way. They figured out years ago that small, atomic changes are easier to write, review, test, and roll back. What’s new is that stacked diffs have gone from “nice practice at big tech companies” to “the only way any of this works” once you add AI agents to the mix.</p><p>Picture a normal Tuesday in 2026. You ask Claude Code to refactor the auth module. While that’s running, you fire up Gemini CLI to add a new API endpoint. A third session writes overdue tests. Every developer on the team is doing the same. The average team now juggles four different AI tools, according to Sonar’s data.</p><p>And at the end of the pipeline, there’s Dave. Dave is your tech lead. Dave has three meetings this afternoon and hasn’t eaten lunch. Dave is going to look at your 1,800-line PR, scroll to the bottom, and hit approve because he trusts you and he’s got fourteen more to get through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ub1kcwMQNVEOk9UHBKsrtA.png" /><figcaption>We can’t keep doing this to Dave.</figcaption></figure><h3>Micro-PRs: give everyone a piece</h3><p>Here’s the part of this conversation that’s been missing. Stacked diffs don’t just make reviews smaller. They make it possible to spread the review across the team.</p><p>A single 1,500-line PR needs one reviewer who understands the whole thing end to end. That’s almost always a senior engineer. Nobody else can meaningfully contribute.</p><p>But break that same change into five stacked diffs and now you’ve got options. The scaffolding diff goes to a mid-level engineer who knows the code conventions. The database migration goes to whoever owns the data layer. The business logic goes to the domain expert. The test coverage diff? Anyone on the team can review that.</p><p>You’ve turned one impossible job into five manageable ones. The senior engineer still reviews the critical architectural piece, but they’re reading 150 lines instead of 1,500. Everyone else contributes meaningfully instead of standing on the sidelines.</p><p>This matters even more when you consider the Sonar data on the experience gap. Junior developers estimate 45 per cent of their committed code is AI-assisted, and 40 per cent of them say reviewing AI code takes more effort than reviewing human code. Micro-PRs give them a way to participate in review rather than being locked out because only a senior can review the whole thing.</p><h3>The objections don’t hold up</h3><p>“Managing stacked branches is a pain.” It used to be. Tooling like Graphite has caught up: auto-rebasing, tracking dependencies, keeping the stack in order. The mechanical friction is mostly gone.</p><p>“It adds overhead.” The effort of breaking work into small, clear pieces is the effort of thinking properly about what you’re building. Either you do it upfront when it’s cheap, during review when it’s expensive, or in production when something breaks at 2am.</p><p>“Just let AI review AI code.” AI can spot patterns and flag bugs. It can’t tell you whether the architectural choice makes sense for your product, whether the API will confuse your users, or whether this approach clashes with a decision your team made three months ago in a meeting that never got documented. Human judgement requires a manageable amount of code to judge.</p><h3>What needs to change</h3><p>Three things. First, coding agents need to produce stacked changes by default. When you ask Claude Code to build a feature, it should give you a stack, not one massive diff. Graphite’s MCP integration already teaches agents to do this. It shouldn’t need a plugin. Every agent should think in stacks natively.</p><p>Second, review platforms need to catch up. GitHub’s PR interface was built for one person opening one PR and one person reviewing it. That world is gone. We need interfaces built around sequential, dependent changes with first-class support for assigning different parts to different reviewers.</p><p>Third, teams need to let go of big PR culture. A 2,000-line pull request doesn’t signal productivity in the age of AI. It signals that nobody is going to review your work seriously.</p><p>88 per cent of developers already report at least one negative impact from AI on their technical debt. The gap between generation speed and review capacity is widening every month. If we don’t fix this, we’re heading towards codebases full of AI-generated code that no human has properly looked at. Not because anyone decided to skip reviews, but because the reviews became physically impossible to do well within the old model.</p><p>The fix isn’t a smarter bot or more senior engineers. It’s changing the shape of the work so that real review remains possible.</p><p>The agents are writing faster than ever. It’s on us to make sure humans can still keep up.</p><p>And Dave could really use the help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d14a81f9c662" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is AI coming for your job? The answer depends on one thing: context]]></title>
            <link>https://medium.com/@jonathan.demontalembert/is-ai-coming-for-your-job-the-answer-depends-on-one-thing-context-a6f41d013222?source=rss-79512a7f6623------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6f41d013222</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Le Jon]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 09:57:20 GMT</pubDate>
            <atom:updated>2026-02-02T09:57:20.732Z</atom:updated>
            <content:encoded><![CDATA[<p>If you spend five minutes on X or Reddit, you’ll see two completely different realities.</p><p>In one reality, AI is a “glorified autocomplete” that hallucinates half its logic. In the other, it’s a job-killer that has already made the junior developer obsolete.</p><p>Why the massive divergence in opinion? How can two groups of smart people look at the same technology, Large Language Models, and see two entirely different futures?</p><p>It isn’t about how optimistic or pessimistic you are. It’s about <strong>context.</strong></p><h3>The two types of coding</h3><p>The debate exists because we use the word “coding” to describe two very different activities.</p><p>On one hand, you have <strong>low-context coding</strong>. This is the world of boilerplate, standalone functions, CSS centering, and generic API endpoints. It’s the kind of work where the “requirements” are self-contained. If I ask an AI to write a Python script that scrapes a website and saves it to a CSV, the AI has 95% of the context it needs just from that prompt.</p><p>In this lane, the skeptics are wrong: AI isn’t just helping; it’s winning. Low-context coding is great for quick concepts and prototyping where you just need to see if an idea works. However, if your value is purely your ability to recall syntax and write these isolated functions, the clock is ticking.</p><p>On the other hand, you have <strong>high-context engineering</strong>.</p><h3>The fortress of context</h3><p>High-context engineering is where the “safe” developers live. This work isn’t about writing code; it’s about navigating a massive, messy web of dependencies, both technical and human.</p><p>When you’re building in a complex system, the “code” is the easy part. The hard part is knowing:</p><ul><li>How this new feature impacts the legacy database schema from 2014.</li><li>Why the marketing team’s specific edge case makes a “standard” implementation impossible.</li><li>How to balance technical debt with a looming Product-Market Fit deadline.</li></ul><p>AI, in its current state, struggles with this. It doesn’t know your company’s “unwritten” rules. It doesn’t understand the nuance of your specific business logic or the weird quirk in your microservices architecture that only the lead dev remembers.</p><h3>The divergence explained</h3><p>The people saying AI will replace developers are looking at the <em>output</em> (the lines of code). The people saying it won’t are looking at the <em>input</em> (the tribal knowledge and system complexity).</p><p>For all intensive purposes, if a developer can build something without taking much context into consideration, then yes, AI can, and will, replace them. If you are a “ticket taker” who converts Jira tasks into syntax without asking <em>why</em> or <em>how</em> it fits the larger puzzle, you are in the danger zone.</p><p>But if your job requires expert knowledge of how many moving pieces work together, you aren’t just a developer anymore. You’re an architect.</p><h3>How to stay relevant</h3><p>The shift is clear: <strong>We are moving from being “writers” to “editors” and “architects.”</strong></p><p>To stay “safe” in the age of AI, you have to lean into the things an LLM can’t see.</p><ol><li><strong>Understand the business:</strong> Don’t just learn React; learn why your company is using it to solve a specific customer pain point.</li><li><strong>Master system design:</strong> Focus on how data flows between systems. The more “pieces” you understand, the more indispensable you become.</li><li><strong>Embrace complexity:</strong> Don’t shy away from the messy, legacy parts of the codebase. That mess is your job security. It’s the one place an AI can’t go without a human guide.</li></ol><p>The future of development isn’t about who can write the most code; it’s about who has the most context. If you want to keep your seat at the table, make sure you’re the person who can understyand the system, not just the script.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6f41d013222" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Code: Ship Clean, Secure, and Maintainable Code with Almost No Effort]]></title>
            <link>https://medium.com/@jonathan.demontalembert/claude-code-ship-clean-secure-and-maintainable-code-with-almost-no-effort-e68bc4c11a0e?source=rss-79512a7f6623------2</link>
            <guid isPermaLink="false">https://medium.com/p/e68bc4c11a0e</guid>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Le Jon]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 03:33:33 GMT</pubDate>
            <atom:updated>2025-08-11T03:33:33.870Z</atom:updated>
            <content:encoded><![CDATA[<p>What if writing clean, secure, maintainable code was no longer a time-consuming trade-off, but just the default? Picture yourself staring at a messy function, weighing the familiar questions: <em>Should I abstract this? Break it down? Pull in Redux? And will I still hit the deadline?</em></p><p>For years, that was the reality, a constant balancing act. You knew what the “right” fix looked like, but the looming sprint deadline, the pile of tickets, and the risk of slipping a release date often tipped the scales toward “good enough for now.”</p><p>And “good enough” comes at a cost. Stripe’s <em>Developer Coefficient</em> study found developers spend an average of <strong>17.3 hours/week on maintenance, 13.5 hours on technical debt</strong> and <strong>3.8 hours wrestling with bad code</strong>, out of a <strong>41.1-hour</strong> week. That’s about <strong>42%</strong> of your week not going toward new work (<a href="https://stripe.com/files/reports/the-developer-coefficient.pdf">Stripe report, 2018</a>).</p><h3>A Real-World Maintenance Headache</h3><p>Let’s say you have a feature that creates and updates users. In a rush, you copy and paste the same logic into several files because it “just works.”</p><p>Every time you change the structure (say, adding a phone number), you have to update it in every place you copied the logic and hope you don’t miss one. This is how hours get lost in maintenance.</p><h3>The Shift: Claude Code</h3><p>With Claude Code, you can describe your intention and instantly get a cleaner, more maintainable approach without debating whether you have the time for it. The exact definition of “clean” can be subjective, but Claude lets you define those standards up front.</p><p>And here’s the beauty of it: duplication checks, naming conventions, formatting rules, preferred file structures, and security best practices, they can all be <strong>baked in</strong> from the start. Whether it’s through <strong>Claude Commands</strong>, <strong>Claude Agents</strong>, or a shared <strong>CLAUDE.md</strong> file that defines your standards, the rules are already in place. All you have to do is call a command, run an agent, or rely on your <strong>CLAUDE.md</strong> setup, and bad code never makes it into the codebase.</p><p>With <strong>Claude Commands</strong>, you can quickly instruct the AI to perform specific clean-up tasks like “optimise imports,” “convert callbacks to async/await,” or “add JSDoc comments”, all without leaving your flow. Combine that with <strong>Claude Agents</strong>, which can run before each push to continuously check for code smells, enforce your standards, verify file structure, and even suggest architectural improvements. After generating code, these agents can also run a full <strong>TypeScript check</strong>, an <strong>ESLint check</strong>, and optionally <strong>execute tests</strong> on new or changed files to ensure the code is valid and ready to merge.</p><h3>Tips for Using Claude Code with a React Codebase</h3><ol><li><strong>Smart vs. Dumb Components</strong> — Separate logic-heavy “smart” components from purely presentational “dumb” components to keep concerns clear and make components easier to test and reuse.</li><li><strong>TypeScript Quality</strong> — Have an agent or command enforce strict TypeScript usage, including Generics, utility types, and advanced type guards, ensuring every prop and data shape is precise, maintainable, and self-documenting. Avoid using any at all costs, any is a code smell that undermines type safety. Claude-generated code should never rely on any unless absolutely unavoidable.</li><li><strong>DRY State Management</strong> — Avoid repeating state logic across components. Use shared hooks, context, or state management libraries, and have Claude flag duplicated logic.</li><li><strong>Accessibility</strong> — Enforce accessible design patterns (ARIA attributes, proper semantic HTML, focus management) so the app works for everyone. Accessibility not only broadens usability but also makes automated and manual testing easier.</li><li><strong>Security in UI Code</strong> — Use commands to scan for unsafe HTML rendering and enforce React’s dangerouslySetInnerHTML rules. Add automated secret scanning so that no API keys, credentials, or other sensitive data ever make it into your commits.</li><li><strong>Preferred File Structure</strong> — Ensure the application’s file structure matches your preferred or team-approved structure for clarity, scalability, and ease of onboarding. If you like, you can adopt an opinionated approach like <a href="https://github.com/alan2207/bulletproof-react">React Bulletproof</a> to enforce consistency and long-term maintainability.</li><li><strong>Readable JSX</strong> — Enforce formatting rules for JSX attributes and nesting, so complex components remain readable.</li><li><strong>Separation of Business Logic &amp; Concerns</strong> — Apply strict separation of concerns by isolating business logic from presentation logic. Structure your app into encapsulated, modular units where each module has a single responsibility. This allows you to test business logic in isolation without mounting entire components, improves maintainability, and makes the codebase more resilient to changes.</li><li><strong>Testing Standards</strong> — Have agents prompt you to add or update unit tests when components or hooks change.</li><li><strong>Custom Configurations</strong> — Allow any custom configuration that aligns with your team’s specific practices and conventions, ensuring flexibility without sacrificing consistency.</li></ol><p>By baking these rules into Claude via commands, agents, or <strong>CLAUDE.md</strong>, your React codebase can stay consistent, type-safe, maintainable, accessible, and secure without slowing you down.</p><h3>Why This Changes Everything</h3><p>Before AI, improving code quality meant extra cost. Now, it’s almost free. Which means:</p><ul><li>No excuse for bad naming.</li><li>No excuse for bloated components.</li><li>No excuse for skipping tests.</li><li>No excuse for inconsistent standards.</li><li>No excuse for insecure code.</li></ul><p>If teams can reclaim even a fraction of that ~42% maintenance time, they can ship more, without cutting quality.</p><h3>The New Default: Relentless Best Practices</h3><p>The question is no longer: <em>Is this worth the effort?</em></p><p>It’s now: <em>Is there any reason not to improve this?</em></p><p>If we can ship faster <em>and</em> at higher quality, there’s no reason to settle for less. Clean, maintainable, secure, well-tested code should be the default, not a luxury.</p><p><strong>Final Thought:</strong> Claude Code didn’t just make us faster it erased the trade-off entirely. The game has changed; our mindset should too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e68bc4c11a0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading large codebase to React 19: the small deliverables approach]]></title>
            <link>https://medium.com/@jonathan.demontalembert/upgrading-large-codebase-to-react-19-the-small-deliverables-approach-b9c43ccf9fba?source=rss-79512a7f6623------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9c43ccf9fba</guid>
            <category><![CDATA[upgrade]]></category>
            <category><![CDATA[package-management]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react18]]></category>
            <category><![CDATA[react-19]]></category>
            <dc:creator><![CDATA[Le Jon]]></dc:creator>
            <pubDate>Fri, 04 Jul 2025 10:31:34 GMT</pubDate>
            <atom:updated>2025-07-06T23:38:08.957Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfn6yVvEIkjYog67rFO8HA.jpeg" /><figcaption>React 19</figcaption></figure><p>I still remember my last major React upgrade. The “big bang” approach we took ended up freezing all feature development for three weeks. It was a painful lesson in how not to handle migrations in a large codebase.</p><p>Upgrading to React 19 can feel just as daunting, but it doesn’t have to be that way. This guide outlines a three-phase process that transforms the entire ordeal into a series of manageable, parallel tasks that won’t stop your team from shipping. <strong>While this guide focuses on React, its principles can be applied to any large package or framework upgrade.</strong></p><h3>Phase 1: Deprecation Cleanup</h3><p>The first step is to address technical debt. Begin by removing all deprecated React 18 APIs and patterns from the codebase.</p><ul><li><strong>Identify Deprecated Code:</strong> Systematically find all uses of outdated APIs, such as legacy lifecycle methods or old context patterns.</li><li><strong>Refactor and Replace:</strong> Replace these with their modern equivalents. This ensures the application is on a stable foundation before any packages are updated.</li></ul><h3>Phase 2: Incremental Package Upgrades</h3><p>The real work happens here. The strategy is to update every package with a React peer dependency one by one. The key is making them<strong> compatible with <em>both</em> React 18 and 19</strong>. This allows everyone to keep working on a stable app while the upgrade happens in the background.</p><ol><li><strong>Build the To-Do List:</strong> In package.json, temporarily set React to ^19.0.0 and run npm install. The flood of peer dependency warnings becomes the upgrade checklist. Copy that list, then immediately revert the change in package.json.</li><li><strong>Pick a Target:</strong> Select one library from the list. The goal is to find the minimum version that supports React 19 but still works with 18. If libraries are tightly coupled, batch them together.</li><li><strong>Update and Test:</strong> Update the library version and run the full test suite. A clean pass confirms there are no regressions with the current React 18 setup.</li><li><strong>Use AI for Tricky Migrations:</strong> For major version jumps with breaking changes, use AI. Have one model do the migration and a second model review the code. It’s a fast, effective way to fix issues.</li><li><strong>Ship the PR:</strong> Each update gets its own pull request. This means small, isolated changes that are easy to review and merge.</li></ol><p>This cycle is repeated for every dependency. The work is easily distributed across the team, turning a huge task into a series of small, parallel steps.</p><h3>Phase 3: The Final Upgrade</h3><p>With the prep work done, the final step is the easiest. The entire application is now primed for React 19.</p><ul><li><strong>Flip the Switch:</strong> In package.json, change the react and react-dom versions to ^19.0.0.</li><li><strong>Final Install and Test:</strong> Run the installation, which now completes without any conflicts. One last, full run of the test suite confirms the success of the upgrade.</li><li><strong>Adopt New Features:</strong> Now the upgrade is complete, the final step is to start refactoring to use React 19’s new features and hooks, unlocking their full potential.</li></ul><p>This isn’t just a theoretical exercise; it’s the exact playbook I’ve used to navigate major upgrades on complex, real-world applications. By breaking the problem down and embracing incremental change, the effort has become a predictable, manageable process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9c43ccf9fba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI Symbiote: Why Deterministic Languages Are the Future of Coding]]></title>
            <link>https://medium.com/@jonathan.demontalembert/the-ai-symbiote-why-deterministic-languages-are-the-future-of-coding-f4a5ce4916e7?source=rss-79512a7f6623------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4a5ce4916e7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[elm]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[agents]]></category>
            <dc:creator><![CDATA[Le Jon]]></dc:creator>
            <pubDate>Thu, 26 Jun 2025 03:30:35 GMT</pubDate>
            <atom:updated>2025-06-26T03:30:35.165Z</atom:updated>
            <content:encoded><![CDATA[<p>AI agents are inherently non-deterministic; they are probabilistic guessers that can “hallucinate functions”, introduce subtle bugs, and create a “cobbled together” mess that requires expert human intervention to fix.</p><p>This reveals a fundamental paradox: the more flexible and forgiving the target language, the more dangerous the AI partner becomes. This leads to a powerful conclusion: the future of AI-assisted development belongs not to flexible languages that tolerate ambiguity, but to highly deterministic languages that rigorously reject it. The non-deterministic nature of AI agents makes a deterministic language like Elm their perfect symbiotic partner.</p><h3>The Flaw in a Flexible Partnership: AI and TypeScript</h3><p>Much of today’s AI-driven coding targets TypeScript. This seems logical, as TypeScript is a pragmatic superset of JavaScript with a vast ecosystem and allows for gradual adoption. However, this pragmatism becomes an Achilles’ heel when paired with a non-deterministic AI.</p><p>TypeScript’s type system is intentionally <strong>unsound</strong>. It prioritises compatibility with JavaScript over provable correctness, leaving “soundness holes” in the type system. The most significant of these is the any type—an escape hatch that disables all of TypeScript&#39;s safety checks.</p><p>An AI agent generating TypeScript will readily use any to bypass type complexities, reintroducing the runtime errors TypeScript was meant to prevent. The developer is left reviewing code that provides a false sense of security, forced into a state of high-stakes vigilance to catch the AI&#39;s plausible mistakes. This is not a partnership; it&#39;s a high-wire act without a net.</p><h3>The Deterministic Guardian: Why Elm is the Ideal AI Target</h3><p>Elm, a purely functional language, offers a different path. It is designed to be <strong>highly deterministic</strong>, with a sound type system, enforced immutability, and a guarantee of <strong>no runtime exceptions</strong>. There are no escape hatches like any; code compiles only if it is provably correct.</p><p>This makes the Elm compiler the perfect “deterministic guardian” for a non-deterministic AI. The workflow becomes a simple, powerful loop:</p><ol><li><strong>Generate:</strong> Prompt an AI to generate Elm code.</li><li><strong>Compile:</strong> Use the compiler’s famously helpful error messages — which provide precise, actionable fixes — to guide the AI to a perfect solution. The compiler doesn’t just fail; it teaches.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*uVdhppeeMepSYKQX47h47g.png" /><figcaption>An example of error with an hint in ELM</figcaption></figure><p><strong>In this symbiotic relationship, the AI provides speed, while the Elm compiler provides an absolute guarantee of correctness.</strong> The developer is elevated from a wary code reviewer to a high-level architect, orchestrating the interaction between a creative but unreliable agent and an infallible logical verifier.</p><h3>The Ultimate Safety Net: Enforced Semantic Versioning</h3><p>Elm’s deterministic guarantees extend into its entire ecosystem via <strong>enforced semantic versioning</strong>. In the JavaScript world, versioning relies on human discipline, where accidental breaking changes in minor releases can cause unexpected failures.</p><p>Elm eliminates this risk. Its package manager uses the sound type system to analyse a package’s API and <strong>automatically detect the exact nature of any changes</strong>. It can tell if a change is a non-breaking addition or a breaking change, ensuring every package follows semantic versioning with perfect, compiler-guaranteed precision. There are no surprises in patch releases.</p><p>This creates an incredibly stable foundation for an AI agent, which has no concept of dependency management. The Elm toolchain guarantees that updating dependencies will never introduce unexpected failures — a level of stability unattainable in the TypeScript/npm world.</p><h3>The Verdict: Determinism is the Ultimate Partnership</h3><p>Relying on AI agents with flexible languages is a gamble. It trades long-term stability for short-term speed, leaving a trail of unmaintainable code and technical debt. Professional software development demands a more robust foundation.</p><p>The confidence developers seek is found not in the probabilistic suggestions of an AI, but in the certainty of a deterministic partner. Elm, with its guiding compiler, enforced purity, and guarantee of no runtime errors, provides this certainty.</p><p>This doesn’t mean AI has no place. In fact, Elm’s strictness makes it the <strong>safest possible target for AI code generation</strong>. A developer can use an LLM to generate an initial draft, then rely on the Elm compiler as the ultimate, infallible code reviewer. The AI provides the speed; the compiler ensures perfection.</p><p>Ultimately, the choice is between building on a foundation of guesswork or a foundation of guarantees. For developers who value long-term maintainability, unparalleled reliability, and the peace of mind that comes from a truly trustworthy coding partner, Elm is the clear answer. It delivers the confidence to build, refactor, and create without fear.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4a5ce4916e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Embarking on a Journey: From Being a Muscle to Being a Brain]]></title>
            <link>https://medium.com/@jonathan.demontalembert/embarking-on-the-developers-journey-from-extra-hands-to-visionary-architect-0cb074d519b8?source=rss-79512a7f6623------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cb074d519b8</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[careers]]></category>
            <dc:creator><![CDATA[Le Jon]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 11:53:35 GMT</pubDate>
            <atom:updated>2025-02-19T12:48:24.722Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of software engineering, professionals often go through a transformative journey. Evolving from hands-on contributors to strategic thinkers. I believe that there are 4 phases in this evolution:</p><p><strong>Phase 1: The Muscle</strong></p><p>In the beginning, the professional will function as additional support, assisting seasoned professionals with fundamental tasks. This stage is akin to integrating more muscle; initial efforts may seem uncoordinated as one acclimates to the workflow.</p><p><strong>Phase 2: The Learning Curve</strong></p><p>With accumulated experience, they will enhance their problem-solving abilities. They will transition from simply executing tasks to understanding underlying principles, leading to more autonomous and efficient contributions.</p><p><strong>Phase 3: The Cognitive Leap</strong></p><p>As expertise grows, their capacity for coming up with new ideas and strategic planning will surpass their capacity for manual execution. This will necessitate collaboration with additional team members to implement concepts, allowing seasoned developers to focus on higher-level problem-solving and design.</p><p><strong>Phase 4: The Brain</strong></p><p>Ultimately, you assume the role of architects, concentrating on conceptualisation and system design. Direct coding becomes secondary to drafting blueprints and frameworks that guide the project’s and collaborators’ direction, ensuring the realisation of their vision.</p><h4><strong>As a Professional</strong></h4><p>Consider your current position within these phases. Do you feel you’re progressing toward the next step? If you find yourself stagnating or lacking the drive, it might be worth evaluating whether a career in engineering aligns with your passions and goals. Continuous growth and enthusiasm are essential in this ever-evolving field.</p><p>It’s natural to face challenges, but a genuine interest in overcoming them is crucial for long-term success in software development.</p><h4>As an Employer</h4><p>It’s crucial to identify the current composition of your team. Do you require ‘muscle’ — adept at executing tasks? Or is there a need for ‘brains’ — strategic thinkers who can architect innovative solutions? Perhaps a balance of both is essential to drive your projects forward. Understanding these needs will guide your hiring strategies and team development, ensuring that you have the right mix of talent to achieve your organisational objectives.</p><h4><strong>The Dynamics of ‘Brains’ and ‘Muscle’</strong></h4><p>While ‘muscle’ roles are typically task-oriented and less prone to ego clashes, ‘brains’ roles often involve strategic decision-making and can be susceptible to conflicts arising from differing visions and approaches. Recognising and managing these dynamics is crucial for maintaining a harmonious and productive team environment. Implementing clear communication channels, fostering a culture of feedback, and promoting emotional intelligence can help mitigate ego-related issues and enhance collaboration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cb074d519b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>