<?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 Przemyslaw Nowak on Medium]]></title>
        <description><![CDATA[Stories by Przemyslaw Nowak on Medium]]></description>
        <link>https://medium.com/@przemyslaw-nowak?source=rss-d34ba2dc7004------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_IrQFZaRUv-gVrokqyDN-Q.jpeg</url>
            <title>Stories by Przemyslaw Nowak on Medium</title>
            <link>https://medium.com/@przemyslaw-nowak?source=rss-d34ba2dc7004------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:49:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@przemyslaw-nowak/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[Express your application as a graph: how we generate and verify full enterprise use cases]]></title>
            <link>https://medium.com/codestrap/express-your-application-as-a-graph-how-we-generate-and-verify-full-enterprise-use-cases-378acfe6f140?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/378acfe6f140</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 15:49:20 GMT</pubDate>
            <atom:updated>2026-11-07T15:49:20.912Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*avpTZKWWc82r1zELLY0R9Q.png" /></figure><p>AI can write code faster than any team I have worked with. That part of the problem is effectively solved. What is not solved is trust. When a coding agent produces thousands of lines in an hour, the old safety mechanism, an engineer reading the change line by line, stops working. It does not scale, and frankly it was never as reliable as we liked to pretend.</p><p>At Codestrap we build enterprise applications with Archie, our coding agent. Our approach combines graph engineering, daily evals, verification instead of line-by-line review, and focused iteration from a first generated version to a working use case. This article puts those pieces together into one story, because none of them works well on its own.</p><h3>The problem: AI code you cannot trust by reading it</h3><p>The usual way to make generated code safe is to review it. For a small change, that is fine. For a full application, it is not. A multi-actor enterprise system has pages, modules, components, API routes, data access, workflows and integrations. Reading all of that carefully takes longer than generating it, and a tired reviewer on line four thousand is not a guardrail.</p><p>The deeper issue is that reading code only tells you what the code does. It does not tell you whether the system has the shape you intended. If the agent is free to decide the architecture as it goes, every generation is a new design, and every review is an attempt to reverse engineer that design from the output. Without a contract to check against and a way to measure results, each run is a gamble.</p><p>You cannot simply let an agent run. In an enterprise setting you need to gate the architecture of data flows and the architecture of the application. You may never look into most of the generated code, but you must have guardrails.</p><h3>The graph is the contract</h3><p>We do not start with code. We start with a graph.</p><p>Before Archie writes a single line, the application already exists as a directed acyclic graph. Every node has a layer and explicit dependencies. This is what I mean by graph engineering: architect the application on graphs first, then build it, with each stage gated by checks.</p><p>To make this concrete, take a multi-actor document extraction and review use case. Its graph has 120 nodes:</p><p>- 7 pages<br>- 11 modules<br>- 36 components<br>- 17 API routes<br>- 27 delegates<br>- 9 service hooks<br>- 5 DAOs<br>- 1 workflow with around six stages</p><p>The application serves four human roles and connects to three export integrations plus an LLM.</p><p>The diagram itself is not the point. The point is that the architecture is settled before code exists. Layers cannot leak into each other. Dependencies cannot appear out of nowhere. Generation fills in the nodes; it does not get to redesign the system on the way.</p><p>This is also where human review moves. Engineers and stakeholders review and agree on the graph, because the graph is small enough to reason about and expresses the decisions that actually matter: what the system consists of, which parts may talk to which, and how data flows through it.</p><p>There is an important difference between this and documentation. Documentation describes what someone hopes the code does, and it drifts the moment the code changes. A graph that the generator must satisfy, and that the output is checked against, is something else. The graph is a contract, not documentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*hQU81T4OM_RNoKz7G7cyVw.gif" /></figure><h3>From graph to a first working version in about an hour</h3><p>Once the graph is generated, Archie creates the application from it. Each node becomes code with a defined place in the system, and that code comes with the tests that will later be used to verify it.</p><p>In about an hour, we reach a first working version: an application that builds, passes its tests and matches its graph. The speed matters less than what makes it repeatable. A fast generator that produces a different quality of result every time is not something you can build a delivery promise on. That is why we measure it.</p><h3>Daily evals: the system is measured, not the demo</h3><p>At Codestrap we run the Codestrap Challenge: bring us your use case, and we will build it end to end within 24 to 48 hours to enterprise production quality. A promise like that cannot rest on reading a few generated files or on one good demo. It has to rest on evidence about the system that produces the applications.</p><p>So Archie runs through a series of eval suites every day. We test the quality of the applications it produces, from builds and interaction tests to engineering checks. The results are tracked from run to run.</p><p>What I value most about this is not the good days. Good results are evidence, but they are not the end of the work. The daily runs also expose regressions, failed checks and the places where the generator needs to improve. Our eval views show those failures openly, alongside the passing results, because hiding them would defeat the purpose of measuring.</p><p>When the evals point at a weakness, we improve the generator and measure the effect in the following runs. That loop is the important part. A single strong run proves very little. A system that is evaluated every day, where changes are judged by their measured effect, is something an engineering organization can reason about.</p><p>We are not evaluating one polished demo. We are evaluating the system that produces the applications. Good code is the output. Daily evaluation is the engineering discipline behind it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_i701Kxj_Rv-bZfXcrQy-Q.png" /></figure><h3>Verify, don’t read</h3><p>When Archie generates an application, nobody reads it line by line. That is not negligence. It is a different division of labor between machines and people.</p><p>Verification is not a single technique. We use a broad set of checks, and for an average enterprise use case that comes to between 2,500 and 3,000 checks. They fall into several kinds, each answering a different question:</p><ul><li>AST checks verify that every graph node is present in the code, sits in its declared layer and has only the dependencies the contract allows. This is where the graph stops being a picture and becomes enforceable.</li><li>API integration tests check how the connected system actually behaves, beyond whether the pieces exist.</li><li>Screenshot testing and interaction tests help catch regressions in what users see and in how they use the application.</li></ul><p>Together these let machines do what machines are good at: checking structure and behavior deterministically, at a volume no human reviewer could match, and doing it the same way on every run.</p><p>That frees the engineer for the part machines cannot judge. Does this application meet the requirements? Do the four roles get the right screens? Does the review step behave the way the business expects? These are questions of meaning, and they need a person who understands the domain.</p><p>Reading thousands of generated lines is slow and unreliable. Verifying structure and behavior with machines, and requirements with a human, is neither. Machines check structure. Humans check meaning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-j9BjR_0zF0mLVVllfLwNQ.gif" /></figure><h3>From the first hour to a full working use case</h3><p>After the first hour of code generation, we have an application that builds, passes its tests and matches its graph. What we do not yet have is a finished use case, because a generated baseline is rarely everything the business needs on the first pass.</p><p>The next stage is focused engineering iteration. Engineers work through the requirements against the running application, find what is missing or wrong, and correct it. After a few more hours of this, the full multi-actor use case works end to end: every role, every workflow stage, every export.</p><p>That is the difference between a demo and an IT asset that delivers business value.</p><p>For context, in my experience a system of this size usually takes weeks before its first end-to-end flow exists. I am not offering that as a benchmark, only as the frame most engineering teams will recognize.</p><p>How the iteration is done matters as much as how long it takes. When something is wrong, the preferred fix is not a patch in the generated application. It is a fix in the generator, or in the graph, so the problem stays fixed for every future application rather than just this one. The daily evals then confirm whether that fix helped and did not break anything else.</p><h3>What changes for engineering teams</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7ku1Gd6AOPiZx9pt-8LFA.jpeg" /></figure><p>None of this means engineers matter less. The work moves.</p><p>Engineers spend less time writing code by hand and less time reading code someone else, or something else, wrote. They spend more time on three things:</p><ul><li>Defining the graph. The contract is where architectural decisions are made and agreed, and it deserves the same care we used to give to the code itself.</li><li>Verifying requirements, not syntax. Structure and behavior are checked by machines at scale. The human judgment goes where it is irreplaceable: whether the system does what the business needs.</li><li>Improving the generator. Every fix made at the generator level pays off on every application that follows, and the evals show whether it did.</li></ul><p>Review shifts accordingly. Instead of reviewing diffs, teams review the contract and the evidence: the graph before generation, and the eval and check results after it. That is a smaller, more meaningful surface, and it is one that holds up as the volume of generated code grows.</p><p>This is how speed and quality stop being a trade-off. Speed comes from generation. Confidence comes from the contract, the checks and the daily measurement around it. Neither works without the others: a graph nobody verifies against is just a diagram, checks without a contract have nothing precise to check, and a generator that is not measured every day cannot be trusted twice.</p><p>The engineer’s job does not disappear. It moves up a level.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=378acfe6f140" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codestrap/express-your-application-as-a-graph-how-we-generate-and-verify-full-enterprise-use-cases-378acfe6f140">Express your application as a graph: how we generate and verify full enterprise use cases</a> was originally published in <a href="https://medium.com/codestrap">Codestrap</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Dev 2027: The End of the AI Honeymoon and the Return of the Expert Engineer]]></title>
            <link>https://przemyslaw-nowak.medium.com/web-dev-2027-the-end-of-the-ai-honeymoon-and-the-return-of-the-expert-engineer-2bdca786006f?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bdca786006f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Fri, 03 Jul 2026 20:15:01 GMT</pubDate>
            <atom:updated>2026-07-03T20:15:01.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lNM5_OijC-kbx451nKCY1w.png" /></figure><h3>The Recap — From the Full-Stack Shift to the Agentic Boom</h3><p>When I look back at the narrative arc of my previous articles, a clear evolution of our industry and a necessary correction to my own predictions emerges.</p><p>In March 2024, I wrote about the gradual <a href="https://javascript.plainenglish.io/the-disappearance-of-frontend-engineers-how-ai-full-stack-redefine-web-development-ffd16d3b4315">disappearance of the hyper-specialized frontend engineer</a>. The data I presented then pointed to an undeniable trend: the rise of full-stack meta-frameworks was forcing a shift from deep, isolated specialization toward a broader, pragmatic one. The new baseline expectation was set — thanks to modern tooling, one person simply had to deliver more, owning features end-to-end.</p><p>By April 2025, the focus had shifted to <a href="https://medium.com/brainly/web-dev-2025-how-enterprises-can-thrive-with-ai-dca89b34f802">how enterprises could thrive in this new reality</a>. My thesis was that engineers needed a much broader understanding of both business logic and system architecture to effectively orchestrate AI tools. I still firmly stand by the core of that idea: building robust software today requires feeding AI context, enforcing strict patterns, and utilizing monorepos, code generators, and opinionated meta-frameworks.</p><p>At the time, I believed the ultimate architecture to achieve this would consist of specialized agents working <em>through</em> MCP (Model Context Protocol) to feed into a single, massive frontier model. My vision was that these domain-specific agents would essentially act as MCPs themselves, routing context to serve one central “god brain.”</p><p>Since that realization, we’ve experienced the true Agentic Boom. It wasn’t just a gradual tooling update; it was a fundamental shift in how we interact with software. We saw the meteoric rise of tools like Cursor, with IDEs aggressively defaulting to “agentic mode.” The developer’s primary interface shifted from writing lines of code to chatting, reviewing, and steering. CLI tools like Claude Code and Codex became standard terminal companions.</p><p>Behind this explosion was a deliberate, massive token subsidization — AI labs and cloud providers essentially absorbed the gargantuan compute costs to encourage developers to delegate as much work to AI as humanly possible. It was an era defined by the breathless race of frontier models, relentlessly pushing the boundaries of reasoning and context limits, purely to see what was technically possible to automate.</p><p><strong>The Reality Check</strong></p><p>But while the industry was hyping up this revolution, I was watching a very different reality unfold on the ground within my own teams. Despite the massive tooling adoption, the promised enterprise success stories simply weren’t materializing.</p><p>This glaring reality stood in stark contrast to my earlier vision. I had imagined a world where a general full-stack developer could smoothly delegate tasks to specialized agents, evaluate the output, learn new domains on the fly, and deliver robust code. Instead, this heavy reliance on agentic loops and a central “god brain” via MCP proved to be fundamentally broken. The architecture failed because it silently assumed the presence of a highly experienced Senior Engineer at every turn. Only a Senior possessed the deep, systemic intuition required to catch the model’s bizarre and erratic behaviors. A less experienced developer couldn’t easily tell when the monolithic model called the wrong MCP, or worse, when it bypassed the tools entirely to hallucinate a solution based on generic training data that wildly violated our internal company standards. Without that extensive background knowledge, a junior or mid-level engineer couldn’t spot that the output was fundamentally inferior to what a truly specialized, isolated agent would have delivered. They weren’t safely evaluating and learning new domains; they were just getting bypassed by a model taking confident, but incorrect, shortcuts.</p><p>We don’t just have anecdotal evidence for this anymore — the data backs it up. A recent <a href="https://www.nber.org/system/files/working_papers/w35275/w35275.pdf">NBER working pape</a>r perfectly encapsulates this illusion of productivity. Tracking over 100,000 developers, the researchers found that while autonomous coding agents drove a massive 180% increase in raw coding activity (commits), these gains attenuated sharply across the production hierarchy, resulting in only a 30% increase in actual releases. As the paper points out, this phenomenon is driven by the “weak-link hypothesis” — the massive surge in AI-generated code is severely bottlenecked by the human effort required to review, validate, and safely deploy it. We were generating more code than ever before, burning through millions of subsidized tokens, but struggling to actually ship it. The monolithic, agentic approach didn’t democratize development; it just shifted the friction from writing lines of code to the much harder task of steering and reviewing them, creating an unscalable illusion of progress.</p><h3>High-Level — Costs, the End of Subsidies, and the “Right to Intelligence”</h3><p>Before we dive deeper into code and daily workflows, we have to look at the brutal macroeconomic and geopolitical realities of 2026. For the past two years, the tech industry lived in a honeymoon phase of “infinite compute.” AI labs and cloud giants massively subsidized the cost of tokens and API access, absorbing gargantuan compute costs just to hook the industry on their tools.</p><p>That era is over. The subsidies have dried up, subscriptions have skyrocketed, and the true cost of “agentic coding” is finally hitting the CFO’s desk.</p><p><strong>The Uber story</strong></p><p>There is no better symbol of this burst bubble than what recently happened at Uber. In late 2025, the company aggressively rolled out advanced agentic tools to its thousands of engineers. Adoption was rapid, and the metrics looked phenomenal on the surface — a massive percentage of committed code was suddenly AI-generated.</p><p>But by the spring of 2026, the narrative collapsed. Uber’s leadership had to admit a staggering reality: the company had burned through its entire annual AI budget in just the first few months of the year. Individual developers, allowing autonomous agents to run in endless “thinking” loops to solve complex architectural issues, were racking up API bills of up to $2,000 per month per seat. That is 10 to 20 times the cost of traditional developer SaaS licenses.</p><p>More importantly, as Uber’s leadership pointed out, the return on investment simply wasn’t there. Despite burning millions of tokens, it was nearly impossible to correlate those astronomical costs with a proportional increase in actual feature delivery. We were burning budgets not to ship value, but simply to let machines grind through tokens.</p><p><strong>The “Right to Intelligence” and the Geopolitical Trap</strong></p><p>This brings us to a much more dangerous concept: the <strong>Right to Intelligence</strong>.</p><p>In June and July 2026, the U.S. government took unprecedented steps to regulate frontier AI as a matter of national security. Following the discovery of cybersecurity vulnerabilities, the U.S. Commerce Department slapped immediate export controls on Anthropic’s most capable models, Claude Fable 5 and Mythos 5, forcing the company to temporarily pull global access and strictly limit it to vetted domestic partners. Around the same time, OpenAI was pressured to delay the broader release of GPT-5.6, restricting it to a handful of government-approved organizations. Simultaneously, we’ve seen aggressive pushes from leading AI labs to strictly regulate or outright restrict high-tier open-source models, arguing that “frontier intelligence” is too dangerous to exist outside their walled gardens.</p><p>Intelligence is no longer just a luxury commodity; it is a highly regulated, strategic asset subject to sudden government kill-switches.</p><p><strong>Why the “God Brain” Architecture is a Systemic Risk</strong></p><p>This is exactly why the architecture of the “Agentic Loop” powered by a single, monolithic frontier model is so fundamentally dangerous.</p><p>When the industry embraced MCPs (Model Context Protocols) and autonomous agents, the core assumption was: <em>“Tokens will only get cheaper, and the frontier models will only get smarter, so let’s let the giant model do all the routing, thinking, and coding.”</em> But what happens when the model you rely on to act as your engineering team’s “god brain” is suddenly geoblocked by the government? What happens when a model is artificially “nerfed” or censored overnight to comply with new cybersecurity regulations, stripping away its ability to write complex, system-level code?</p><p>If your entire software development lifecycle depends on a general frontier model to orchestrate tasks instead of relying on a human full-stack engineer utilizing isolated, specialized (and inherently safer/less regulated) local agents, your pipeline is incredibly fragile. You are outsourcing your system’s core cognitive engine to a black box that can be restricted at a moment’s notice.</p><p>Relying on this architecture didn’t just drain our budgets without delivering production value. It introduced a massive, uncontrollable geopolitical risk into the very foundation of how we build software.</p><h3>The Path Forward — How Enterprises Can Actually Thrive in 2027</h3><p>Now, let’s get to the core of what I actually wanted to write about. Taking the time to recap and ground ourselves in the chaotic, expensive reality of the AI industry was crucial to understanding the trap we fell into. But we need to move forward.</p><p>So, how can enterprises actually thrive in 2027?</p><p>My core thesis remains fundamentally unchanged: we desperately need full-stack engineers who possess a deep understanding of the business domain and can consistently contribute high-quality, maintainable, low-bug code. The fundamental laws of software engineering haven’t changed just because we invented powerful LLMs. Once we step out of the viral noise (which I believe I’ve dissected enough in the previous sections) and focus strictly on raw engineering, it becomes crystal clear what actually delivers value.</p><p>The critical question every CTO and engineering leader must ask today is: <em>What should we actually equip our engineers with to make them successful?</em></p><p>I still firmly maintain that the answer is <strong>highly specialized AI agents</strong>. However, after the failures of the “god brain” MCP architecture, the paradigm shifts entirely when we ask <em>who</em> builds these agents and <em>how</em> they produce value.</p><p>We don’t need generic agents downloaded from a cloud provider. We need bespoke, internally crafted tools. And this brings us back to a vital discipline: <strong>Platform Engineering and the systematic transfer of expert knowledge.</strong></p><p><strong>Scaling the Expert: The Opinionated Internal Agent</strong></p><p>Instead of hoping a massive frontier model will magically understand your company’s unique tech debt and business logic, organizations must empower their internal domain experts to build specialized, highly opinionated agents.</p><p>Take your company’s top React architect. Instead of spending 60% of their week leaving repetitive comments on Pull Requests, their job should be to codify their expertise into an internal “React Agent.” This agent shouldn’t just write generic React code based on what it read on Stack Overflow in 2025. It must strictly emulate <em>how that specific expert codes</em>. It must forcefully apply the company’s exact state management patterns, component hierarchies, error-handling conventions, and testing standards.</p><p>When you equip your full-stack engineers with these internally crafted, opinionated agents, the ROI is immediate and compounded:</p><ul><li><strong>Absolute Code Consistency:</strong> The code produced across the entire organization becomes homogenized. A feature built by a junior developer starts looking structurally identical to a feature built by your principal engineer. The code is predictable, which drastically lowers the cost of future maintenance.</li><li><strong>Automated Mentorship:</strong> This is the most underrated benefit. When a less experienced engineer pair-programs with this internal agent, they aren’t just getting the work done — they are actively learning the correct company patterns. The agent becomes a mentor, constantly nudging the developer toward the right architectural decisions. We are literally scaling the brain of our top experts across the entire organization.</li></ul><p><strong>The New Mandate for Platform Teams</strong></p><p>To make this a reality, you cannot just hand developers an API key and wish them luck. This requires a robust, purpose-built internal platform.</p><p>I’ve written previously about the absolute necessity of a well-structured monorepo, but that is merely the baseline. In 2027, the Platform Engineering team is the most critical unit in the enterprise. They must build the entire ecosystem surrounding these specialized agents. They need to construct the infrastructure that maintains hyper-local context, feeds internal documentation into the agents, and provides the tooling that allows human experts to seamlessly update and train these agents as internal standards evolve.</p><p>We have to stop treating AI as an autonomous worker meant to replace us, and start treating it as a dynamic, interactive vessel for our own institutional knowledge. That is how you build a resilient, scalable, and thriving engineering organization in 2027.</p><p><strong>Walking the Talk: Why I Joined Codestrap</strong></p><p>This realization isn’t just theory for me. It is exactly why, over half a year ago, I took a leap and joined <a href="https://www.codestrap.com/"><strong>Codestrap</strong></a>. I realized that if the industry was going to survive this bottleneck, someone had to actually build the platform that makes scaling expert knowledge possible.</p><p>At Codestrap, we are building exactly what I’ve outlined above. Our organizational structure is very deliberate and reflects this mission: our business Partners are themselves some of the absolute best experts in the tech industry, working alongside the elite talent we hire. But instead of just having these experts write standard code, their primary mandate is to codify their deep domain knowledge. Each of these experts is crafting a highly specialized AI agent, whether that is a React Agent, an Infrastructure Agent, or a Data Engineering Agent.</p><p>We are effectively building an army of specialized agents and placing that distilled, opinionated intelligence directly into the hands of our junior and mid-level engineers. It creates an environment where newer developers are instantly empowered to deliver high-quality, architecturally sound features, guided by the virtual presence of top-tier experts.</p><p>This level of orchestration requires a flawless foundation, which is why the Codestrap founding team has Platform Engineering baked into its very DNA. We knew the standard tools wouldn’t cut it. To avoid the exact pitfalls I described earlier, our CTO built a proprietary framework called <strong>x-reason</strong>. It allows us to construct these agents using a fundamentally different, significantly more sophisticated architecture than the heavy, fragile “agentic loops” that are currently failing the rest of the industry.</p><p>I point to Codestrap not just as a personal career update, but as a living proof of concept. It stands as the first genuine, scalable success story of AI in coding at an organizational level — a stark contrast to the bloated budgets, token-burning, and stalled productivity we are seeing across tech giants and enterprises right now.</p><p>We finally found the right architecture. It was never about using a monolithic “god brain” to replace the engineer. It is about using highly specialized, heavily opinionated technology to scale the expert. And that is exactly how we win in 2027.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bdca786006f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From “Vibe Coding” to Guided Coding]]></title>
            <link>https://medium.com/brainly/from-vibe-coding-to-guided-coding-d2ba7e526ff3?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2ba7e526ff3</guid>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[code-strap]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[brainly]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 16:44:38 GMT</pubDate>
            <atom:updated>2026-02-21T16:44:38.522Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How Brainly Leveraged Codestrap’s Larry AI to Scale Expertise and Amplify Platform Engineering</strong></p><h3>Executive Summary</h3><p>In the rapidly evolving landscape of AI-assisted development, enterprise engineering teams face a paradox: while generic AI tools increase individual speed, they often introduce unpredictability, security risks, and technical debt at scale.</p><p>This white paper details a pilot program conducted by <strong>Brainly</strong> in partnership with <strong>Codestrap</strong>. By deploying <strong>Larry AI</strong>, an agent powered by <strong>X-Reason</strong>™ technology, Brainly successfully demonstrated that <strong>guided workflows</strong> can outperform generic AI tools in reliability, cost, and safety.</p><p>The pilot focused on “LLMifying” Brainly’s complex Data Access Object (DAO) layer and building custom Larry AI workflow for this area of the codebase. The results were decisive: Larry AI achieved <strong>90% one-shot correctness</strong> , reduced inference costs by <strong>~96%</strong>, and-most critically-enabled mid-level engineers to safely ship code that previously required deep domain expertise.</p><h3>The Foundation: Brainly Gene and the Need for Amplification</h3><p>Brainly’s engineering success is built on <strong>Brainly Gene</strong>, a standardized internal platform housed within an Nx-powered monorepo. This platform enforces architectural consistency, allowing teams to ship fast without reinventing the wheel.</p><p>However, integrating AI into this ecosystem presented a challenge. Standard “copilots” (like Cursor or GitHub Copilot) operate probabilistically — they guess the next token based on training data, often ignoring the strict, bespoke constraints of a mature enterprise codebase.</p><blockquote><em>“Most systems just weren’t ready for AI… The real challenge is shipping fast in a way that is predictable, safe, and aligned with business outcomes.”</em> <br> — <em>Bill Salak, CTO/COO, Brainly</em></blockquote><p>Brainly hypothesized that for AI to be truly viable in an enterprise setting, it must function as an <strong>amplifier</strong> of the existing platform. It shouldn’t just write code; it should write <em>Brainly Gene-compliant</em> code, every time.</p><h3>The Solution: CodeStrap’s Larry AI</h3><p>Brainly engaged <strong>Codestrap</strong> to build a custom “Subject Matter Expert” (SME) agent using <strong>Larry AI</strong>. Unlike chat-based assistants that rely on “prompt engineering,” Larry uses CodeStrap’s <strong>x-reason</strong>™ technology to model coding workflows.</p><p>This approach fundamentally shifts control from the model to the engineering architect:</p><ul><li><strong>State-Based Execution:</strong> The AI follows a strict, pre-defined path (Clarify → Spec → Implement) rather than wandering through a conversation.</li><li><strong>Hygiene by Default:</strong> All execution happens in isolated worktrees and Docker containers, ensuring no side effects pollute the main codebase.</li><li><strong>Resumability:</strong> Workflows are “hydratable,” meaning a task started by one engineer can be picked up by another — or by an automated system — without losing context.</li></ul><h4>A Paradigm Shift in Control</h4><p>This architecture allows platform leaders to define <em>how</em> code is written, rather than hoping the AI figures it out.</p><blockquote><em>“Larry redefines how Software Engineers define how their code is created. Tools like Cursor or Copilot don’t offer the level of end-to-end customization in the AI code-generation flow that’s essential for predictable, high-quality results.”</em> <br> — <em>Radosław Warisch, Staff Software Engineer (Platform Team), Brainly</em></blockquote><h3>Pilot Study &amp; Methodology</h3><p>The pilot compared Larry AI against leading market tools (Cursor and Kiro) on tasks involving Brainly’s <strong>OpenSearch Data Access Layer</strong> — a domain known for its high complexity and strict typing requirements.</p><ul><li><strong>Task:</strong> Generate complex DAO files (Class.db.ts, Assignments.db.ts) adhering to internal schemas.</li><li><strong>Control Group:</strong> Senior engineers using Cursor (with Claude 4.5 Sonnet and Opus 4.5) and Kiro.</li><li><strong>Experimental Group:</strong> Engineers using Larry AI (powered by Gemini 3 Flash and GPT-5-mini).</li></ul><h3>Key Findings</h3><h3>The Efficiency of “Small” Models</h3><p>Because the Larry Platform encodes the knowledge of senior engineers and domain experts, Brainly did not need to rely on the most expensive “reasoning” models to get good results.</p><ul><li><strong>Cost Per Task:</strong> Larry ($0.04 — $0.07) vs. Cursor/Kiro ($1.78 — $3.18).</li><li><strong>Conclusion:</strong> A guided workflow using a cheaper, faster model (Gemini 3 Flash, GPT-5-mini) outperformed workflows using the most expensive models (Opus 4.5, Sonnet 4.5).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2KM_2DmUB54sTgp9PZ4kuQ.png" /><figcaption>Figure 1: The Cost of Intelligence — This chart visualizes the dramatic cost difference between a probabilistic workflow (Cursor/Kiro using large models) and a guided workflow (Larry using small models). Key Insight: <strong>Larry AI achieves a ~96–98% cost reduction</strong> per task compared to standard tools, proving that “reasoning” doesn’t need to be expensive if the workflow is structured.</figcaption></figure><h3>Quality Through Guided Workflows: One-Shot Precision vs. Iterative Repair</h3><p>The most critical efficiency metric was not just the quality of the first draft, but the total effort required to reach production-ready code.</p><ul><li><strong>Larry AI (1–2 Turns Total):</strong> consistently achieved <strong>80–90% correctness</strong> on the very first shot. Because the agent enforces a strict spec review <em>before</em> writing code, it effectively “measures twice and cuts once.” This high initial accuracy meant the entire task was typically completed in just <strong>1 to 2 turns</strong>.</li><li><strong>Competitors (3–7 Turns Total):</strong> While generic tools (using models like Sonnet 3.5 or Opus 4.5) could reach <strong>60–80% correctness</strong> in their initial output, they rarely finished the job there.</li><li><strong>The “Repair” Cycle:</strong> To bridge the gap from “mostly correct” to “production ready,” engineers had to engage in <strong>3 to 7 additional turns</strong> of prompting.</li><li><strong>The Reality:</strong> A 60% correct answer in software engineering is not a passing grade — it is a bug. The developer is forced to switch from “creator” to “debugger,” spending multiple subsequent turns correcting hallucinations, fixing imports, and realigning the model with internal standards. Larry eliminates this iterative tax.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L5vcwoaXGaEr9B_mN3bjQw.png" /><figcaption>Figure 2: Operational Efficiency (Turns per Task) — This measures the “back-and-forth” required to get the job done. Key Insight: Larry AI typically <strong>completes a complex task in 1 turn</strong>. Competitors often require 3–7 turns of refining, debugging, and prompting to reach the same outcome</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m9vdcJaLcD1a8xEjAJkd3Q.png" /><figcaption>Figure 3: One-Shot Correctness — This chart demonstrates “Reliability.” It compares how often the AI generated the correct code on the first try without needing manual correction. Key Insight: Larry AI consistently <strong>maintains 80–90% correctness</strong>, whereas generic tools fluctuate significantly (60–80%) depending on the user’s prompting skill and domain knowledge.</figcaption></figure><h3>Democratizing Domain Expertise</h3><p>Traditionally, modifying the DAO layer required a Senior Engineer with deep domain knowledge. The pilot showed that Larry AI could bridge this skills gap.</p><ul><li><strong>With Generic Tools:</strong> A “Senior / Power User” was required to supervise the AI and spot subtle bugs.</li><li><strong>With Larry AI:</strong> The agent “abstracted away domain complexity,” allowing <strong>Junior and Mid-level</strong> engineers to complete the same tasks with high quality.</li></ul><blockquote><em>“Larry abstracts away domain complexity perfectly. I didn’t know the DAO domain well, but I didn’t need to point to files it ‘just knew’. Code quality was solid and compliant with standards without manual guidance.”</em> <br> — <em>Mateusz Zabój, Senior Software Engineer, Brainly</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJ4zPFlGuXbqayRBG59dmQ.png" /></figure><h3>Developer Experience: Guided, Not Automated</h3><p>Engineers value <em>guidance</em> over raw automation. Larry didn’t just generate code; it walked the engineer through the solution, acting as an interactive mentor.</p><blockquote><em>“What surprised me about Larry was how it guided me through solving the problem using only our existing codebase patterns. I was led step by step… All of this was achieved at a cost of only a few cents.” <br> — Mateusz Zabój, Senior Software Engineer, Brainly</em></blockquote><p>The Brainly x Codestrap pilot demonstrates that the future of enterprise AI is not just about “smarter” models — it is about <strong>the need for a solid foundation in the form of a good engineering platform</strong>. This echoes what Google’s DORA group found in their <a href="https://dora.dev/research/2025/dora-report/">state of AI coding report.</a></p><blockquote><em>“The research reveals a critical truth: AI’s primary role in software development is that of an amplifier. It magnifies the strengths of high-performing organizations and the dysfunctions of struggling ones.</em></blockquote><blockquote><em>The greatest returns on AI investment come not from the tools themselves, but from a strategic focus on the underlying organizational system: the quality of the internal platform, the clarity of workflows, and the alignment of teams. Without this foundation, AI creates localized pockets of productivity that are often lost to downstream chaos.”</em></blockquote><p>By encoding knowledge of the <strong>Brainly Gene</strong> ecosystem into Larry, Brainly effectively codified its engineering standards into the engineering platform. This transition from “vibe coding” (probabilistic, unsupervised) to <strong>Guided Coding</strong> (structured, verifiable) offers a clear path for organizations to scale their teams safely, reduce onboarding times, and maintain high code quality in the AI era.</p><h3>The Future: From ICs to Organizational Multipliers</h3><p>For Brainly, the success of the Larry AI pilot signals a fundamental shift in how engineering organizations will operate. By moving from probabilistic “vibe coding” to guided workflows, <strong>we are effectively decoupling the domain mastery of high-level producers and encoding it for use by others</strong> (who may not have the same level of mastery or productivity). This doesn’t just mean achieving vastly more productivity across different skill levels; it means a change in team composition and role.</p><p>In this new model, documentation ceases to be a static wiki and becomes “Dynamic Context” — the living ground truth that powers autonomous agents. This allows Junior and Mid-level engineers to contribute safely to complex architectures without extensive ramp-up time or constant supervision. Consequently, our Senior and Staff engineers are freed from the bottleneck of repetitive code review and individual mentorship that does not scale. Their role evolves: they stop being just “writers of code” and become “architects of intelligence,” designing and refining the <strong>Virtual Subject Matter Experts (vSMEs)</strong> that the rest of the organization relies upon. This allows investments in junior engineers to become profitable at a dramatically faster rate. Ultimately, tools like Larry AI are not just productivity boosters — they are organizational multipliers that shorten cycle times for upskilling and training while automating outcomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2ba7e526ff3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainly/from-vibe-coding-to-guided-coding-d2ba7e526ff3">From “Vibe Coding” to Guided Coding</a> was originally published in <a href="https://medium.com/brainly">Brainly Technology Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Platform to Deterministic AI: How Brainly Gene Enabled the Larry AI Pilot]]></title>
            <link>https://medium.com/brainly/from-platform-to-deterministic-ai-how-brainly-gene-enabled-the-larry-ai-pilot-55777cbd50c6?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/55777cbd50c6</guid>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Mon, 05 Jan 2026 14:07:31 GMT</pubDate>
            <atom:updated>2026-01-05T14:07:31.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*KF45Z-cNpI0uPv8tYLE2tQ.jpeg" /></figure><p>AI coding didn’t fail. Most systems just weren’t ready for it.</p><p>It’s easy to bolt an AI assistant onto a large codebase and get a great demo. It’s much harder to make that assistant something your organization can depend on for real features, week after week, without destabilizing everything around it.</p><p>When we started experimenting with AI at Brainly, we realized the key question wasn’t “which model is best?”<br> It was: <strong>what kind of foundation do we need so that AI becomes boringly reliable, not just impressive?</strong></p><h3>How we did it: step one — build the platform</h3><p>At Brainly, shipping fast is not a new goal. The real challenge is shipping fast in a way that is predictable, safe, and aligned with business outcomes.</p><p>A few years ago, we made a deliberate investment in building an internal frontend platform that we now call Brainly Gene. The purpose was not “more frameworks”. The purpose was to make fast delivery repeatable across teams, without increasing architectural debt or cognitive load.</p><p>The patterns behind Brainly Gene are described in <a href="https://2757427.fs1.hubspotusercontent-na1.net/hubfs/2757427/react-enterprise-brainly-nx.pdf?utm_campaign=26453648-Evergreen%20Content&amp;utm_source=Website&amp;utm_medium=Resources&amp;utm_content=react%20enterprise">my free ebook</a>, React for Enterprise. In short, the foundation relies on a few principles:</p><ul><li>Standardized architecture and conventions so engineers don’t reinvent decisions on every task.</li><li>Tooling and enforcement (code generation, rules, automation) so consistency is maintained at scale.</li><li>Modular boundaries that keep the codebase evolvable even as teams and product scope grow.</li></ul><p>This foundation fundamentally changes how speed works inside an engineering organization.</p><p>The latest <a href="https://dora.dev/research/2025/dora-report/"><strong>DORA research</strong></a> on AI and platform engineering more or less formalizes what we’ve seen in practice. By 2025, around <strong>90% of organizations</strong> reported using some form of internal developer platform, and <strong>76%</strong> had dedicated platform teams. More importantly, DORA found that when platform quality is high, <strong>AI adoption has a strong positive effect on organizational performance</strong> and when platform quality is low, the effect of AI is basically negligible. In other words: AI behaves like an amplifier for whatever foundation you already have.</p><blockquote>Platform consistency fundamentally changes the risk profile of fast delivery. When teams build on shared foundations, speed stops being a gamble and becomes a repeatable outcome. Brainly Gene gives us that reliability, which is what ultimately enables real acceleration.<br> —<strong> Bill Salak CTO/COO Brainly</strong></blockquote><h3>Our Early AI Attempts: Always on the Edge, But Not Yet Repeatable</h3><p>Our team has always been on the edge of trying the newest developer productivity tools. When the first wave of LLM tooling arrived, we experimented early. In the early days, we tried building our own AI-powered flow to generate E2E tests. The idea was promising, but the results were not repeatable. Outputs varied too much.</p><p>Later, we made a strong investment in <strong>Cursor</strong> and the emerging ecosystem around <strong>MCP</strong>. We did see a productivity boost especially for experienced engineers who already knew our product, architecture, and codebase patterns.</p><p>But as the person leading this effort, I could see a hard limit: this approach is not scalable.</p><h4>Why Cursor Isn’t Scalable (Even When It Works)</h4><p>Cursor can be a strong tool for a power user with deep domain knowledge. The problem is that the tool assumes the human operator provides the missing structure: the product context, business logic, the internal coding rules, architectural constraints, and validation discipline.</p><p>Imagine that John Carmack joins your codebase tomorrow. Even for someone at that level, to do a single task responsibly he would need to:</p><ul><li>learn your internal conventions and architecture rules,</li><li>understand how the codebase is wired,</li><li>understand product requirements and business logic,</li><li>and only then execute one change</li></ul><p>Then repeat this process again for the next task. This is effectively how generic AI coding tools behave: even with a powerful model, they must “re-derive the world” from scratch each time. That leads to massive token burn and an approach where the engineer must continuously keep the model in check.</p><p>If the operator fails to provide the right constraints, the model fills the gaps with assumptions. In a large production codebase, that is a path to serious problems.</p><p>So our conclusion was simple:</p><ul><li>Cursor is a productivity boost for experienced engineers — but at <strong>high cost and low determinism</strong>.</li><li>Only senior engineers truly benefit, because you need a large amount of domain knowledge to know whether the generated answers are actually correct, aligned with standards, and free from hallucinations or subtle defects.</li><li>And even then, these engineers have to design <strong>ceremonies</strong> around the tool: proper spec design, careful model selection, prompt scaffolding — all to compensate for the fact that you can’t directly control <em>how</em> Cursor engineers a feature. The workflow becomes a ritual to contain unpredictability, rather than a reliable process you can scale across a team.</li></ul><p>At the same time, Cursor is moving toward autonomous agents generating code with less supervision. The latest DORA research is clear that AI amplifies existing system instability when foundations are weak, not the opposite and autonomous agents only increase that risk. Combined with the laws of software evolution, which remind us that every additional line of code is a liability, not an asset, this direction feels fundamentally misaligned with how reliable systems are built. Rather than reducing the failure modes we’ve already seen assumptions, hidden risks, non-determinism, and escalating costs — full autonomy is likely to amplify them.</p><p><strong>We needed a different approach.</strong></p><h3>Larry AI Genesis: Determinism Through State Machines</h3><p>Since the earliest days of the LLM boom, I stayed in contact with <strong>Dorian Smiley (CTO, CodeStrap)</strong>. He had been working on a very interesting approach to controlling AI workflows using state machines, known as <strong>x-reason</strong>.</p><p>From the start, the concept felt different from typical prompt-only approaches. Instead of relying on a single long conversation with a model, it combines LLM reasoning with a set of structured functions — some deterministic, some LLM-assisted that keep the process grounded and repeatable. In practice, the model still figures out the execution plan, but it does so inside a system that guides it toward consistent steps and outcomes.</p><p>Dorian shared multiple examples of real client projects built on x-reason that solved practical problems in a repeatable way. At some point, he suggested a bold idea: apply x-reason to coding. He believed we could get results that are a full class better than Cursor.</p><p>By October, after seeing the results inside CodeStrap’s repository, I knew they had something different. This was not another “AI autocomplete” tool. This was a methodology that could become a real game changer.</p><h3>Larry AI Pilot at Brainly: Building a Subject Matter Expert in Code</h3><p>The key concept behind Larry is simple:</p><p>Larry is a way to create <strong>Subject Matter Experts (SMEs) in code</strong>. Instead of a single generic agent that tries to do everything, Larry enables smaller specialized agents that embody a specific domain: the right questions, the right constraints, the right workflows, and the right outputs.</p><p>This specialization model works because it decomposes the complexity of an enterprise codebase into “expert lanes”. Each lane can be deterministic, repeatable, and deeply aligned with existing architecture patterns.</p><p>In November 2025, we decided to build our first SME around a domain that is both critical and highly specialized: our <strong>data access layer (DAO)</strong> built on <strong>OpenSearch</strong>.</p><p>We have:</p><ul><li>multiple indices for different data groups,</li><li>a specific way of querying,</li><li>and generators that enforce our internal structure.</li></ul><p>With support from CodeStrap, we launched an official pilot program. They helped us understand the key patterns and shape the process correctly and we built “our” Larry for our DAO layer.</p><p>This became our first SME in production code. Spoiler alert: the results were incredible.</p><h4>What Makes Larry Different: Your Workflow, Written as Code</h4><p>Larry is not a generic solution that you “configure” with markdown files or a set of hidden rules.</p><p><strong>Larry is your workflow — written as code.</strong></p><p>Every step can be customized. The entire flow can be changed. That matters enormously when building SMEs, because nothing forces you into a one-size-fits-all process.</p><p>Most of our workflows follow the idea of spec-driven development: clarify what we want to build, create a plan, then implement. That’s a familiar concept.</p><p>But we needed a plan adapted to how we actually build data systems at Brainly, with a strong emphasis on data modeling, schema discipline, and the realities of our OpenSearch layer. Because Larry is fully customizable, we shaped our “spec review” phase exactly the way we needed — focused on our real engineering practices.</p><p>A useful analogy comes from education (which is fitting for Brainly): you don’t learn painting and mathematics using the same system. An art teacher cannot teach math, and a mathematician cannot teach art. The same is true in engineering. A database and querying SME must guide developers through a process optimized for that domain.</p><p>Larry’s code generation is built on top of our existing generators, enriched with AI. This keeps consistency extremely high and preserves patterns we already use without introducing new paradigms into the codebase.<br>The result is an agent that:</p><ul><li>is a specialist in its domain,</li><li>teaches a developer the deep domain knowledge encoded by the SME</li><li>and generates consistent, high-quality code aligned with our standards.</li></ul><p>Larry’s primary interface today is a <strong>VS Code extension</strong>, which allows us to keep developer experience familiar and practical. Engineers stay in the same environment, but the underlying workflow is now deterministic, guided, and specialized.</p><p>What Brainly Engineers says about this?</p><blockquote>Larry redefines how Software Engineers define how their code is created. Tools like Cursor or Copilot don’t offer the level of end-to-end customization in the AI code-generation flow that’s essential for predictable, high-quality results — critical to finally making AI stories succeed. I’m looking forward to seeing Larry integrate with existing AI tools, since developing a Larry agent is a deliberate investment — not something you can do for every piece of code produced.</blockquote><blockquote>— <strong>Radosław Warisch (Staff Software Engineer, Platform Team)</strong></blockquote><blockquote>What surprised me about Larry was how it guided me through solving the problem using only our existing codebase patterns. I was led step by step — from clarifying my intent, through comprehensive spec preparation and architecture review, to detailed implementation. All of this was achieved at a cost of only a few cents. It’s definitely a new direction for how we can use AI assistance in enterprise coding processes.</blockquote><blockquote><strong>— Mateusz Zabój (Senior Software Engineer, Production)</strong></blockquote><h4>Security: Strong Hygiene by Default</h4><p>Larry operates with strict hygiene:</p><ul><li>it creates a worktree,</li><li>each LLM run happens inside a Docker container,</li><li>the workflow is explicitly coded by the platform team.</li></ul><p>This is important because we avoid an opaque model where “tools” can be plugged in dynamically with unclear boundaries. Instead, the behavior is encoded in a controlled, auditable workflow.</p><p>At the same time, we preserve developer experience: engineers can use Larry in their daily flow without giving an AI system uncontrolled access to their environment.</p><h4>Distributed System: Hydratable and Resumable Workflows</h4><p>One of the most important architectural properties of Larry is that it dehydrates its state and persists it, which enables workflows to be <strong>resumable</strong>.</p><p>This opens the door to distributed collaboration, for example:</p><ul><li>one engineer starts the spec phase,</li><li>another engineer resumes from the exact same point on a different machine,</li><li>without losing context or restarting the process.</li></ul><p>It also means the workflow can move beyond the IDE. We can extend Larry into:</p><ul><li>GitHub (reacting to review comments),</li><li>spec reviews,</li><li>or even starting workflows directly from Jira tickets.</li></ul><p>We have not yet enabled flows where Larry SMEs search our Confluence documentation or proactively clarify Jira requirements — but the architecture is designed to support exactly that.</p><p>The key is that context is not treated as one giant prompt. The process is <strong>hydratable and resumable</strong>, so we can progressively attach documentation, tickets, and system signals to the same deterministic workflow.</p><h3>Models and Tokenomics: Why Small Models Are Enough</h3><p>I left 2 best things at the end, one of them is tokenomics.</p><p>To achieve these great coding results, we intentionally use models that many people would consider “weak” today:</p><ul><li><strong>GPT-5-mini</strong></li><li><strong>Gemini 2.0 Flash</strong></li></ul><p>This works because the workflow is highly customized to what the SME needs. We don’t need a highly reasoning-heavy model that must first figure out how our codebase works. The system already encodes the structure, constraints, and decisions.</p><p>The impact on token burn is dramatic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhWMYNBl7ly3xgq8qs76aQ.jpeg" /></figure><p>Building a feature with Larry costs around <strong>$0.07</strong>, compared to <strong>$1+</strong> in Cursor even for a power user following best practices. In “vibe coding” mode (which Larry does not allow), the cost would be significantly higher.</p><h3>Why This Scales and Why This Is a Real Breakthrough</h3><p>The real reason Larry scales is not that it writes code. It scales because it <strong>changes where domain expertise lives</strong>.</p><p>Traditionally, domain expertise is embodied in people. Acquiring it takes time — often months or years. That is why the industry has developed a strong bias toward senior engineers: they are the ones who can absorb context quickly, reason about complex systems, and safely operate in large codebases. This dynamic became even stronger with the rise of AI tools.</p><p>Senior engineers, equipped with AI tools, can move extremely fast — because they already know:</p><ul><li>the product,</li><li>the business logic,</li><li>the architecture,</li><li>and the internal coding rules.</li></ul><p>As a result, many organizations reached an uncomfortable conclusion:<br>if a senior engineer with AI can outperform a senior+mid combination, then hiring mids or juniors becomes harder to justify.</p><p>Larry changes this equation.</p><p>By encoding <strong>Subject Matter Expertise directly into the system</strong>, we decouple productivity from individual domain mastery. The knowledge about how to design, reason about, and implement a specific part of the system no longer needs to live exclusively in the heads of senior or staff engineers. Instead, it is embedded in the SME itself.</p><p>This has profound consequences.</p><p>Engineers who are new to the company — or even earlier in their careers — can be guided through complex domains by an expert process that:</p><ul><li>asks the right questions,</li><li>enforces the right constraints,</li><li>and generates code that aligns with existing architecture and standards.</li></ul><p>They don’t need to “become the domain expert first”. They can <strong>learn while delivering value</strong>.</p><p>Historically, the hiring calculus looked like this:</p><ul><li>one senior engineer could justify hiring one or two mids or juniors, because the senior would eventually accelerate the whole team.</li></ul><p>With modern AI tools, that calculus shifted:</p><ul><li>a single senior, augmented by AI, could often move so fast that adding a mid engineer did not immediately pay off.</li></ul><p>Larry introduces a new model.</p><p>If the senior engineer is no longer the bottleneck for domain knowledge transfer — because that knowledge is encoded into SMEs then mids and juniors can become productive without slowing seniors down. That opens the door to a much broader talent pool. It also changes the role of senior and staff engineers. Their leverage moves upstream:</p><ul><li>from repeatedly teaching the same domain knowledge,</li><li>to <strong>designing, refining, and evolving the SMEs themselves</strong>.</li></ul><p>In that sense, Larry is not just a productivity tool. It is an organizational multiplier.</p><p>We plan to continue investing in Larry at Brainly, expanding it with additional Subject Matter Experts and integrating it deeper into our engineering workflows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55777cbd50c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainly/from-platform-to-deterministic-ai-how-brainly-gene-enabled-the-larry-ai-pilot-55777cbd50c6">From Platform to Deterministic AI: How Brainly Gene Enabled the Larry AI Pilot</a> was originally published in <a href="https://medium.com/brainly">Brainly Technology Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Dev 2025+: How Enterprises Can Thrive with AI]]></title>
            <link>https://medium.com/brainly/web-dev-2025-how-enterprises-can-thrive-with-ai-dca89b34f802?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/dca89b34f802</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[enterprise-technology]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 14:23:17 GMT</pubDate>
            <atom:updated>2025-05-02T11:55:07.732Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwgTTA0OERpn_8dAYoRrcw.png" /><figcaption>Modern Engineering</figcaption></figure><p>A year ago, I published an <a href="https://javascript.plainenglish.io/the-disappearance-of-frontend-engineers-how-ai-full-stack-redefine-web-development-ffd16d3b4315">article</a> about the future of web development, predicting how AI and full-stack paradigms would reshape our industry. Today, it’s clear those predictions were pretty accurate. AI assistants like Copilot, Cursor, Cline, and Roo are already changing how we write code every day, speeding up our workflows and handling routine tasks.</p><p>But to truly benefit from these AI-powered tools, consistency in our codebases is more important than ever. Without consistent patterns and structures, AI struggles to give relevant, accurate suggestions, leading to frustration instead of productivity.</p><p>In this article, I’ll share how we’re tackling this challenge at Brainly with our open sourced <strong>Gene Framework</strong>, which you can think of as a <strong>“React for Enterprise”</strong>, designed specifically for large-scale, maintainable, and AI-ready codebases. I’ll explain why monorepos make AI even more effective, how rapid prototyping tools and agentic flows in IDEs will shape the future, and discuss what it means for us as developers — how we need to adapt our skills and mindset to thrive in this rapidly evolving landscape.</p><h3>The Importance of Code Consistency</h3><p>To leverage AI effectively, you need consistency in your codebase. At Brainly, we’ve made consistency a core principle through our <a href="https://gene.brainly.tech/gene">Gene Framework</a> (<a href="https://www.youtube.com/watch?v=4A6s8aE_AzI">video introduction</a>). Gene enforces clear and predictable patterns that developers follow every day, reducing guesswork and minimizing friction when using AI tools.</p><p>Gene isn’t about chasing every new trend in the JavaScript ecosystem. Instead, it’s built around stable patterns that stand the test of time. Even though we use opinionated tools like NextJS for our applications, our architecture is intentionally decoupled. This design ensures that our approach remains flexible and can adapt easily if we decide to swap out underlying technologies.</p><p>Our consistent patterns and clear architecture help AI assistants understand our coding practices better. The result is smarter, more accurate suggestions, fewer errors, and higher productivity for everyone involved.</p><p>A big part of how Gene helps us is by using <strong>Nx monorepo tools</strong>.</p><ul><li>With Nx, we <strong>generate new code</strong> (like components or modules) using predefined templates. This makes sure new code starts with the right structure automatically.</li><li>We also use a specific Nx tool — its <strong>ESLint plugin for enforcing module boundaries</strong> (@nx/enforce-module-boundaries). This rule is super important. It checks that different parts of our code (our &#39;modules&#39; or &#39;libraries&#39; in the monorepo) only depend on each other in ways we allow. It keeps the dependency graph clean and prevents messy code connections.</li><li>And more like dep-graphs, Nx MCP for our AI usage and so on…</li></ul><p><strong>But what if you don’t use Gene or Nx?</strong> You can still build this kind of consistency that helps AI understand your code better. <a href="https://przemyslaw-nowak.medium.com/key-principles-to-build-consistent-enterprise-framework-c1d2131d81d7">In short separated article I wrote key rules how to build such framework.</a></p><h3>Monorepos as a Powerful Context for AI</h3><p>Initially, our focus on consistency and monorepo structures at Brainly was intended to reduce cognitive overhead for developers.</p><p>With predictable rules applied everywhere — not just in code structure but also in how React components are written — we aimed to help enterprise developers navigate large codebases easily and efficiently.</p><p>What emerged later was somewhat unexpected but incredibly beneficial: these same structures turned out to be excellent context for AI tools. By consolidating all our code in a single repository, we provided AI with a clear and detailed map of our entire architecture. AI assistants, like Copilot, now have better visibility into the relationships between components, modules, and application layers.</p><p>The monorepo approach makes AI-generated code suggestions not only smarter but also perfectly aligned with our established architecture and coding standards. Even if your team doesn’t currently use Nx or Gene, adopting a structured monorepo setup is a strong first step towards creating a more AI-friendly environment that will enhance developer productivity and code quality.</p><p>Recently, the team behind Nx published an <a href="https://nx.dev/blog/nx-and-ai-why-they-work-together">article</a> that further reinforces this idea, showing how monorepos provide excellent context for AI and why they work so well together. For those who want to dig deeper, it’s a great resource to understand the broader industry movement.</p><h3>Rapid Prototyping and the AI-Assisted Developer Toolkit</h3><p>Rapid prototyping is becoming crucial for enterprises to quickly test ideas and stay ahead in the market. Modern tools like <a href="http://bolt.new/">Bolt.new</a> and <a href="https://v0.dev/">v0</a> dramatically simplify this process, using AI to convert initial concepts into working prototypes almost instantly.</p><p>The latest “Figma to Code” tools are particularly powerful, turning designs into accurate, high-quality code faster than ever before. These tools bridge the traditional gap between design and development, helping your teams iterate quickly and align more closely on product vision.</p><p>At Brainly, we are working on extending this idea even further through <strong>Gene AI </strong>(not available publicly yet). Once a developer generates code with a tool like Bolt.new, v0, or even manually copies code from a Figma design, our custom MCP integration with VSCode Copilot agent or Cursor agent steps in. Gene AI transforms these raw prototypes into Brainly-certified code by applying our React coding patterns, monorepo structure, and Gene consistency rules automatically. This ensures that even fast, AI-generated prototypes are production-ready, maintainable, and aligned with our standards without wasting developer time on manual cleanups.</p><p>Ultimately, these advancements make companies more agile and innovative, reducing the turnaround time from idea to product. Developers and designers alike can now collaborate more effectively, rapidly creating solutions that genuinely meet user needs.</p><h3>Agentic Flows and the Future of IDEs</h3><p>The next significant step in developer tooling will be the emergence of agentic flows within IDEs. Instead of simple code completion or snippet suggestions, future IDEs will act more like intelligent orchestrators, managing multiple specialized AI agents that understand your entire project context deeply.</p><p>Nx’s <a href="https://modelcontextprotocol.io/introduction">Model Context Protocol</a> (MCP) is a good example of how tools can take over parts of our workload. At Brainly, we don’t need to build these capabilities ourselves — instead, we delegate tasks like providing rich metadata about our workspace (dependency structures, module interactions, team responsibilities) to Nx, which already handles this well. With this data, AI agents can automatically identify the optimal way to implement features, manage dependencies, or even suggest architectural improvements.</p><p>At Brainly, we are using Nx MCP and we have custom MCPs that expose not only project metadata but also integrate with our internal tools. This allows AI agents to:</p><ul><li>Manage Jira ticket workflows</li><li>Read and interpret specs from Jira and Confluence</li><li>Create pull requests with auto-generated descriptions based on code changes</li><li>Generate unit tests aligned with our standards</li><li>Automatically adjust components to meet our Gene Framework rules</li></ul><p>These improvements massively boost productivity and push us closer to the reality of an AI-assisted web engineer.</p><p>Looking ahead, we are working on developing specialized agents for tasks like A/B test setup, code branching strategies, backend database architecture, and load test planning. Instead of splitting this work between 4 different domain engineers, we imagine one engineer working alongside several specialized AI agents — orchestrating the delivery of complete, high-quality features from start to finish.</p><h3>Evolving the Developer Role</h3><p>As AI continues to reshape development practices, the role of developers is also evolving significantly. To remain competitive, developers need to shift their focus from writing code to orchestrating specialized AI agents, understanding end-to-end web development deeply, and thinking strategically about product and architecture.</p><p>At Brainly, this transition is already well underway. We initially transformed our frontend engineers into full-stack developers to prepare for this change. Now, our goal is to help them become AI-powered web engineers, able to coordinate multiple specialized AI agents. The future engineer will combine deep technical expertise with high-level orchestration skills, ensuring seamless integration and rapid delivery of advanced web applications.</p><p>My personal appeal to developers is this: start working hard now to gain new competencies and actively experiment with emerging tools. Explore and play with various AI-driven technologies to understand clearly where we’re heading. Consider the career paths that will be in demand in the next 3–5 years, and focus your efforts on acquiring skills aligned with these roles. Many routine tasks like creating UI components, writing database connections, generating APIs, and testing will soon be efficiently handled by AI agents communicating seamlessly with each other. Imagine AI agents like a database architect collaborating with an API architect to build a complete data layer autonomously (it is achievable to build today).</p><p>Understanding codebases, enforcing code standards, and orchestrating these elements will become critical. Engineers will focus less on implementation details and more on engineering systems that align with business needs. Reflect on this future, educate yourself continuously, and plan your career strategically — take your time, but consistently build the right competencies. AI won’t replace us; it will reshape our roles. Embrace these coming changes — they promise to make the next few years incredibly exciting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dca89b34f802" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainly/web-dev-2025-how-enterprises-can-thrive-with-ai-dca89b34f802">Web Dev 2025+: How Enterprises Can Thrive with AI</a> was originally published in <a href="https://medium.com/brainly">Brainly Technology Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Key principles to build consistent enterprise framework]]></title>
            <link>https://przemyslaw-nowak.medium.com/key-principles-to-build-consistent-enterprise-framework-c1d2131d81d7?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1d2131d81d7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[developer-experience]]></category>
            <category><![CDATA[code-quality]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 08:50:13 GMT</pubDate>
            <atom:updated>2025-04-27T08:50:13.896Z</atom:updated>
            <content:encoded><![CDATA[<p>My experience building <a href="https://gene.brainly.tech/gene">Gene</a> at Brainly, a framework designed for faster development and a timeless, maintainable architecture, highlighted several key principles essential for consistency. This consistency benefits not just developer workflow, but also how effectively AI coding tools can assist us.</p><p>This list shares those key foundational ideas. It’s <strong>not</strong> about the specific <em>React</em> architecture patterns within Gene itself, but rather the <strong>underlying principles</strong> — the rules, automation, and structure needed for <em>any</em> consistent enterprise framework or large-scale project foundation.</p><p>My approach often leverages tools like <strong>NX</strong> to provide much of this base (code generation, dependency checks), with specific application architecture layered on top. Using a solid foundation like NX can accelerate building consistency.</p><p>If you’re aiming to establish similar consistency in your projects, here are the key principles I consider essential:</p><ol><li><strong>Make Clear Rules (Coding Standards):</strong></li></ol><ul><li>Write down how your team should name things (variables, functions, files), how to format code, what patterns to use (like for handling data or state), and how your project folders should look.</li><li><em>Why?</em> This makes the code predictable. Everyone knows what to expect. AI tools can learn these rules too. Put these rules somewhere easy to find, like a team wiki or in the code repository itself.</li></ul><p><strong>2. Use Tools to Check Rules Automatically (Linters/Formatters):</strong></p><ul><li>Set up tools like ESLint, Stylelint, and Prettier. Configure them strictly based on your team’s rules.</li><li>Make them run automatically, maybe before code is committed (using something like Husky).</li><li><em>Why?</em> This forces everyone to follow the rules. It stops arguments about style and keeps the code looking the same, which is less confusing for AI.</li></ul><p><strong>3. Think About Architecture and Keep Things Separate (Decoupling):</strong></p><ul><li>Design your application so different parts don’t depend too much on each other. Think about separating UI, business logic, and data parts. Maybe use patterns like Clean Architecture or just focus on creating clear boundaries between modules. Great React enterprise architecture is most addition of Gene framework to NX.</li><li><strong>If you don’t use NX’s boundary rules:</strong> You still need to control dependencies. You can do this with careful code reviews, clear rules about what modules can import from others, or maybe even custom linting rules if needed. The goal is to avoid tight coupling, especially to specific frameworks (like NextJS, React).</li><li><em>Why?</em> This makes your code easier to change later. If you replace one part (like the App framework), the core logic is safe. AI tools like this stability in the core patterns.</li></ul><p><strong>4. Create Templates for Common Code (Code generators):</strong></p><ul><li>Make standard templates for things you create often, like new components, services, or pages. You can use simple scripts or tools like plop.js for this.</li><li><em>Why?</em> Like NX generators, this makes sure common things always start the same way, reinforcing your patterns.</li></ul><p><strong>5. Do Good Code Reviews — Human <em>and</em> Automated:</strong></p><ul><li>Code reviews are super important. But you can automate parts of them! Beyond the basic linting (point 2), think about checks for your specific patterns and structure.</li><li><strong>At Brainly, for example:</strong> We have a <a href="https://gene.brainly.tech/gene">Gene</a> GitHub Action. It automatically runs on pull requests. It checks things like: Does our React code follow specific Brainly patterns? Is the repository file structure correct according to our rules? This catches many consistency problems automatically.</li><li><strong>If you don’t have a tool like Gene Action:</strong> You can still automate similar checks. You could write custom scripts that run in your CI/CD pipeline. These scripts can check for common project structure mistakes, enforce specific architectural rules, or look for anti-patterns in your code. Some advanced static analysis tools might also help here.</li><li><strong>Don’t forget human review!</strong> Automation is great for consistency rules. But humans are still needed to review the logic, discuss the approach, share knowledge, and catch tricky bugs or design issues that tools can’t see.</li><li><em>Why do both?</em> Automated checks handle the repetitive rule-following work quickly. Human reviewers can then focus their time on the more complex parts of the code. This makes reviews faster and more effective.</li></ul><p><strong>5. Use Types (like TypeScript):</strong></p><ul><li>Using TypeScript helps a lot. Define clear types for your data, function inputs/outputs, etc.</li><li><em>Why?</em> Types make the code clearer and safer. AI tools are much better at understanding code and giving good suggestions when types are present.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1d2131d81d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speeding up Development by N times with NX Monorepos]]></title>
            <link>https://medium.com/brainly/speeding-up-development-by-n-times-with-nx-monorepos-08b0d4715ea2?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/08b0d4715ea2</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[monorepo]]></category>
            <category><![CDATA[nx]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Sat, 14 Sep 2024 12:49:53 GMT</pubDate>
            <atom:updated>2024-10-29T14:50:40.181Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LbPuQLI-AHwkSrrBaMR3kA.jpeg" /></figure><p>In the rapidly evolving tech landscape, the ability to deliver products quickly together with quality is a competitive advantage that companies strive to achieve. Modern development practices, have become critical in meeting these demands by streamlining workflows and unifying coding practices across the teams. At Brainly, this approach has been battle-tested, enabling us to speed up our development cycles. By integrating NX monorepos along with Next.js as our application layer, we’ve managed to enhance our delivery speed by N times.</p><h3>Unified codebase</h3><p>Setting up a unified codebase was our first step towards streamlining our development. We established our architecture layers, in other words we figured out how we want to build timeless, maintainable, scalable and efficient software — this architecture transformed into our internal Brainly Gene framework.</p><p>By adopting NX monorepos, we’ve been able to keep established architecture in place and maintain a single, cohesive codebase that is easier to manage and update. This structure is crucial for keeping coding patterns consistent across various projects, which is crucial for scaling up our development without losing quality.</p><p>Nowadays there is one more huge advantage of having consistency, which is: you are prepared for AI driven era as your codebase becomes your consistent training data for the AI tools.</p><h3>Code generation</h3><p>With the architecture in place, we utilized NX’s DevKit to create generators according to our pre-defined architecture layers. 2,5 years ago I created article with a little technical description from the beginning of adoption: <a href="https://medium.com/brainly/nx-generators-on-fire-b025a3efce6f">NX generators on fire</a>.</p><p>This approach has simplified the process of setting up new features within our applications. Developers can now spin up new modules, components, service (basically all pieces of the architecture) that automatically adhere to our architectural standards, reducing setup time and minimizing errors.</p><h3>Automated CI/CD Processes</h3><p>Creating CI tooling with NX — this is another part which is worth to mentioned as setup of CI/CD at scale is really easy, of course at the beginning we used built in from NX and we leveraged two major features:</p><ul><li>NX Affected: This tool helps us identify affected projects within our monorepo when changes are made. It ensures that our testing and building processes are only applied to the impacted areas, saving time and computing resources.</li><li>Run-Many: This feature allows us to execute commands against multiple projects simultaneously, which is perfect for tasks that need to run across several areas of our monorepo but aren’t necessarily global.</li></ul><p>Another automations we created are our custom GH actions which checks of our architecture standards and practices being kept — it is vital point to keep codebase consistent, once you have architecture layers make sure that committed code follows it and well known problems are solved in the same practices. This point allow you to use only battle tested solution on production and decreases amount of bugs because of the new patterns introduction. Once again I want to mention future of AI driven era; nowadays tools like copilot or chat GPT returns different results for the same question, this is it’s architecture, in programming when you are solving the problem and you have solution on production, you want to use same solution, not try another and do testing cycle once again. That’s why consistent codebase as a training data for any upcoming AI tools is so crucial to really benefit from them.</p><h3>Success Story at Brainly</h3><p>The real confirmation of the efficiency of these tools came with the development of <a href="https://classes.brainly.com/">Brainly Classes</a> (pre Alpha version of new Brainly product). This project, was rolled out in just 3 weeks — a timeframe significantly shorter than the industry standard estimate of 6 to 16 weeks provided by my peers from other companies. This achievement not only highlights the robustness of our development process but also sets a new benchmark for what can be accomplished with the right tools and approach.</p><p>Today Brainly uses actively NX and mentioned architecture in most important products on production, and new one are always developed in this way.</p><h3>Conclusion</h3><p>Adopting NX monorepos and Brainly Gene architecture has not just changed how we develop; it has revolutionized it. By integrating these technologies, Brainly has set a new way for rapid, scalable, and efficient product development. Our experience with Brainly Classes is just the beginning, and we’re excited to see how these tools will continue to push us forward in AI driven era.</p><p>Thanks for reading and for more follow me on <a href="https://x.com/novakPe_">X</a> or <a href="https://www.linkedin.com/in/nowakprzemek/">LinkedIn</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08b0d4715ea2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainly/speeding-up-development-by-n-times-with-nx-monorepos-08b0d4715ea2">Speeding up Development by N times with NX Monorepos</a> was originally published in <a href="https://medium.com/brainly">Brainly Technology Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Disappearance of Frontend Engineers: How AI & Full Stack Redefine Web Development]]></title>
            <link>https://javascript.plainenglish.io/the-disappearance-of-frontend-engineers-how-ai-full-stack-redefine-web-development-ffd16d3b4315?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffd16d3b4315</guid>
            <category><![CDATA[modern-web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[full-stack]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Fri, 15 Mar 2024 08:16:44 GMT</pubDate>
            <atom:updated>2025-04-27T08:02:04.901Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gx66dDkpcIYcgamwoBkPyg.png" /></figure><p>In the dynamic realm of web development, the role of Frontend Engineers is at a pivotal crossroads. Traditionally tasked with designing the user interface and ensuring a seamless user experience, these professionals have relied on an arsenal of technologies like HTML, CSS, and JavaScript. However, recent technological advancements and shifts in the industry are blurring the once clear lines between frontend and backend development. Data from the Stack Overflow Developer Survey illustrates a significant trend: a decline in developers identifying as Frontend Engineers, with a rising demand for Full Stack developers. This article aims to unpack these trends, proposing a bold vision where, in five years, the traditional Frontend Engineer may no longer exist, making way for a new era of web development. In this article you can explore this transition and the emergence of the Modern Web Developer, adept at navigating both server and client-side development, augmented by the power of AI.</p><h3>Current state of Frontend Engineering</h3><p>The landscape of frontend engineering has undergone significant changes over the past few years, shaped by both technological advancements and shifts in user expectations. Today’s frontend engineers are tasked with creating increasingly complex and dynamic user interfaces, as web applications become more feature-rich and interactive. This evolution has required a deep knowledge of not just the traditional trio of HTML, CSS, and JavaScript, but also of a growing ecosystem of frameworks and tools designed to enhance productivity and performance.</p><p>Frameworks like React, Vue, and Angular have become staples in the frontend developer’s toolkit, each offering powerful features for building responsive, single-page applications (SPAs). These frameworks not only streamline the development process but also enforce a component-based architecture, making applications more scalable and maintainable.</p><p>The role of frontend engineering has also expanded to include a greater emphasis on user experience (UX) design and accessibility. Developers must now have a keen understanding of design principles, user interface (UI) patterns, and accessibility standards to ensure that web applications are not only visually appealing but also usable by as wide an audience as possible.</p><p>Despite these advancements, the Stack Overflow Developer Survey reveals a notable trend: the proportion of developers identifying exclusively as frontend engineers has seen a decline, dropping to just 6% in 2023 from around 30% in previous years. This shift can be attributed to several factors, including the blurring of lines between frontend and backend development, as well as the increasing complexity of web applications that demand a more integrated approach to development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*krWSxP3bpKXJYpdt1_3fjg.png" /><figcaption>Stack Overflow — 2018 Developer Survey <a href="https://survey.stackoverflow.co/2018/#professional-developers">https://survey.stackoverflow.co/2018/#professional-developers</a></figcaption></figure><p>Over the years number for Frontend Engineer kept up or grew, but last year changed it dramatically</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6--DNMB0pmHS1N4jCsY8A.png" /><figcaption>Stack Overflow — 2023 Developer Survey <a href="https://survey.stackoverflow.co/2023/#developer-profile-developer-roles">https://survey.stackoverflow.co/2023/#developer-profile-developer-roles</a></figcaption></figure><p>Trend is visible, needs for Frontend Engineers is much lower, Full stack is taking the lead as advent of server-side rendering (SSR) and static site generation (SSG) techniques, as popularized by frameworks like Next.js and Gatsby, has further contributed to this trend. These approaches combine the efficiency and SEO benefits of traditional server-rendered applications with the interactivity and user experience of SPAs, requiring developers to possess a blend of frontend and backend skills.</p><p>Moreover, the backend-for-frontend (BFF) architecture pattern has gained traction, emphasizing the need for frontend developers to design and implement APIs specifically tailored to the needs of the frontend. This pattern not only improves the efficiency of data retrieval and manipulation for web applications but also necessitates a deeper understanding of backend logic and architecture on the part of frontend developers.</p><h3>Today technology shift towards Full Stack</h3><p>The landscape of web development is witnessing a significant technological shift towards Full Stack development, a move that is largely driven by innovations in modern frameworks like NextJS and the latest updates in React, including Server Components in React 19. This evolution is a response to the challenges and limitations posed by traditional hydration processes in web applications, where the goal is to enhance performance, accessibility, and the overall user experience.</p><h4>NextJS and the Server-Side Approach</h4><p>NextJS has been at the forefront of this transition, early adopting server-side rendering (SSR) techniques and Server Components to optimize the delivery and rendering of web content. The server-side approach allows for HTML content to be generated on the server and sent directly to the client, bypassing the need for heavy JavaScript payloads that clients would otherwise need to download, parse, and execute. This not only improves site performance but also ensures that applications are more accessible to users on lower-end devices, who might struggle with the computational demands of client-side rendering.</p><h4>React 19 and Server Components</h4><p>The introduction of Server Components with React 19 represents a further step in this direction. These components are rendered on the server and sent to the client as a lightweight representation, significantly reducing the amount of JavaScript required to be sent over the network. This approach enables smoother interaction streams and faster load times, as it leverages the server’s capabilities to do the heavy lifting before streaming only the necessary components to the client.</p><h4>The Evolution of Hydration</h4><p>The evolution toward server-side technologies and Server Components is a direct response to the inherent inefficiencies in the traditional hydration process. Hydration, the process where a server-rendered static page becomes interactive on the client side, can be resource-intensive and lead to performance bottlenecks. By optimizing how and what is rendered on the server versus the client, modern frameworks like NextJS are making strides in creating more performant and accessible web applications.</p><h4>The Role of JavaScript</h4><p>Despite the reduction in roles specifically identified as “Frontend Engineers,” JavaScript continues to dominate as the most popular programming language, with a score of over 63% in the Stack Overflow Survey. This popularity underscores a crucial trend: the shift of responsibilities towards the server is not a move away from JavaScript but rather a reallocation of where and how JavaScript is executed. Modern JavaScript APIs are growing more robust, demanding more from the client’s computational resources. Here, the balance between server-side and client-side rendering becomes critical. Modern frameworks are evolving to provide developers with the tools to strike this balance effectively, allowing for decisions on rendering strategies that best suit their application’s needs and their users’ devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*ZH-pp5K52hdW-q1Zov6s3A.png" /><figcaption>Stack Overflow — 2023 Developer Survey <a href="https://survey.stackoverflow.co/2023/#technology-most-popular-technologies">https://survey.stackoverflow.co/2023/#developer-profile-developer-roles</a></figcaption></figure><h4>The Natural Transition to Full Stack</h4><p>This technological shift towards leveraging server capabilities for rendering and computation reflects a natural transition towards Full Stack development. As more functionalities are offloaded to the server, the distinction between frontend and backend blurs, necessitating a broader skill set that encompasses both realms. The current trend in modern frameworks points to a future where developers are not just coding in JavaScript but orchestrating an application’s entire tech stack to deliver optimal performance, accessibility, and user experience. This move towards Full Stack development is not merely a trend but a reflection of the evolving demands of the web development industry, driven by the continuous growth of JavaScript and the modern web APIs.</p><h3>AI assisted development — next step to the future</h3><p>The future of web development is on the brink of a transformative shift, with AI-assisted development emerging as a pivotal force in shaping the role of the modern web developer. As we stand at the threshold of this new era, the vision for future web developers is not just to be coders or designers but orchestrators of a suite of AI tools. This evolution will enable developers to have a holistic understanding of web software creation, spanning across Backend, Frontend, Animations, Performance, and Browser APIs, while leveraging AI for specialized tasks.</p><h4>The Orchestrator of AI Tools</h4><p>In this forthcoming landscape, the need for web developers to be specialists in all areas of development diminishes. Instead, the emphasis shifts towards an overarching comprehension of how to synergize diverse elements of web development. The modern web developer’s role will transform into that of an architect, who designs the flow of features and seamlessly integrates various components, facilitated by AI. This approach will see developers wielding AI-specialized agents for specific tasks — writing Backend for Frontend (BFF) services, crafting UI components, fetching data, managing browser cache and cookies, and creating animations, among others.</p><h4>The Early Stages of AI Tools</h4><p>We are currently witnessing the infancy of such tools, with pioneers like <a href="https://github.com/features/copilot">GitHub Copilot</a> and various code review tools leading the charge. Innovations like <a href="https://www.cognition-labs.com/blog">Devin</a>, an AI software engineer, and <a href="https://www.dora.run/ai">Dora AI</a>, capable of generating websites based on descriptions, exemplify the strides being made in AI-assisted development. These tools, though remarkable, are still in their nascent stages, often too generic to meet the nuanced requirements of companies on a larger scale. However, their existence and continuous improvement signal a clear trend towards the integration of AI in web development.</p><h4>The Evolution Towards Specialization</h4><p>The progression towards AI-assisted development is not just about automating tasks but about enhancing the developer’s ability to create more sophisticated, efficient, and personalized web experiences. As these AI tools evolve, they will become more specialized, capable of understanding and executing tasks with a level of precision and creativity that matches, or even surpasses, human developers. This specialization will allow web developers to focus on higher-level architectural decisions, leaving the intricacies of coding and design to their AI counterparts.</p><h4>The Future Is Happening</h4><p>The movement towards AI-assisted web development is not a distant dream but a reality in the making. The emergence of tools like GH Copilot, Devin, and Dora AI underscores the potential of AI to revolutionize how we build the web. As these tools become more refined and specialized, the role of the web developer will inevitably shift towards one of orchestration. Developers will navigate this new terrain with a blend of technical knowledge and strategic insight, guiding AI agents to achieve a unified vision for web projects.</p><p>The journey towards AI-assisted development heralds a future where the complexities of web development are streamlined through intelligent automation. This paradigm shift promises to redefine the essence of web development, making it more accessible, efficient, and innovative. As we embrace this change, the role of the web developer will evolve, but the core objective remains the same: to create seamless, engaging, and impactful web experiences for users around the globe.</p><h3>How to prepare for future?</h3><p>As the Domain Lead of Frontend at Brainly, I have unique opportunity to envision the future of web development and work on the implementation of strategies that prepare our team for this imminent transformation. Central to our approach is the development of Gene, an internal framework designed to harmonize our codebase through the use of generators that ensure consistency — a crucial aspect for integrating AI into our development process.</p><h4>Embracing Consistency with Gene</h4><p>Gene’s philosophy is rooted in the belief that maintaining consistent code patterns, even if they’re not universally considered the best, is essential. This consistency means that once a problem is solved, there’s no need to revisit it, creating a stable foundation for AI tools to learn from and build upon. The framework employs generators to scaffold out new features and components, ensuring that each piece of code adheres to the same patterns. This uniformity is not just about ease of maintenance or developer onboarding; it’s a strategic decision to make the incorporation of AI tools smoother and more efficient.</p><p>One of the tangible benefits of this approach is the simplification of code upgrades and analyses. With consistent coding patterns, automated upgrades (via codemods) and static analysis become significantly more straightforward, reducing the manual effort required from our developers. This efficiency frees up time and resources that can be directed towards more innovative endeavors, including the exploration and integration of AI assistants.</p><h4>Integrating AI Tools into Development</h4><p>As we look towards incorporating AI into our development process, the groundwork laid by Gene’s consistent patterns gives us a significant advantage. We envision a future where AI can seamlessly replace or augment the generators within Gene, further automating the development process. For instance, an AI-powered generator could not only scaffold a component but also suggest optimal performance improvements or accessibility enhancements based on the latest best practices and standards.</p><h4>Preparing Engineers for the Shift</h4><p>Beyond the technical preparations, a crucial aspect of gearing up for the future involves the continuous training and development of our engineering team. We’re committed to fostering a culture where learning and adaptability are at the forefront, preparing our engineers for Full Stack roles and, eventually, for the efficient utilization of AI tools. Understanding the capabilities and limitations of AI, learning how to integrate AI-powered solutions effectively, and staying abreast of advancements in AI and web development technologies are key areas of focus for our team.</p><p>As we advance, Gene is now fully <a href="https://gene.brainly.tech/gene">open-sourced</a>, representing not just a contribution to the wider development community but also an invitation for collaboration and improvement. Sharing our journey and learnings can spark discussions and innovations that benefit not only Brainly but the field of web development as a whole.</p><h4>The Road Ahead</h4><p>While the full scope of preparing for the future of AI-assisted development is vast and warrants a detailed exploration of its own, these insights from Brainly’s approach offer a glimpse into how we’re positioning ourselves at the forefront of this exciting evolution. By valuing consistency, embracing AI integration, and prioritizing continuous learning, we’re not just preparing for the future — we’re actively shaping it. As we continue this journey, the possibilities for what we can achieve with AI by our side are boundless, promising a new era of web development that’s more efficient, innovative, and inclusive than ever before.</p><h3>Summary</h3><p>In an era where the landscape of web development is rapidly evolving, the integration of AI and the shift towards Full Stack development are reshaping the roles and responsibilities of developers. This article explored the imminent transformation of the Frontend Engineer role, driven by technological advancements, the adoption of server-side rendering, and the incorporation of AI tools. The discussion highlighted how modern frameworks like NextJS and React 19’s Server Components are addressing the limitations of traditional web development processes, emphasizing performance and accessibility.</p><p>We delved into the concept of AI-assisted development, envisioning a future where web developers become orchestrators of AI tools, leveraging these technologies to automate and optimize various aspects of development. This vision is already being partially realized through tools like GitHub Copilot and Dora AI, signaling the beginning of a significant shift in how web applications are built and maintained.</p><p>The article also shared insights from Brainly’s approach to preparing for this future, focusing on the internal framework Gene. Gene’s reliance on consistent coding patterns is a strategic move to facilitate the integration of AI, demonstrating a practical methodology for adapting to the forthcoming changes in web development.</p><p>In summary, the future of web development is poised for a paradigm shift, with AI-assisted technologies and Full Stack development at the forefront. As developers and companies like Brainly pioneer approaches to embrace these changes, the industry stands on the cusp of a more efficient, innovative, and inclusive era of web development. Preparing for this future requires not only technological adaptability but also a commitment to continuous learning and an openness to redefine the boundaries of what it means to be a web developer.</p><h3>In Plain English 🚀</h3><p><em>Thank you for being a part of the </em><a href="https://plainenglish.io/"><strong><em>In Plain English</em></strong></a><em> community! Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://twitter.com/inPlainEngHQ"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a><strong> | </strong><a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a></li><li>Visit our other platforms: <a href="https://stackademic.com/"><strong>Stackademic</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a><strong> | </strong><a href="https://blog.cubed.run/"><strong>Cubed</strong></a></li><li>More content at <a href="https://plainenglish.io/"><strong>PlainEnglish.io</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffd16d3b4315" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/the-disappearance-of-frontend-engineers-how-ai-full-stack-redefine-web-development-ffd16d3b4315">The Disappearance of Frontend Engineers: How AI &amp; Full Stack Redefine Web Development</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate React service hook architecture]]></title>
            <link>https://medium.com/brainly/ultimate-react-service-hook-architecture-519b752d8478?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/519b752d8478</guid>
            <category><![CDATA[observables]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[nx]]></category>
            <category><![CDATA[technolog]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Thu, 20 Oct 2022 13:04:03 GMT</pubDate>
            <atom:updated>2022-11-28T21:23:57.849Z</atom:updated>
            <content:encoded><![CDATA[<h3>Brainly’s Approach to Service Hooks</h3><p>Data fetching and data transformations are crucial parts of building applications. The services consumed change frequently, so your architecture needs to be flexible and easy to change. I wrote an <a href="https://javascript.plainenglish.io/proper-data-service-architecture-in-react-b8348e365e4a">article about creating abstraction over various technologies</a> to decouple your code from specific libraries. However, it is not solving all of the problems we encountered at Brainly. In this article, I will present how Brainly approaches these problems and the solution we chose to move beyond them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8DGchrL3bjPeStt584ZrGQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@choys_">Conny Schneider</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>At Brainly, we have our framework built on top of NextJS called Brainiac. As part of Brainiac, we created an innovative way of building data services in React.</p><h3>Common API</h3><p>We used the pattern described in my <a href="https://javascript.plainenglish.io/proper-data-service-architecture-in-react-b8348e365e4a">previous article</a> to build a common API and always transform results comes from the library (like Apollo or React Query) to a common type:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44f4f89260b07adbe8630cbba9139f17/href">https://medium.com/media/44f4f89260b07adbe8630cbba9139f17/href</a></iframe><p>Thanks to that, we can be sure that it doesn’t matter if we use Apollo, React Query, custom fetch, SWR, or any other lib — we always use the same API.</p><p>This means we must build implementations for the technologies mentioned above, which is the trade-off we chose. The flexibility we gain is the ability to pick and choose which underlying abstraction over fetch is used for specific parts of our application, which is extremely valuable. It also makes our design decisions easier to change in the future. If we decide to replace React Query with SWR, we only need to change the service hook, and we know the blast radius of that change is limited to the hook implementation.</p><h3>Data streams</h3><p>Having this standard API is awesome for good encapsulation; additional benefits include the ability to create data streams that can be manipulated with Observables. Brainiac uses Zen Observable to develop and handle observable queries and transforms them as part of the React lifecycle.</p><p>To help visualize this, let’s imagine we are creating two services based on observables, one in Apollo and another in React Query:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*GsoVkarKSQtgqsyjCp1MeA.jpeg" /></figure><p>Both services transform observables used in the React lifecycle. It looks great, but now let’s imagine that we would like to combine these services as a new service hook:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*LHBHQJIYKyqvElmlJL-kLg.jpeg" /></figure><p>That’s pretty cool and easy! While there are alternatives to Observables, none of them are as robust at creating and manipulating data streams. Observables are also easy to test in isolation. Observables can also be consumed in any modern application framework. We can quickly write consumers for Observables that affect React state, Angular state, Vue state, or pure JS application state.</p><p>Let’s do another exercise — say that some data can be updated via web-sockets. With our architecture, all we need to do is write a layer on top of the web-socket connection:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*ectcgk3sf0cixFN9z-YqGQ.jpeg" /></figure><p>This solution involves a lot of boilerplate code to get right. Brainly is highly focused on generators to automate boilerplate and ensure code quality. Using NX DevKit, we created generators for every layer of our architecture. Brainly engineers execute the following command:</p><pre>$ nx run workspace-schematic service-generator --name=serviceA --serviceType=apollo</pre><p>Then implement the service interaction using their chosen abstraction over fetch. Engineering is so simple with the Brainiac framework!</p><h3>Summary</h3><p>To create our service architecture, we used our experience and input from our engineers. This led us to leverage the power of Observables to provide a framework agnostic and well-tested service abstraction layer. We then leveraged NX DevKit to build a generator to ensure code quality. Our Brainiac framework will be open source soon; stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=519b752d8478" width="1" height="1" alt=""><hr><p><a href="https://medium.com/brainly/ultimate-react-service-hook-architecture-519b752d8478">Ultimate React service hook architecture</a> was originally published in <a href="https://medium.com/brainly">Brainly Technology Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proper Data Service Architecture in React]]></title>
            <link>https://javascript.plainenglish.io/proper-data-service-architecture-in-react-b8348e365e4a?source=rss-d34ba2dc7004------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8348e365e4a</guid>
            <category><![CDATA[react-query]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Przemyslaw Nowak]]></dc:creator>
            <pubDate>Mon, 23 May 2022 06:17:15 GMT</pubDate>
            <atom:updated>2022-05-23T06:42:24.659Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to be ready and properly prepare your codebase for changes in the React world</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LpKt8tm1Kl0cpqbGmc3M4w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@ryanquintal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ryan Quintal</a> on <a href="https://unsplash.com/s/photos/building-blocks?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Many times developers struggle with building proper data services. At the beginning, we got React class Services → which were quickly transited to Redux and Sagas to easily handle side effects and “react” to loading states changes but it became overwhelming in case of learning and understanding what is going on in the life cycle, then hooks came to the game with magic useEffect(), and when we get to use it new smarter libraries like <a href="https://react-query.tanstack.com/">React Query</a> comes in. How we can prepare our apps for those changes in React world? Do we can do it cheap and safe without the need to rewrite half of the codebase? In this article, I will show you one simple way how to be ready and properly prepare your codebase for change.</p><h3>Coupling problem</h3><p>Let’s start with the coupling problem. What do I mean by that? All issues described above comes from the wrong usage of mentioned libraries. I’m not saying that any of those technologies are good or bad, probably all of them were or are good at some point, the real issue is the usage of those libraries! I know, I know… everyone reads documentation and doing their best, but the real issue is that those technologies are used directly in application — it boils down to the coupling problem.</p><p>Let’s take a look at an example of rewriting Redux Saga to ReactQuery, we have that code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/013f1fd2a2249344dfbc77ad9a3c8002/href">https://medium.com/media/013f1fd2a2249344dfbc77ad9a3c8002/href</a></iframe><p>You can imagine how many places and additional reducer, actions, and sagas files you have. So now you need to refactor it — and if all of the code was created like this one — we always have data , loading and it is directly taken from the state via useSelector we can start thinking that it is pretty generic and we can write some codemod to update it to a new way of data service (e.g React Query). But we all know that reality is different, and some developers do their own utils to select something e.g., useSelector(selectFunction), etc. all of those cases become too complex for codemods, so we end up with manual rewriting all of the places. So what we need to do is to change this code into:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/806dc6516a4182669055bfc5f2c582df/href">https://medium.com/media/806dc6516a4182669055bfc5f2c582df/href</a></iframe><p>When we go through all the files and finally refactor it, we can open the champagne (of course if our boss won’t ask us why we spent much time on some invisible refactor). But then… React Query changed their API and now useQuery hook returns an array, not an object, e.g., [data, loading, error] — ok, that’s not so bad, we can still create codemod, of course before that we need to explain it to our boss and ask for time for an update because all of us want to work with updated libraries. But we all know how fast the JS world changes, so we can assume that the new “super cooler” library comes in. And then we need to go to our boss again and…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RJedc_HjuB8zjzjFRpSN5g.png" /></figure><p>ask for time for refactoring.</p><h3>Solution</h3><p>Maybe you can think of a solution, I have a really simple one — let’s create our own API and abstract away library. So simple right? Let’s imagine how simple refactor would be if we had our service hook package with company-wide API? Let’s do this in example and let’s transform our Redux code to a custom service hook:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5195a61e1404592cb9c31b1be974f826/href">https://medium.com/media/5195a61e1404592cb9c31b1be974f826/href</a></iframe><p>This is really important to move this logic to a separate hook, and more important is to keep ALWAYS the same output shape — because it will save us a lot of time, let’s use it in our component:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36524431863b23c47a3173cacd05755e/href">https://medium.com/media/36524431863b23c47a3173cacd05755e/href</a></iframe><p>Now, we would like to migrate from Redux to React Query, what you can see we can do this pretty easily because only what we need to change is our service hook:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/12572b0d35b6278ddf94dbf5a5483453/href">https://medium.com/media/12572b0d35b6278ddf94dbf5a5483453/href</a></iframe><p>And the component would look the same, there is no need to do changes in component! Only what we need to change is our service hook.</p><p>As you can see this is really cool because no matter if React Query API will change or if we would like to migrate from one technology to another one — we have only one layer to test and rewrite. Moreover, you can imagine that one team delivers services and the second one just uses it from the service library, it is really easy because we always know what API we will have and from the developer&#39;s point of view, we don’t care what is used under the hood — if it is React Query, Redux Saga, or something totally different.</p><h3>Summary</h3><p>I showed you a really simple solution to the code migration issue — we all know that sometimes abstractions can be overwhelming, and to be clear it is not a pattern for everything. It is a well-tested pattern to create a service hooks package and expose one API (and it’s important this API should be like a contract for us and shouldn’t change). Thanks to that we have only one layer to test and we can reduce the blast radius to a minimum across the whole company.</p><p>You can follow me on <a href="https://twitter.com/novakPe_">Twitter</a>, thanks for reading!</p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a><em> and </em><a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>. Check out our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Community Discord</em></strong></a><em> and join our </em><a href="https://inplainenglish.pallet.com/talent/welcome"><strong><em>Talent Collective</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8348e365e4a" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/proper-data-service-architecture-in-react-b8348e365e4a">Proper Data Service Architecture in React</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>