<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en_AU"><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://www.waynethompson.com.au/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.waynethompson.com.au/" rel="alternate" type="text/html" hreflang="en_AU" /><updated>2026-11-30T05:29:06+00:00</updated><id>https://www.waynethompson.com.au/feed.xml</id><title type="html">Code, Cloud, &amp;amp; CTO Insights</title><subtitle>Practical notes on .NET, TypeScript, cloud hosting, AI-assisted development and engineering leadership from Wayne Thompson, a developer since the late 80s.</subtitle><author><name>Wayne Thompson</name></author><entry><title type="html">A Completely Free .NET SaaS Template: Introducing the LibreSharp SaaS Starter</title><link href="https://www.waynethompson.com.au/blog/2026/LibreSharp-SaaS-Starter/" rel="alternate" type="text/html" title="A Completely Free .NET SaaS Template: Introducing the LibreSharp SaaS Starter" /><published>2026-11-30T02:00:00+00:00</published><updated>2026-11-30T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/2026/LibreSharp-SaaS-Starter</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/2026/LibreSharp-SaaS-Starter/"><![CDATA[<p>Every SaaS app starts with months of work that has nothing to do with the product. Sign-up and login, email confirmation, password resets, organisations and invitations, plans and trials, Stripe webhooks, an admin back office, background jobs. None of it is what customers pay for, and all of it has to exist on day one.</p>

<p>In .NET, the usual way to skip that work is a starter kit. Most of the good ones are paid, and plenty of the free ones are built on libraries that have since <a href="/blog/2026/Introducing-LibreSharp/">gone commercial</a>. So I built the <strong><a href="https://github.com/LibreSharp/saas-starter">LibreSharp SaaS Starter</a></strong>: a <code class="language-plaintext highlighter-rouge">dotnet new</code> template for SaaS apps with no commercial licences anywhere in the stack.</p>

<!--more-->

<h2 id="why-net-needs-one">Why .NET Needs One</h2>

<p>Other ecosystems have plenty of free, opinionated SaaS starters. .NET has far fewer, and the last couple of years made it worse.</p>

<p>Paid starter kits fill most of the gap. Some of them are good, and if one suits you, buy it. But a student, a solo founder testing an idea, or a non-profit shouldn’t need a licence before writing their first line of product code.</p>

<p>The bigger problem is that the “default” .NET architecture went commercial. For years, templates and tutorials taught MediatR for in-process messaging, MassTransit for the bus and outbox, AutoMapper for mapping and FluentAssertions in the tests. All four are now commercial. A template built on that stack isn’t really free, even if its own code is MIT. You find out when you pass a revenue limit or need a security patch.</p>

<p>I wanted a template that covers the real SaaS plumbing rather than just a login page and a to-do list. Every dependency had to be free and open source. And it needed security, observability, tests and a cheap deployment path built in from the start.</p>

<h2 id="the-stack">The Stack</h2>

<p>It’s a single deployable ASP.NET Core host with a React frontend. The README describes it as doing <em>“the jobs often given to MediatR (in-process messaging) and MassTransit (message bus and transactional outbox) with Wolverine, on a stack of free, open-source libraries.”</em></p>

<p>The backend is <strong>.NET 11</strong> with <a href="https://wolverinefx.net/">WolverineFx</a>. Wolverine handles the HTTP endpoints, organised as vertical slices, and also the messaging: durable local queues, a transactional outbox and scheduled messages. Data lives in <strong>PostgreSQL</strong>, through either <strong>Marten</strong> (the default, with event sourcing) or <strong>EF Core</strong>. You pick when you create the project.</p>

<p>The frontend is <strong>React, Vite and TypeScript</strong> with Tailwind CSS and shadcn/ui. It uses React Router in framework mode, so public pages like pricing are pre-rendered. TanStack Query handles data, and the API client is generated from the backend’s OpenAPI spec, so the types always match.</p>

<p>Around that:</p>

<ul>
  <li>Auth is ASP.NET Core Identity with short-lived JWTs and rotating refresh tokens, plus Google, GitHub and passkey sign-in.</li>
  <li>Billing is Stripe via Stripe.net, behind an <code class="language-plaintext highlighter-rouge">IPaymentProvider</code> interface.</li>
  <li>Email goes out through the outbox with MailKit, and Mailpit catches it locally.</li>
  <li>Observability is OpenTelemetry, with an optional Aspire dashboard.</li>
  <li>Testing uses xUnit, Alba and Testcontainers against real Postgres on the backend, Vitest and MSW on the client, and Playwright end to end.</li>
  <li>Production is a container plus docker-compose with PostgreSQL and Caddy for automatic HTTPS.</li>
</ul>

<p>The roadmap has a short “keep out” list, and it reads <em>“paid tooling and commercial UI kits”</em>.</p>

<h2 id="what-you-get">What You Get</h2>

<p>The SaaS-specific features are what make this more than a web app template.</p>

<p>Accounts cover the boring essentials: confirmation emails, password resets, lockout, account deletion and a “Download your data” export. Every account gets its own <strong>organisation</strong>, and users can create more, invite people by email and switch between them. Roles are Owner, Admin and Member, and an organisation always has at least one owner.</p>

<p><strong>Billing</strong> is the part I’d most hate to build from scratch. Plans are defined in code with versioned prices per currency, so existing customers keep their price when you raise it. New sign-ups get a 14-day trial of the top plan, then drop to the free plan. Limits are enforced in the API with a warning at 80%, and Stripe webhooks are processed from a durable queue so a slow handler doesn’t lose events. Downgrades never delete data.</p>

<p>There’s also an <code class="language-plaintext highlighter-rouge">/admin</code> back office with users, an audit log, a dead-letter queue you can replay, and a customer dashboard showing MRR, trials ending and failed payments. On top of that come per-organisation API keys, outgoing signed webhooks, and an MCP endpoint so AI agents can work with your app.</p>

<p>The <a href="https://github.com/LibreSharp/saas-starter">README</a> has the full list, including the security setup. It’s all plain code in your repo, so you can change or delete any of it.</p>

<h2 id="getting-started">Getting Started</h2>

<p>You’ll need the .NET 11 SDK, Node.js 22.22 or later, and Docker.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dotnet new <span class="nb">install </span>LibreSharp.Templates.SaasStarter

dotnet new saas-starter <span class="nt">-n</span> MyApp
<span class="nb">cd </span>MyApp
docker compose up <span class="nt">-d</span>          <span class="c"># starts Postgres and Mailpit</span>
<span class="nb">cd </span>src/Client <span class="o">&amp;&amp;</span> npm <span class="nb">install
cd</span> ../MyApp <span class="o">&amp;&amp;</span> dotnet run
</code></pre></div></div>

<p>Then start the frontend in a second terminal:</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd </span>MyApp/src/Client
npm run dev                    <span class="c"># http://localhost:5173, proxies /api/* to the API</span>
</code></pre></div></div>

<p>In development you can sign in with <code class="language-plaintext highlighter-rouge">demo@example.com</code> / <code class="language-plaintext highlighter-rouge">Demo123!</code>.</p>

<p>Three options control what gets generated:</p>

<table>
  <thead>
    <tr>
      <th>Option</th>
      <th>Values</th>
      <th>Default</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">--Persistence</code></td>
      <td><code class="language-plaintext highlighter-rouge">marten</code>, <code class="language-plaintext highlighter-rouge">efcore</code></td>
      <td><code class="language-plaintext highlighter-rouge">marten</code></td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">--Auth</code></td>
      <td><code class="language-plaintext highlighter-rouge">none</code>, <code class="language-plaintext highlighter-rouge">identity</code>, <code class="language-plaintext highlighter-rouge">saas</code></td>
      <td><code class="language-plaintext highlighter-rouge">saas</code></td>
    </tr>
    <tr>
      <td><code class="language-plaintext highlighter-rouge">--IncludeTests</code></td>
      <td><code class="language-plaintext highlighter-rouge">true</code>, <code class="language-plaintext highlighter-rouge">false</code></td>
      <td><code class="language-plaintext highlighter-rouge">true</code></td>
    </tr>
  </tbody>
</table>

<p>So for EF Core with accounts but no organisations or billing:</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dotnet new saas-starter <span class="nt">-n</span> MyApp <span class="nt">--Persistence</span> efcore <span class="nt">--Auth</span> identity
</code></pre></div></div>

<p>CI generates all 12 option combinations on every push and runs the integration tests, a container build, the Playwright tests, and a production publish-and-start check against each. Each generated app gets its own <code class="language-plaintext highlighter-rouge">docs/</code> folder covering only the options you picked. It also comes with <code class="language-plaintext highlighter-rouge">CLAUDE.md</code> and <code class="language-plaintext highlighter-rouge">AGENTS.md</code> files, so AI coding assistants understand the project from the first prompt.</p>

<h2 id="where-its-up-to">Where It’s Up To</h2>

<p>It’s early. Version 0.5.0 is the latest, and it’s a community template, not an official WolverineFx/JasperFx package. The README lists the known limitations up front.</p>

<p>Tokens are signed with an HS256 shared secret for now, and because they’re kept in memory, reloading the page signs you out. There’s no TOTP two-factor yet, although passkeys work. It also runs as a single instance, so scaling out would need a SignalR backplane and shared rate limits.</p>

<p>Next up for v0.6 is file uploads to S3-compatible storage, an <code class="language-plaintext highlighter-rouge">--aspire</code> option, and session-storage tokens. Translations and extension points will follow. There’s an open question about which cheap host the deployment guide should target first: a VPS with Docker Compose and Caddy, or something like Fly.io or Railway. Opinions welcome.</p>

<h2 id="free-isnt-the-same-as-unsupported">Free Isn’t the Same as Unsupported</h2>

<p>This template stands on a lot of other people’s work. The Wolverine and Marten maintainers at JasperFx did most of the heavy lifting, along with the shadcn/ui and React Router teams and the authors of Alba, Testcontainers and MailKit. If the starter saves you a few months, pass some of that on to them. Sponsor them, contribute, or pay for commercial support where they offer it.</p>

<p>For the starter itself, <a href="https://github.com/LibreSharp/saas-starter/issues">GitHub issues</a> are the place for suggestions. I’d especially like to hear from anyone who has shipped a real SaaS app on .NET and can tell me what’s missing. Pull requests are welcome too. <code class="language-plaintext highlighter-rouge">docs/CONTRIBUTING.md</code> explains how the conditional template code works and how to test a change across the option combinations. And if you think it’s useful, a star helps other .NET developers find it before they reach for a paid kit.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dotnet new <span class="nb">install </span>LibreSharp.Templates.SaasStarter
dotnet new saas-starter <span class="nt">-n</span> MyApp
</code></pre></div></div>]]></content><author><name>Wayne Thompson</name></author><category term="dotnet" /><category term="open-source" /><category term="dotnet" /><category term="open-source" /><category term="saas" /><category term="wolverinefx" /><category term="marten" /><category term="react" /><category term="postgresql" /><category term="stripe" /><category term="dotnet-new" /><category term="libresharp" /><summary type="html"><![CDATA[Every SaaS app starts with months of work that has nothing to do with the product. Sign-up and login, email confirmation, password resets, organisations and invitations, plans and trials, Stripe webhooks, an admin back office, background jobs. None of it is what customers pay for, and all of it has to exist on day one. In .NET, the usual way to skip that work is a starter kit. Most of the good ones are paid, and plenty of the free ones are built on libraries that have since gone commercial. So I built the LibreSharp SaaS Starter: a dotnet new template for SaaS apps with no commercial licences anywhere in the stack.]]></summary></entry><entry><title type="html">Why I Built LibreSharp: Keeping .NET Open as Its Packages Go Commercial</title><link href="https://www.waynethompson.com.au/blog/2026/Introducing-LibreSharp/" rel="alternate" type="text/html" title="Why I Built LibreSharp: Keeping .NET Open as Its Packages Go Commercial" /><published>2026-11-27T02:00:00+00:00</published><updated>2026-11-27T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/2026/Introducing-LibreSharp</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/2026/Introducing-LibreSharp/"><![CDATA[<p>If you’ve built anything in .NET in the last ten years, you’ve almost certainly used AutoMapper, MediatR, FluentAssertions or MassTransit. They were so standard that people added them to new projects on autopilot. As of 2026, all four are commercial.</p>

<p>I’m not here to complain about that. But it’s left a lot of teams in an awkward spot, and there was nowhere to see the whole picture in one place. So I built <strong><a href="https://libresharp.github.io/">LibreSharp</a></strong>: a free list of .NET packages that went commercial, with the free alternatives for each.</p>

<!--more-->

<h2 id="what-changed">What Changed</h2>

<p>This has been building for a while. IdentityServer went commercial in 2020, and ImageSharp and QuestPDF added revenue limits in 2023. Then 2025 and 2026 brought a wave. AutoMapper, MediatR, FluentAssertions and MassTransit all relicensed, while NPOI, Verify, WiX and json-everything introduced maintenance fees.</p>

<p>Together, the packages on the list have billions of downloads. A big chunk of the .NET code running in production today sits on top of them.</p>

<p>Not every change is the same, though, and the difference matters. LibreSharp sorts them into five buckets. Some are <strong>relicensed</strong>, meaning new versions aren’t open source any more, though old versions keep their original licence. Some are <strong>free under a revenue limit</strong>, typically for organisations under $1M. Some charge a <strong>maintenance fee</strong>: the source stays open, but large organisations are asked to pay for the official packages. A couple are <strong>abandoned</strong>, like SpecFlow, which the community picked up as Reqnroll. And one, Moq, is a <strong>trust issue</strong>: the licence never changed, but a maintainer decision drove a lot of people away.</p>

<p>Lumping a maintenance fee in with a full relicense is unfair to the maintainers who chose to stay open source, so the site keeps them separate.</p>

<h2 id="why-a-list-was-needed">Why a List Was Needed</h2>

<p>The awkward part is how teams find out. Usually it’s a routine package bump that quietly changes the licence, or a security fix that only ships in the paid version. By then the package is everywhere in the codebase, nobody budgeted for it, and someone has to decide something by Friday.</p>

<p>At that point you want three answers: what changed, what was the last free version, and what can I use instead? That information was scattered across GitHub issues, blog posts, Reddit threads and README diffs. LibreSharp puts it in one table. A few rows from it:</p>

<table>
  <thead>
    <tr>
      <th>Package</th>
      <th>What changed</th>
      <th>Last free version</th>
      <th>Free alternatives</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>AutoMapper</td>
      <td>Now commercial</td>
      <td>14.0.0 (Jul 2025)</td>
      <td>Mapperly, Mapster, manual mapping</td>
    </tr>
    <tr>
      <td>MediatR</td>
      <td>Now commercial</td>
      <td>12.5.0 (Jul 2025)</td>
      <td>Mediator, Wolverine, Brighter</td>
    </tr>
    <tr>
      <td>MassTransit</td>
      <td>Now commercial</td>
      <td>8.x (Jan 2026)</td>
      <td>Wolverine, Rebus, Brighter</td>
    </tr>
  </tbody>
</table>

<p>There are 22 packages on <a href="https://libresharp.github.io/">the full list</a> so far. If you’re weighing up MediatR in particular, I compared it with ServiceStack and Wolverine in an <a href="/blog/2026/Choosing-Your-DotNet-API-Strategy/">earlier post</a>.</p>

<h2 id="not-an-angry-site">Not an Angry Site</h2>

<p>It would have been easy to make this a site about villains. I deliberately didn’t.</p>

<p>LibreSharp never criticises a maintainer for changing their licence, and it always credits the original authors. Maintaining open source is real work, usually unpaid, and people are allowed to decide they want to get paid for it. Every fact on the site needs a source, and anything not yet confirmed is marked “Needs checking” instead of stated as fact.</p>

<p>It also points to healthy, existing alternatives before forks. Where the community has already forked something, such as AwesomeAssertions from FluentAssertions or Reqnroll from SpecFlow, it sends people there rather than encouraging yet another fork.</p>

<p>The home page puts it better than I can here:</p>

<blockquote>
  <p>We are not against maintainers getting paid. If a paid licence is right for your team, buy it. This list exists so everyone, including students, small teams and non-profits, knows their options.</p>

  <p><cite>LibreSharp home page</cite></p>
</blockquote>

<h2 id="open-source-needs-support">Open Source Needs Support</h2>

<p>Every package on that list started as someone giving their time away. Companies built businesses on that work, often worth far more than any licence fee, and very few gave anything back. Maintainers burned out or realised they were doing a full-time job for nothing, and commercial licensing was the result. If you’re annoyed about a relicense, that’s the bit to be annoyed about.</p>

<p>Swapping one free library for another doesn’t fix anything on its own. Mapperly, Wolverine, Shouldly and OpenIddict are maintained by people too, and if everyone moves to them and nobody helps, they’ll end up in the same place.</p>

<p>So, a few things I’d ask of any team using .NET open source, and especially any company:</p>

<p>If a project stayed open source and asks big organisations to pay a maintenance fee, and you’re a big organisation, pay it. That’s the model we should want to succeed.</p>

<p>Run <code class="language-plaintext highlighter-rouge">dotnet list package</code> on your main solution and pick the three packages you’d miss most. Most of them have GitHub Sponsors or Open Collective. A small monthly amount from every company using a library would change life for the people maintaining it. If your organisation has a budget for commercial tools, open source dependencies belong in it too.</p>

<p>Contribute back where you can. Fix the bug instead of working around it, or write the docs page you wish had existed.</p>

<p>And if a commercial package really is the best tool for your team, buy it. That’s a fine outcome. LibreSharp is there so you get to choose, not to talk you out of it.</p>

<h2 id="helping-out">Helping Out</h2>

<p>LibreSharp is a non-profit community project. It isn’t affiliated with any of the packages it lists, and it doesn’t ask for donations. What it needs is contributions.</p>

<p>Each package is one YAML file in <a href="https://github.com/LibreSharp/LibreSharp.github.io/tree/main/data/packages"><code class="language-plaintext highlighter-rouge">data/packages</code></a>. Every page has an “Edit this page on GitHub” link, or you can open a pull request with a new <code class="language-plaintext highlighter-rouge">data/packages/&lt;slug&gt;.yml</code>. The rules are short: every fact needs a source, the tone stays neutral, and alternatives must be free and open source or built into .NET. Several entries are still marked “Needs checking” if you want an easy first contribution. If you’re not sure about something, <a href="https://github.com/LibreSharp/LibreSharp.github.io/issues/new">open an issue</a>.</p>

<p>The data is published as JSON under CC BY 4.0. Someone could build a CI check on top of it that flags dependencies that have gone commercial, and I’d love to see that.</p>

<p>There’s also a free <a href="https://github.com/LibreSharp/saas-starter">SaaS Starter template</a> for .NET built entirely on open-source libraries. I’ll write that one up separately.</p>

<p>If something is missing from the list, <a href="https://github.com/LibreSharp/LibreSharp.github.io">send a pull request</a>. And go and sponsor something you depend on.</p>

<p><em>Licences change. Always check a package’s own licence before relying on the list.</em></p>]]></content><author><name>Wayne Thompson</name></author><category term="dotnet" /><category term="open-source" /><category term="dotnet" /><category term="open-source" /><category term="licensing" /><category term="nuget" /><category term="automapper" /><category term="mediatr" /><category term="masstransit" /><category term="fluentassertions" /><category term="libresharp" /><summary type="html"><![CDATA[If you’ve built anything in .NET in the last ten years, you’ve almost certainly used AutoMapper, MediatR, FluentAssertions or MassTransit. They were so standard that people added them to new projects on autopilot. As of 2026, all four are commercial. I’m not here to complain about that. But it’s left a lot of teams in an awkward spot, and there was nowhere to see the whole picture in one place. So I built LibreSharp: a free list of .NET packages that went commercial, with the free alternatives for each.]]></summary></entry><entry><title type="html">Designing Without Figma: Making Claude Code a Better Designer</title><link href="https://www.waynethompson.com.au/blog/2026/Improving-Claude-Code-For-Design/" rel="alternate" type="text/html" title="Designing Without Figma: Making Claude Code a Better Designer" /><published>2026-11-23T02:00:00+00:00</published><updated>2026-11-23T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/2026/Improving-Claude-Code-For-Design</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/2026/Improving-Claude-Code-For-Design/"><![CDATA[<p>Ask Claude Code to “build a landing page” with nothing else to go on and you’ll get the landing page everyone has seen a hundred times. Centred hero, a gradient, three feature cards, and a pile of raw Tailwind <code class="language-plaintext highlighter-rouge">div</code>s. It works. It also has no taste, because nothing in its setup gave it any.</p>

<p>The usual answer is to design in Figma first and have the model translate the mockup. I think that’s backwards. Claude Code is at its best working directly in code, so give it decent building blocks to start from and a way to see what it rendered.</p>

<!--more-->

<p>Below is the non-Figma stack I’d set up, with install commands, then a workflow for taking a new design from nothing to finished. There are three pieces: component registries so Claude isn’t writing every button from scratch, design skills for exploring and critiquing, and a browser loop so it can look at its own output.</p>

<h2 id="1-component-mcp-servers">1. Component MCP Servers</h2>

<p>Left alone, Claude writes every component from first principles, and that’s where the generic look comes from. It’s averaging every button it has ever seen. Point it at a real component registry and it pulls in components that are already polished and use current props.</p>

<h3 id="21stdev-mcp">21st.dev MCP</h3>

<p><a href="https://21st.dev/mcp">21st.dev</a> has thousands of animated React/Tailwind components: hero sections, pricing tables, feature grids, testimonials, even SVG logos. You describe what you want, Claude searches the registry, and a real component lands in your repo.</p>

<p>Create an API key at <a href="https://21st.dev/mcp">21st.dev/mcp</a>, then generate the Claude Code config from your project directory:</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npx @21st-dev/cli@latest init <span class="nt">--client</span> claude <span class="nt">--write</span>
</code></pre></div></div>

<p>Without <code class="language-plaintext highlighter-rouge">--write</code> the CLI just prints the config for you to paste in. Either way, swap your key in for the placeholder and restart Claude Code. Searching is free. Pulling full component code and AI generation count against your plan.</p>

<p>I’d use it for marketing pages, where looking premium matters more than matching an existing design system.</p>

<h3 id="official-shadcnui-mcp">Official shadcn/ui MCP</h3>

<p>The <a href="https://ui.shadcn.com/docs/mcp">shadcn/ui MCP server</a> lets Claude browse and install official shadcn components and full blocks like dashboards, auth screens and sidebars. The real win is accuracy. Claude reads the current registry instead of remembering an older version, so you’re not debugging a <code class="language-plaintext highlighter-rouge">variant</code> that was renamed two releases ago.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npx shadcn@latest mcp init <span class="nt">--client</span> claude
</code></pre></div></div>

<p>This is the one for application UI: dashboards, settings pages, forms. You get an accessible component set that you own and can theme.</p>

<h2 id="2-design-skills">2. Design Skills</h2>

<p>Components cover the building blocks. Taste is a separate problem: trying options, picking the better one, and tightening the details.</p>

<h3 id="built-in-design-claude-design">Built-in <code class="language-plaintext highlighter-rouge">/design</code> (Claude Design)</h3>

<p>Type <code class="language-plaintext highlighter-rouge">/design</code> in Claude Code, give it a brief, and you get a canvas of editable UI artboards in the same editor as <a href="https://claude.com/design">Claude Design</a>. You see several variations side by side (light vs. dark, or three different landing-page concepts) instead of whatever Claude thought of first. Tweak them on the canvas, then tell Claude to build the one you like in your stack. If you already have a design system in code, <code class="language-plaintext highlighter-rouge">/design-sync</code> pulls it in so the artboards use your real components.</p>

<p>It’s a research preview at the moment and needs a paid plan (Pro, Max, Team or Enterprise).</p>

<p>Honestly, comparing options before committing was most of what I used Figma for anyway.</p>

<h3 id="impeccable">Impeccable</h3>

<p><a href="https://github.com/pbakaus/impeccable">Impeccable</a> adds 23 design commands, all under <code class="language-plaintext highlighter-rouge">/impeccable &lt;command&gt;</code>. The ones worth starting with:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">/impeccable critique</code> reviews hierarchy, clarity and layout, and lists concrete issues.</li>
  <li><code class="language-plaintext highlighter-rouge">/impeccable audit</code> checks accessibility, performance and responsive behaviour.</li>
  <li><code class="language-plaintext highlighter-rouge">/impeccable polish</code> is the last pass on typography, spacing and alignment before you ship.</li>
  <li><code class="language-plaintext highlighter-rouge">typeset</code>, <code class="language-plaintext highlighter-rouge">layout</code>, <code class="language-plaintext highlighter-rouge">colorize</code>, and <code class="language-plaintext highlighter-rouge">bolder</code> / <code class="language-plaintext highlighter-rouge">quieter</code> each fix one aspect of the design.</li>
</ul>

<p><code class="language-plaintext highlighter-rouge">/impeccable live</code> lets you iterate on elements directly in the browser rather than describing pixel nudges in chat. Run <code class="language-plaintext highlighter-rouge">/impeccable init</code> first to set it up.</p>

<p>Install it from your project root:</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npx impeccable skills <span class="nb">install</span>
</code></pre></div></div>

<p>Or as a Claude Code plugin:</p>

<div class="language-text highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/plugin marketplace add pbakaus/impeccable
</code></pre></div></div>

<h3 id="remix"><code class="language-plaintext highlighter-rouge">/remix</code></h3>

<p><code class="language-plaintext highlighter-rouge">/remix</code> comes from Builder.io’s <a href="https://github.com/BuilderIO/agent-native">agent-native</a> repo. Point it at an effect on a site you like, say a scroll animation or an interactive hero, and it rebuilds that effect in your codebase. It writes a behaviour spec first, then implements it with original code rather than copying the source. It also restyles the effect to your brand and exposes the tuning knobs as props or CSS custom properties. <code class="language-plaintext highlighter-rouge">/remix explain</code> tells you how an effect works without building it.</p>

<p>It’s for effects and interactions, not page layout. If you want to study a reference site’s type scale or grid, have Claude look at it directly with Playwright (below). <a href="https://www.builder.io/blog/claude-skills-for-designers">Builder.io’s write-up</a> goes into more detail on this and the next one.</p>

<h3 id="emil-kowalskis-motion-skills">Emil Kowalski’s Motion Skills</h3>

<p>For when the layout looks clean but everything moves like it’s 2012. Emil Kowalski’s <a href="https://aiforui.dev/skills">skills pack</a> is based on his animations.dev course. It teaches Claude proper easing, spring physics and animation timing. Without it you get <code class="language-plaintext highlighter-rouge">transition: all 0.3s ease</code> on everything. With it, a menu springs open from its trigger and a new list item settles into place.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npx skills@latest add emilkowalski/skills
</code></pre></div></div>

<p>There are about 19 skills in the pack. Start with <code class="language-plaintext highlighter-rouge">emil-design-eng</code> for the core guidance and <code class="language-plaintext highlighter-rouge">animate</code> for building a single animation properly. <code class="language-plaintext highlighter-rouge">review-animations</code> gives your motion code a strict review, and <code class="language-plaintext highlighter-rouge">improve-animations</code> audits a whole codebase.</p>

<h2 id="3-playwright-mcp-giving-claude-eyes">3. Playwright MCP: Giving Claude Eyes</h2>

<p>If you only install one thing from this post, make it this one. Without a mockup to compare against, the only source of truth is the rendered page, and by default Claude never sees it. It writes CSS, assumes it looks right, and moves on.</p>

<p><a href="https://github.com/microsoft/playwright-mcp">Playwright MCP</a> lets Claude start your dev server, open the page, click through states like menus, errors and empty views, take desktop and mobile screenshots, and fix what it finds.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>claude mcp add playwright <span class="nt">--</span> npx <span class="nt">-y</span> @playwright/mcp@latest
</code></pre></div></div>

<p>Then give it a visual acceptance test:</p>

<blockquote>
  <p>“Start the local dev server, take screenshots at 1440px and 390px using Playwright, inspect them for alignment or hierarchy issues, and fix anything that looks off.”</p>
</blockquote>

<p>That single prompt catches a surprising amount: text overflowing on mobile, columns out of line, buttons wrapping, labels you can barely read.</p>

<h2 id="the-short-version">The Short Version</h2>

<p>For tweaking a page that already exists, the loop is short. Pull blocks from shadcn or 21st.dev (<em>“Use 21st to add a dark-mode SaaS pricing grid and hero section”</em>), tighten them with <code class="language-plaintext highlighter-rouge">/impeccable polish</code> or try alternatives in <code class="language-plaintext highlighter-rouge">/design</code>, then have Claude screenshot the result at desktop and mobile widths and fix what it sees.</p>

<p>A brand-new design needs more structure than that.</p>

<h2 id="workflow-creating-a-new-design">Workflow: Creating a New Design</h2>

<p>The biggest mistake is letting Claude start building straight away. Whatever it builds first quietly becomes the design. This is the order I’d follow instead.</p>

<h3 id="step-1-write-a-design-brief-before-any-code">Step 1: Write a design brief before any code</h3>

<p>Create a <code class="language-plaintext highlighter-rouge">DESIGN.md</code> in the repo root and reference it from <code class="language-plaintext highlighter-rouge">CLAUDE.md</code>. Keep it short. It’s a set of rules, not a spec:</p>

<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="gh"># DESIGN.md</span>

<span class="gu">## Product &amp; audience</span>
B2B analytics dashboard for finance teams. Users are in it all day: favour density and clarity over flair.

<span class="gu">## Personality</span>
Calm, precise, trustworthy. Not playful. No gradients, no glassmorphism.

<span class="gu">## Constraints</span>
<span class="p">-</span> Framework: Next.js + Tailwind + shadcn/ui
<span class="p">-</span> Must support light and dark mode
<span class="p">-</span> WCAG AA contrast minimum
<span class="p">-</span> Breakpoints we test: 1440px, 1024px, 390px

<span class="gu">## References</span>
<span class="p">-</span> linear.app (density, keyboard-first feel)
<span class="p">-</span> stripe.com/docs (typography, information hierarchy)
</code></pre></div></div>

<p>Now every later step has something to be judged against. Claude can’t do much with “does this look good?” It can answer “is this calm and dense enough for someone who’s in it all day?”</p>

<h3 id="step-2-study-your-references">Step 2: Study your references</h3>

<p>Have Claude open the sites in your references list with Playwright and pull out patterns:</p>

<blockquote>
  <p>“Open linear.app with Playwright. Summarise its type scale, spacing rhythm, and navigation structure into a short list of patterns. Don’t generate any components yet.”</p>
</blockquote>

<p>Put the useful bits into <code class="language-plaintext highlighter-rouge">DESIGN.md</code>. If a site has an effect you want, like a scroll reveal, note it for <code class="language-plaintext highlighter-rouge">/remix</code> later.</p>

<h3 id="step-3-explore-directions-with-design">Step 3: Explore directions with <code class="language-plaintext highlighter-rouge">/design</code></h3>

<p>Ask for three distinct directions for your most important screen, usually the home page or main dashboard:</p>

<blockquote>
  <p>“Using DESIGN.md, create three visually distinct directions for the main dashboard screen in /design. Vary density, colour use, and navigation placement.”</p>
</blockquote>

<p>Pick one, or combine pieces of two, and pull it back into code. This step is why you don’t need Figma. You’re choosing from real options instead of accepting the first one.</p>

<h3 id="step-4-lock-in-design-tokens">Step 4: Lock in design tokens</h3>

<p>Before building more screens, turn the chosen direction into tokens (colours, type scale, spacing, radii, shadows) as CSS variables or in your Tailwind theme:</p>

<blockquote>
  <p>“Extract the colours, type sizes, spacing, and radii from the chosen direction into CSS variables in globals.css and document them in DESIGN.md. Replace any hard-coded values with the tokens.”</p>
</blockquote>

<p>I’d argue this does more for consistency than every other step combined. Every screen after this draws from the same small set of values.</p>

<h3 id="step-5-build-the-remaining-screens-from-the-registries">Step 5: Build the remaining screens from the registries</h3>

<p>With tokens in place, build the rest from shadcn or 21st.dev components:</p>

<blockquote>
  <p>“Using shadcn, build the settings page and the transactions table. Use only the tokens in DESIGN.md. No new colours or font sizes.”</p>
</blockquote>

<p>Registry components plus shared tokens means new screens match the first one without much effort.</p>

<h3 id="step-6-add-motion-deliberately">Step 6: Add motion deliberately</h3>

<p>Use the motion skills where movement explains something: navigation, panels opening and closing, list changes, feedback on actions. This is also when to <code class="language-plaintext highlighter-rouge">/remix</code> the effects you noted earlier.</p>

<blockquote>
  <p>“Add motion only where it explains a state change: the sidebar collapse, dialog open/close, and new rows appearing in the table. Use spring physics and respect prefers-reduced-motion.”</p>
</blockquote>

<h3 id="step-7-run-the-visual-qa-loop">Step 7: Run the visual QA loop</h3>

<p>Let Claude check its own work against the brief:</p>

<blockquote>
  <p>“Start the dev server. For each page, take screenshots at 1440px, 1024px and 390px in both light and dark mode. Check them against DESIGN.md for alignment, hierarchy, contrast and overflow. List the issues, fix them, and re-screenshot to confirm.”</p>
</blockquote>

<p>Repeat until it comes back clean. Don’t just test the default view. Empty tables, error messages, loading skeletons and very long names are where layouts break.</p>

<h3 id="step-8-critique-polish-and-write-down-what-you-learned">Step 8: Critique, polish, and write down what you learned</h3>

<p>Finish with a review pass:</p>

<div class="language-text highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/impeccable critique
/impeccable polish
/impeccable audit
</code></pre></div></div>

<p>Fix what’s worth fixing, and add any new rules to <code class="language-plaintext highlighter-rouge">DESIGN.md</code>, for example “table rows are 40px, never taller”. The next screen starts from a better brief.</p>

<h3 id="optional-a-visual-critic-agent">Optional: a visual-critic agent</h3>

<p>If you do this a lot, move step 7 into a sub-agent at <code class="language-plaintext highlighter-rouge">.claude/agents/visual-critic.md</code> whose only job is to screenshot pages and report problems against <code class="language-plaintext highlighter-rouge">DESIGN.md</code>. The screenshots stay in its context instead of filling up yours, and you just get the list of problems back.</p>

<p>Claude Code can do decent design work. Out of the box it just has nothing to build from, no brief to follow and no way to see the result. Write the brief first, and let it look at its own screenshots before you do.</p>]]></content><author><name>Wayne Thompson</name></author><category term="ai" /><category term="tooling" /><category term="design" /><category term="claude" /><category term="claude-code" /><category term="design" /><category term="ui" /><category term="mcp" /><category term="playwright" /><category term="shadcn" /><category term="developer-tools" /><summary type="html"><![CDATA[Ask Claude Code to “build a landing page” with nothing else to go on and you’ll get the landing page everyone has seen a hundred times. Centred hero, a gradient, three feature cards, and a pile of raw Tailwind divs. It works. It also has no taste, because nothing in its setup gave it any. The usual answer is to design in Figma first and have the model translate the mockup. I think that’s backwards. Claude Code is at its best working directly in code, so give it decent building blocks to start from and a way to see what it rendered.]]></summary></entry><entry><title type="html">Choosing Your JavaScript Package Manager in 2026: npm vs. Yarn vs. pnpm vs. Bun vs. Lerna</title><link href="https://www.waynethompson.com.au/blog/2026/Choosing-Your-JavaScript-Package-Manager/" rel="alternate" type="text/html" title="Choosing Your JavaScript Package Manager in 2026: npm vs. Yarn vs. pnpm vs. Bun vs. Lerna" /><published>2026-08-05T02:00:00+00:00</published><updated>2026-08-05T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/2026/Choosing-Your-JavaScript-Package-Manager</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/2026/Choosing-Your-JavaScript-Package-Manager/"><![CDATA[<p>Every JS/TS project starts with the same boring question: <code class="language-plaintext highlighter-rouge">npm install</code>, <code class="language-plaintext highlighter-rouge">yarn</code>, <code class="language-plaintext highlighter-rouge">pnpm install</code>, or <code class="language-plaintext highlighter-rouge">bun install</code>? It seems trivial until you’re six months into a monorepo with a bloated <code class="language-plaintext highlighter-rouge">node_modules</code> folder, a CI pipeline that takes twelve minutes to install dependencies, and a junior dev who just asked why there are three different lockfiles in the repo.</p>

<p>I went down this rabbit hole again recently while setting up a new monorepo, and it was a good excuse to properly compare where each tool actually stands in 2026 rather than relying on outdated opinions from a few years back.</p>

<!--more-->

<p>One thing worth calling out before we start: <strong>Lerna isn’t a like-for-like alternative to the other four</strong>. npm, Yarn, pnpm, and Bun are package managers - they resolve, download, and link your dependencies. Lerna is a monorepo <em>orchestration</em> tool - it manages versioning, publishing, and task-running across packages, and it sits on top of one of the other four rather than replacing it. I’ve included it because “should we use Lerna” is a question that comes up in the same breath as “which package manager should we use,” but it’s answering a different problem.</p>

<hr />

<h2 id="1-npm">1. npm</h2>

<p>npm is the default that ships with Node.js, and it’s come a long way since the days of notoriously slow, non-deterministic installs. Modern npm (v10+) has a solid lockfile, built-in workspaces support, and is fast enough for most projects.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npm <span class="nb">install
</span>npm <span class="nb">install </span>lodash <span class="nt">--save</span>
npm <span class="nb">install</span> <span class="nt">--workspace</span><span class="o">=</span>packages/api express
</code></pre></div></div>

<p><strong>The Pro:</strong> Zero setup - it’s already on every machine with Node installed. It has the largest community, the most Stack Overflow answers, and every CI/CD template and tutorial assumes it by default. <code class="language-plaintext highlighter-rouge">package-lock.json</code> is well understood by every tool in the ecosystem.</p>

<p><strong>The Con:</strong> It still uses a flat, hoisted <code class="language-plaintext highlighter-rouge">node_modules</code> structure, which means “phantom dependencies” - your code can <code class="language-plaintext highlighter-rouge">import</code> a package you never declared, just because some other dependency pulled it in. Install times and disk usage are also noticeably worse than pnpm or Bun on larger projects, even with newer caching improvements.</p>

<p><strong>Best For:</strong> Small to mid-sized projects, teams who want the path of least resistance, and anywhere you can’t guarantee a second tool will be installed on every machine or CI runner.</p>

<hr />

<h2 id="2-yarn">2. Yarn</h2>

<p>Yarn originally existed to fix npm’s early reliability problems, and “Yarn Classic” (v1) is still what most people picture when they hear the name. But the project has moved on - “Yarn Berry” (v2+) is a genuinely different tool, built around Plug’n’Play (PnP), which skips <code class="language-plaintext highlighter-rouge">node_modules</code> entirely and resolves packages straight from a cache.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>yarn add lodash
yarn workspaces foreach run build
</code></pre></div></div>

<p><strong>The Pro:</strong> Yarn Berry’s Plug’n’Play mode can make installs and cold starts extremely fast, since there’s no <code class="language-plaintext highlighter-rouge">node_modules</code> tree to write to disk. Yarn also pioneered good workspaces UX, and “zero-installs” (committing the cache to the repo) is a compelling option for teams that want fully reproducible CI without a network round-trip.</p>

<p><strong>The Con:</strong> The Classic-to-Berry migration fractured the community, and a lot of tooling and older tutorials still assume Yarn 1, which is unmaintained. PnP mode, while fast, isn’t fully compatible with every package that does non-standard things with the filesystem, so some teams run Yarn Berry in “node-modules linker” mode anyway, which gives up most of the benefit.</p>

<p><strong>Best For:</strong> Teams already invested in the Yarn ecosystem, or projects that want to commit to Plug’n’Play and are willing to deal with the occasional compatibility issue in exchange for install speed.</p>

<hr />

<h2 id="3-pnpm">3. pnpm</h2>

<p>pnpm has quietly become the default recommendation for most new JS/TS projects, and for good reason. It uses a single global content-addressable store on disk, and links packages into a <code class="language-plaintext highlighter-rouge">node_modules</code> structure using hard links and symlinks instead of copying files.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>pnpm <span class="nb">install
</span>pnpm add lodash <span class="nt">--filter</span> api
pnpm <span class="nt">-r</span> run build
</code></pre></div></div>

<p><strong>The Pro:</strong> Massive disk space savings across projects (a dependency is only ever stored once on disk, no matter how many projects use it), fast installs, and - critically - a <em>strict</em> <code class="language-plaintext highlighter-rouge">node_modules</code> structure that prevents phantom dependencies by default. Its monorepo/workspace support (<code class="language-plaintext highlighter-rouge">pnpm-workspace.yaml</code>, <code class="language-plaintext highlighter-rouge">--filter</code>) is widely regarded as the best of the bunch, which is why projects like Vue, Vite, and Prisma use it internally.</p>

<p><strong>The Con:</strong> The strictness that makes it safer can also break packages that quietly rely on npm/Yarn’s looser hoisting behaviour, usually surfacing as a confusing “module not found” error the first time you migrate an existing project. It’s also still a separate install on top of Node, unlike Bun.</p>

<p><strong>Best For:</strong> Almost any new project, but especially monorepos. If you’re not sure which to pick and don’t have a specific reason to choose otherwise, pnpm is the safest default in 2026.</p>

<hr />

<h2 id="4-bun">4. Bun</h2>

<p>Bun isn’t just a package manager - it’s an all-in-one JavaScript runtime, bundler, test runner, <em>and</em> package manager, written in Zig for speed. Its package manager is a drop-in-ish replacement for npm, reading <code class="language-plaintext highlighter-rouge">package.json</code> and producing a binary lockfile (<code class="language-plaintext highlighter-rouge">bun.lock</code> in text form since Bun 1.1+).</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>bun <span class="nb">install
</span>bun add lodash
bun run build
</code></pre></div></div>

<p><strong>The Pro:</strong> Installs are dramatically faster than any of the other three, often by an order of magnitude on a warm cache, because Bun does dependency resolution and linking natively rather than through Node.js. If you also adopt the Bun runtime, you get native TypeScript execution, a built-in test runner, and a bundler, which removes several tools from your stack entirely.</p>

<p><strong>The Con:</strong> Bun-the-runtime is still catching up on Node.js API and native addon (N-API) compatibility, so complex backend projects can hit edge cases in production. You can absolutely use <code class="language-plaintext highlighter-rouge">bun install</code> purely as a package manager while still running Node in production, which sidesteps most of that risk - but then you lose some of the appeal of going all-in on the ecosystem.</p>

<p><strong>Best For:</strong> Greenfield projects, CLIs, scripts, and frontend tooling where install and iteration speed matters most. Increasingly viable for backend/Express-style projects too, but worth a compatibility check before committing for anything with heavy native dependencies.</p>

<hr />

<h2 id="5-lerna">5. Lerna</h2>

<p>Lerna predates all the modern workspace tooling - it was originally built to manage versioning and publishing for multi-package repos (famously, Babel and Jest used it). It nearly died when Yarn/npm workspaces made its core use case redundant, but it was picked up and revived by the Nx team in 2022, and now happily delegates dependency installation to npm, Yarn, or pnpm workspaces while focusing on what it’s actually good at: versioning, changelogs, publishing, and (via optional Nx integration) cached, parallelised task running.</p>

<div class="language-bash highlighter-rouge"><div class="highlight"><pre class="highlight"><code>npx lerna version <span class="nt">--conventional-commits</span>
npx lerna publish
npx lerna run build <span class="nt">--parallel</span>
</code></pre></div></div>

<p><strong>The Pro:</strong> Best-in-class support for coordinated versioning and publishing across many packages - independent or fixed/locked versioning, automatic changelog generation, and safe, ordered <code class="language-plaintext highlighter-rouge">npm publish</code> across a whole package graph. With Nx integration enabled, you also get computation caching and task graph awareness, so <code class="language-plaintext highlighter-rouge">lerna run build</code> only rebuilds what actually changed.</p>

<p><strong>The Con:</strong> It solves a specific problem - publishing multiple packages, typically to a public or internal registry - that most application monorepos simply don’t have. If you’re building one deployable app split across <code class="language-plaintext highlighter-rouge">apps/</code> and <code class="language-plaintext highlighter-rouge">libs/</code> rather than publishing a set of npm packages, Lerna is usually more tooling than you need; plain workspaces (or Nx/Turborepo directly) get you most of the task-running benefit without the extra layer.</p>

<p><strong>Best For:</strong> Monorepos that publish multiple independently-versioned packages to npm - component libraries, SDKs, internal tool suites - not general-purpose application monorepos.</p>

<hr />

<h2 id="the-comparison-at-a-glance">The Comparison at a Glance</h2>

<table>
  <thead>
    <tr>
      <th>Feature</th>
      <th>npm</th>
      <th>Yarn (Berry)</th>
      <th>pnpm</th>
      <th>Bun</th>
      <th>Lerna</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Category</strong></td>
      <td>Package manager</td>
      <td>Package manager</td>
      <td>Package manager</td>
      <td>Runtime + package manager</td>
      <td>Monorepo orchestrator</td>
    </tr>
    <tr>
      <td><strong>Install speed</strong></td>
      <td>Moderate</td>
      <td>Fast (PnP)</td>
      <td>Fast</td>
      <td>Very fast</td>
      <td>N/A (delegates to a PM)</td>
    </tr>
    <tr>
      <td><strong>Disk efficiency</strong></td>
      <td>Low (duplicated)</td>
      <td>Moderate</td>
      <td>Very high (content-addressable store)</td>
      <td>Moderate</td>
      <td>N/A</td>
    </tr>
    <tr>
      <td><strong>Prevents phantom deps</strong></td>
      <td>No</td>
      <td>Yes (PnP)</td>
      <td>Yes (strict by default)</td>
      <td>Partially</td>
      <td>N/A</td>
    </tr>
    <tr>
      <td><strong>Workspaces/monorepo support</strong></td>
      <td>Basic</td>
      <td>Good</td>
      <td>Excellent</td>
      <td>Improving</td>
      <td>Excellent (versioning/publishing)</td>
    </tr>
    <tr>
      <td><strong>Ecosystem compatibility</strong></td>
      <td>Highest</td>
      <td>High (PnP has edge cases)</td>
      <td>High (strictness can surface bugs)</td>
      <td>Improving, some Node API gaps</td>
      <td>Depends on underlying PM</td>
    </tr>
    <tr>
      <td><strong>Ships built-in</strong></td>
      <td>With Node.js</td>
      <td>No</td>
      <td>No</td>
      <td>With Bun</td>
      <td>No</td>
    </tr>
    <tr>
      <td><strong>Best known for</strong></td>
      <td>Ubiquity</td>
      <td>Plug’n’Play</td>
      <td>Speed + strictness + disk savings</td>
      <td>All-in-one speed</td>
      <td>Multi-package publishing</td>
    </tr>
  </tbody>
</table>

<hr />

<h2 id="picking-a-tool-for-your-use-case">Picking a Tool for Your Use Case</h2>

<ul>
  <li>
    <p><strong>Angular:</strong> The Angular CLI defaults to npm and its schematics are tested most heavily against it, but pnpm works well and is a common choice for larger Angular monorepos (e.g. Nx-based workspaces, which Angular’s own tooling has close ties to). Avoid Yarn PnP with Angular unless you’ve verified your specific Angular version and plugins play nicely with it - some codegen tooling still expects a real <code class="language-plaintext highlighter-rouge">node_modules</code> tree.</p>
  </li>
  <li>
    <p><strong>React (Vite/Next.js/CRA-successors):</strong> Any of the four package managers work cleanly here since the tooling is largely package-manager agnostic. pnpm is a great default for a single app; Bun is worth trying if you want faster local dev loops and aren’t relying on anything with native bindings.</p>
  </li>
  <li>
    <p><strong>Express.js / Node backend:</strong> npm remains the safest choice if you’re deploying to a locked-down environment (e.g. certain PaaS or container base images) where you can’t guarantee Bun or pnpm are available. If you control your deployment pipeline, pnpm is a strong upgrade for install speed and dependency hygiene; Bun is compelling if you’re comfortable running it as your production runtime too, not just for installs.</p>
  </li>
  <li>
    <p><strong>Monorepo with multiple published packages (component library, SDK, internal npm packages):</strong> Use pnpm or Yarn workspaces for dependency management, and layer Lerna on top for versioning and publishing. This is Lerna’s actual sweet spot.</p>
  </li>
  <li>
    <p><strong>Monorepo with a single deployable app (frontend + backend + shared libs, nothing published):</strong> Use pnpm workspaces (or Yarn) with Nx or Turborepo for task orchestration and caching. Skip Lerna entirely - you don’t have a publishing problem to solve.</p>
  </li>
</ul>

<hr />

<h2 id="final-verdict-which-should-you-use">Final Verdict: Which Should You Use?</h2>

<p>There isn’t a single right answer, but there’s a sensible default and a set of reasons to deviate from it:</p>

<ul>
  <li>
    <p><strong>Default to pnpm</strong> for new projects. The disk savings, install speed, and strict dependency resolution catch real bugs before they ship, and its workspace support is the strongest of the bunch for monorepos.</p>
  </li>
  <li>
    <p><strong>Stick with npm</strong> if you need maximum compatibility with constrained environments, are working on a small project where the extra speed doesn’t matter, or you’re onboarding people who’ve never touched anything else.</p>
  </li>
  <li>
    <p><strong>Consider Yarn Berry</strong> only if you’re specifically after Plug’n’Play and zero-installs, and you’re willing to validate compatibility with your dependency tree first.</p>
  </li>
  <li>
    <p><strong>Reach for Bun</strong> when install and iteration speed is the priority and you’re not deep in Node-specific native dependencies - it’s increasingly viable as your full runtime too, not just an installer.</p>
  </li>
  <li>
    <p><strong>Add Lerna</strong> only when you’re actually publishing multiple independently-versioned packages. Otherwise, use your package manager’s native workspaces plus Nx or Turborepo for task running.</p>
  </li>
</ul>

<p>For my own projects, I’ve settled on <strong>pnpm workspaces</strong>, with <strong>Nx</strong> for task orchestration rather than Lerna, since I’m building applications rather than publishing package suites. I keep an eye on Bun for anything greenfield and speed-sensitive, but for anything going into a shared Angular/Express monorepo, pnpm’s strictness has already saved me from a few “works on my machine” phantom dependency bugs that npm would have let slide.</p>]]></content><author><name>Wayne Thompson</name></author><category term="javascript" /><category term="tooling" /><category term="javascript" /><category term="typescript" /><category term="npm" /><category term="yarn" /><category term="pnpm" /><category term="bun" /><category term="lerna" /><category term="monorepo" /><category term="nodejs" /><summary type="html"><![CDATA[Every JS/TS project starts with the same boring question: npm install, yarn, pnpm install, or bun install? It seems trivial until you’re six months into a monorepo with a bloated node_modules folder, a CI pipeline that takes twelve minutes to install dependencies, and a junior dev who just asked why there are three different lockfiles in the repo. I went down this rabbit hole again recently while setting up a new monorepo, and it was a good excuse to properly compare where each tool actually stands in 2026 rather than relying on outdated opinions from a few years back.]]></summary></entry><entry><title type="html">Instructions vs. Skills vs. Agents: Knowing the Difference Will Save You Tokens</title><link href="https://www.waynethompson.com.au/blog/2026/Instructions-Skills-and-Agents/" rel="alternate" type="text/html" title="Instructions vs. Skills vs. Agents: Knowing the Difference Will Save You Tokens" /><published>2026-07-29T02:00:00+00:00</published><updated>2026-07-29T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/2026/Instructions-Skills-and-Agents</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/2026/Instructions-Skills-and-Agents/"><![CDATA[<p>I keep running into the same setup when I look at how people configure their coding assistants: one giant instructions file with everything crammed into it. Coding standards, one-off workflows, edge-case rules that only apply once a month - all of it loaded into context on every single request, whether it’s needed or not.</p>

<p>It’s a habit, not a strategy, and it’s an expensive one. Instructions, skills, and agents solve three different problems. Mix them up and you either bloat your context window with stuff you didn’t need this turn, or you assume something will “just work” that was never going to trigger in the first place.</p>

<!--more-->

<p>Here’s the actual distinction, stripped of the marketing language: it comes down to <em>when</em> content enters the model’s context and <em>how long</em> it sticks around.</p>

<ul>
  <li><strong>Instructions</strong> load every turn, relevant or not.</li>
  <li><strong>Skills</strong> sit off to the side as a name and a one-line description until the model decides they’re worth pulling in.</li>
  <li><strong>Agents</strong> hand the work off entirely - a separate context does the digging, and you only see what comes back.</li>
</ul>

<p>Get the boundaries wrong and you’ll notice it two ways: either your system prompt is so bloated there’s no room left for the actual problem, or your assistant has no idea about a convention you were sure it would pick up automatically.</p>

<hr />

<h2 id="1-instructions">1. Instructions</h2>

<p>Instructions are static and always-on. They go into every request no matter what you’re asking - <code class="language-plaintext highlighter-rouge">CLAUDE.md</code>, <code class="language-plaintext highlighter-rouge">.github/copilot-instructions.md</code>, a system prompt, doesn’t matter which.</p>

<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="gh"># CLAUDE.md</span>
<span class="p">-</span> Use tabs, not spaces
<span class="p">-</span> Never commit directly to main
<span class="p">-</span> All API responses must use the ApiResult<span class="nt">&lt;T&gt;</span> wrapper
</code></pre></div></div>

<p><strong>The Pro:</strong> It’s guaranteed to apply. There’s no “the model decided this wasn’t relevant” - if it’s in instructions, it’s in the prompt, every time.</p>

<p><strong>The Con:</strong> Every token in that file gets paid for on every turn, including the vast majority of turns where it does nothing. A 3,000-token instructions file isn’t a one-off cost - it’s 3,000 tokens gone from every single exchange in a long session, and that adds up fast against real work like code and history.</p>

<p><strong>Best For:</strong> Rules that are genuinely universal - coding standards, hard safety constraints (“never force-push”), the stuff you’d want applied to 100% of tasks in the repo. If something only matters one time in ten, it doesn’t belong here.</p>

<hr />

<h2 id="2-skills">2. Skills</h2>

<p>Skills invert the model. Instead of always loading, the model sees a short list of names and descriptions up front, and only pulls the full content in when it looks relevant to what’s being asked. Claude’s <code class="language-plaintext highlighter-rouge">Skill</code> tool and Copilot’s reusable prompt files are both built on this idea, even if the plumbing underneath is different.</p>

<div class="language-markdown highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nn">---</span>
<span class="na">name</span><span class="pi">:</span> <span class="s">deploy-checklist</span>
<span class="na">description</span><span class="pi">:</span> <span class="s">Use when deploying to production - runs the pre-deploy verification steps</span>
<span class="nn">---</span>

<span class="p">1.</span> Run the full test suite
<span class="p">2.</span> Check the changelog is updated
<span class="p">3.</span> Confirm the feature flag is behind a gate
...
</code></pre></div></div>

<p><strong>The Pro:</strong> Practically free when you’re not using it. You pay for a one-line description until the moment a skill actually fires, at which point the full content loads for that turn only. That means you can build up dozens of specialised workflows without any of them taxing your always-on budget.</p>

<p><strong>The Con:</strong> Nothing guarantees it fires. The model has to correctly guess relevance from a short description, and a vague or lazy description means a genuinely useful skill just never comes up - or the wrong one does. The name and description carry far more weight here than they do for instructions.</p>

<p><strong>Best For:</strong> Things you reach for often but not constantly - a deployment checklist, a specific review rubric, a migration procedure specific to one repo. Anything conditional, not universal.</p>

<hr />

<h2 id="3-agents">3. Agents</h2>

<p>Agents are delegation, not a way of keeping content out of context entirely. An agent can be pre-loaded with its own instructions - a frontend agent might already know which folder the app lives in, its component conventions, its build tooling - the same way <code class="language-plaintext highlighter-rouge">CLAUDE.md</code> primes your main session. The difference is <em>where</em> that context lives: it sits in the agent’s own window, not yours, and all you get back is a summary. So the real question isn’t whether context gets loaded, it’s whose window it loads into.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>"Research how the auth middleware handles token refresh
across the codebase, then report back in under 200 words."
→ a fresh agent does the digging in its own context - the file
  reads, the grep results, the dead ends - and you only see
  the summary at the end
</code></pre></div></div>

<p><strong>The Pro:</strong> It keeps the mess out of your main thread. Dozens of file reads and dead-end searches stay contained in the sub-agent’s context; you only pay for the distilled answer. That’s what makes a long, complicated session survivable without hitting a wall.</p>

<p><strong>The Con:</strong> Whatever an agent knows about the codebase up front, it still starts cold on <em>your conversation</em> - it has no idea what you’ve already tried or ruled out unless you brief it, so a lazy prompt gets you a shallow, generic result. There’s also a real cost and latency hit - spinning one up to answer something you could look up in ten seconds is usually the slower, more expensive option.</p>

<p><strong>Best For:</strong> Open-ended digging that would otherwise flood your context with noise - broad codebase searches, multi-file investigations - and independent sub-tasks you can run in parallel. Not for anything you need an answer to before your very next move.</p>

<hr />

<h2 id="the-comparison-at-a-glance">The Comparison at a Glance</h2>

<table>
  <thead>
    <tr>
      <th>Feature</th>
      <th>Instructions</th>
      <th>Skills</th>
      <th>Agents</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>When loaded</strong></td>
      <td>Every request, always</td>
      <td>On demand, when judged relevant</td>
      <td>Never loaded into your context at all</td>
    </tr>
    <tr>
      <td><strong>Context cost when unused</strong></td>
      <td>Full cost, every turn</td>
      <td>Basically nothing (one-line description)</td>
      <td>None</td>
    </tr>
    <tr>
      <td><strong>Context cost when used</strong></td>
      <td>Same as always</td>
      <td>Full skill content, that turn only</td>
      <td>Just the summary that comes back</td>
    </tr>
    <tr>
      <td><strong>Reliability</strong></td>
      <td>Guaranteed</td>
      <td>Depends on the model guessing relevance correctly</td>
      <td>Depends on how well you briefed it</td>
    </tr>
    <tr>
      <td><strong>Best for</strong></td>
      <td>Rules that apply to everything</td>
      <td>Workflows you use sometimes, not always</td>
      <td>Exploration and parallel sub-tasks</td>
    </tr>
    <tr>
      <td><strong>Fails how</strong></td>
      <td>Bloated context, crowds out real work</td>
      <td>Silently never triggers</td>
      <td>Slow and costly for trivial lookups; shallow if the prompt is thin</td>
    </tr>
  </tbody>
</table>

<hr />

<h2 id="claude-vs-github-copilot-where-they-actually-differ">Claude vs. GitHub Copilot: Where They Actually Differ</h2>

<p>The three-layer split holds for both tools, but the details underneath aren’t the same.</p>

<p><strong>Instructions</strong> look almost identical either way. Claude Code reads <code class="language-plaintext highlighter-rouge">CLAUDE.md</code> at both a global (<code class="language-plaintext highlighter-rouge">~/.claude/CLAUDE.md</code>) and project level, both loaded automatically every time. Copilot spreads the same idea across <code class="language-plaintext highlighter-rouge">.github/copilot-instructions.md</code> at the repo level plus personal custom instructions in VS Code/GitHub settings. Different filenames, same “always injected” behaviour.</p>

<p><strong>Skills is where they part ways.</strong> Claude treats skills as their own first-class thing, separate from instructions - discoverable by name and description, scoped globally or per-project, picked up automatically when relevant. Copilot doesn’t really have a matching feature. The nearest things are reusable <strong>prompt files</strong> (<code class="language-plaintext highlighter-rouge">.github/prompts/*.prompt.md</code>) and <strong>custom chat modes</strong>, but you mostly invoke those yourself, slash-command style, rather than the model discovering and loading them on its own. If you’re coming over from Copilot, don’t expect that auto-discovery behaviour to just be there - it isn’t.</p>

<p><strong>Agents</strong> diverge again. Copilot’s headline agent feature is the <strong>coding agent</strong>: assign it a GitHub issue, it goes off and works in a cloud sandbox asynchronously, and eventually opens a PR. That’s a different shape entirely from Claude’s sub-agents, which run synchronously or in the background <em>within</em> a session, mostly for research and parallel digging rather than owning an issue end-to-end. Copilot’s in-editor “agent mode” is closer to Claude’s main agentic loop - multi-step, tool-using, one shared context throughout - than it is to Claude’s sub-agent delegation.</p>

<hr />

<h2 id="final-verdict-how-to-actually-use-them">Final Verdict: How to Actually Use Them</h2>

<ul>
  <li>
    <p><strong>Instructions</strong> only get something if you’d be annoyed at its absence on <em>every single task</em> in the repo. Keep the file short - every line is a recurring tax.</p>
  </li>
  <li>
    <p><strong>Skills</strong> get something if it’s a real, repeated workflow, just not one you need on every task. Spend the extra five minutes on the name and description - that’s the whole mechanism the model has to find it by.</p>
  </li>
  <li>
    <p><strong>Agents</strong> get the open-ended stuff - the kind of question that would otherwise fill your context with search noise, or work you can genuinely split up and run at the same time. Don’t reach for one to answer something a single file read would settle.</p>
  </li>
</ul>

<p>My own setup ended up small on purpose: a short <code class="language-plaintext highlighter-rouge">CLAUDE.md</code> with only hard rules, a growing pile of skills for anything workflow-shaped, and agents kept for the “go figure out how this works across the whole codebase” questions that used to chew through half my context window before I bothered separating the three properly. In another post I will go into how I use agent orchistration to keep a long-running session alive without hitting the context wall, but for now, just remember: instructions, skills, and agents are not interchangeable. Use them correctly and you’ll save tokens, time, and frustration.</p>]]></content><author><name>Wayne Thompson</name></author><category term="ai" /><category term="tooling" /><category term="claude" /><category term="github-copilot" /><category term="ai-agents" /><category term="prompt-engineering" /><category term="developer-tools" /><category term="context-window" /><summary type="html"><![CDATA[I keep running into the same setup when I look at how people configure their coding assistants: one giant instructions file with everything crammed into it. Coding standards, one-off workflows, edge-case rules that only apply once a month - all of it loaded into context on every single request, whether it’s needed or not. It’s a habit, not a strategy, and it’s an expensive one. Instructions, skills, and agents solve three different problems. Mix them up and you either bloat your context window with stuff you didn’t need this turn, or you assume something will “just work” that was never going to trigger in the first place.]]></summary></entry><entry><title type="html">Choosing Your .NET API Strategy in 2026: MediatR vs. ServiceStack vs. WolverineFX</title><link href="https://www.waynethompson.com.au/blog/2026/Choosing-Your-DotNet-API-Strategy/" rel="alternate" type="text/html" title="Choosing Your .NET API Strategy in 2026: MediatR vs. ServiceStack vs. WolverineFX" /><published>2026-05-04T02:00:00+00:00</published><updated>2026-05-04T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/2026/Choosing-Your-DotNet-API-Strategy</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/2026/Choosing-Your-DotNet-API-Strategy/"><![CDATA[<p>Building a .NET web API in 2026 isn’t just about choosing between Controllers or Minimal APIs anymore. It’s about how you manage the flow of data and logic through your application. Three approaches dominate the conversation: the classic <strong>MediatR with CQRS</strong>, the high-performance <strong>ServiceStack</strong>, and the modern challenger <strong>WolverineFX</strong>.</p>

<p>This post came out of research I was doing while starting a few new projects and evaluating the best .NET 10 and React templates. The more I dug in, the more I realised the architectural decision around how you handle requests is just as important as any other tech choice.</p>

<!--more-->

<p>Here’s a breakdown of how they stack up.</p>

<hr />

<h2 id="the-comparison-at-a-glance">The Comparison at a Glance</h2>

<table>
  <thead>
    <tr>
      <th>Feature</th>
      <th>CQRS + MediatR</th>
      <th>ServiceStack</th>
      <th>WolverineFX</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Philosophy</strong></td>
      <td>Decoupling &amp; Clean Architecture</td>
      <td>Message-based productivity</td>
      <td>Low-ceremony &amp; durable messaging</td>
    </tr>
    <tr>
      <td><strong>Boilerplate</strong></td>
      <td>High (many files/classes)</td>
      <td>Low (all-in-one ecosystem)</td>
      <td>Very Low (uses convention)</td>
    </tr>
    <tr>
      <td><strong>Async Messaging</strong></td>
      <td>Needs a 3rd party (e.g. MassTransit)</td>
      <td>Built-in Service Client</td>
      <td>Built-in (Inbox/Outbox patterns)</td>
    </tr>
    <tr>
      <td><strong>Performance</strong></td>
      <td>Standard (reflection-heavy)</td>
      <td>High (optimised serialisation)</td>
      <td>Very High (source generators)</td>
    </tr>
  </tbody>
</table>

<hr />

<h2 id="1-the-industry-standard-cqrs--mediatr">1. The Industry Standard: CQRS + MediatR</h2>

<p>MediatR is the “safe” choice. It implements the Mediator pattern, allowing your API controllers or Minimal API endpoints to send a <strong>Request</strong> object and receive a <strong>Response</strong> without knowing who handles it.</p>

<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// Command</span>
<span class="k">public</span> <span class="n">record</span> <span class="nf">CreateOrderCommand</span><span class="p">(</span><span class="kt">string</span> <span class="n">CustomerId</span><span class="p">,</span> <span class="n">List</span><span class="p">&lt;</span><span class="n">OrderItem</span><span class="p">&gt;</span> <span class="n">Items</span><span class="p">)</span> 
    <span class="p">:</span> <span class="n">IRequest</span><span class="p">&lt;</span><span class="n">OrderResult</span><span class="p">&gt;;</span>

<span class="c1">// Handler</span>
<span class="k">public</span> <span class="k">class</span> <span class="nc">CreateOrderHandler</span> <span class="p">:</span> <span class="n">IRequestHandler</span><span class="p">&lt;</span><span class="n">CreateOrderCommand</span><span class="p">,</span> <span class="n">OrderResult</span><span class="p">&gt;</span>
<span class="p">{</span>
    <span class="k">public</span> <span class="k">async</span> <span class="n">Task</span><span class="p">&lt;</span><span class="n">OrderResult</span><span class="p">&gt;</span> <span class="nf">Handle</span><span class="p">(</span><span class="n">CreateOrderCommand</span> <span class="n">request</span><span class="p">,</span> <span class="n">CancellationToken</span> <span class="n">ct</span><span class="p">)</span>
    <span class="p">{</span>
        <span class="c1">// Business logic lives here, not in the controller</span>
        <span class="k">return</span> <span class="k">new</span> <span class="nf">OrderResult</span><span class="p">(</span><span class="n">Guid</span><span class="p">.</span><span class="nf">NewGuid</span><span class="p">());</span>
    <span class="p">}</span>
<span class="p">}</span>

<span class="c1">// Minimal API endpoint</span>
<span class="n">app</span><span class="p">.</span><span class="nf">MapPost</span><span class="p">(</span><span class="s">"/orders"</span><span class="p">,</span> <span class="k">async</span> <span class="p">(</span><span class="n">CreateOrderCommand</span> <span class="n">cmd</span><span class="p">,</span> <span class="n">IMediator</span> <span class="n">mediator</span><span class="p">)</span> <span class="p">=&gt;</span>
    <span class="n">Results</span><span class="p">.</span><span class="nf">Ok</span><span class="p">(</span><span class="k">await</span> <span class="n">mediator</span><span class="p">.</span><span class="nf">Send</span><span class="p">(</span><span class="n">cmd</span><span class="p">)));</span>
</code></pre></div></div>

<p><strong>The Pro:</strong> It forces a strict separation of concerns. Your business logic stays out of your controllers, and every operation has a clear, discoverable handler.</p>

<p><strong>The Con:</strong> It can feel like “class explosion.” A non-trivial application will end up with a separate file for every Command, Query, and Handler in the system. The reliance on reflection also adds some overhead.</p>

<p><strong>Best For:</strong> Teams following <strong>Clean Architecture</strong> or <strong>Domain-Driven Design (DDD)</strong> where decoupling is the top priority and a large community ecosystem matters.</p>

<hr />

<h2 id="2-the-productivity-powerhouse-servicestack">2. The Productivity Powerhouse: ServiceStack</h2>

<p>ServiceStack is an entire ecosystem, not just a library. It’s opinionated, fast, and designed to minimise the friction between the server and the client.</p>

<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// One class defines the request, response, and route</span>
<span class="p">[</span><span class="nf">Route</span><span class="p">(</span><span class="s">"/orders"</span><span class="p">,</span> <span class="s">"POST"</span><span class="p">)]</span>
<span class="k">public</span> <span class="k">class</span> <span class="nc">CreateOrder</span> <span class="p">:</span> <span class="n">IReturn</span><span class="p">&lt;</span><span class="n">OrderResponse</span><span class="p">&gt;</span>
<span class="p">{</span>
    <span class="k">public</span> <span class="kt">string</span> <span class="n">CustomerId</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="k">set</span><span class="p">;</span> <span class="p">}</span>
    <span class="k">public</span> <span class="n">List</span><span class="p">&lt;</span><span class="n">OrderItem</span><span class="p">&gt;</span> <span class="n">Items</span> <span class="p">{</span> <span class="k">get</span><span class="p">;</span> <span class="k">set</span><span class="p">;</span> <span class="p">}</span>
<span class="p">}</span>

<span class="c1">// The service handles it</span>
<span class="k">public</span> <span class="k">class</span> <span class="nc">OrderService</span> <span class="p">:</span> <span class="n">Service</span>
<span class="p">{</span>
    <span class="k">public</span> <span class="n">OrderResponse</span> <span class="nf">Post</span><span class="p">(</span><span class="n">CreateOrder</span> <span class="n">request</span><span class="p">)</span>
    <span class="p">{</span>
        <span class="c1">// ServiceStack handles serialisation, validation, auth, and caching</span>
        <span class="k">return</span> <span class="k">new</span> <span class="n">OrderResponse</span> <span class="p">{</span> <span class="n">Id</span> <span class="p">=</span> <span class="n">Guid</span><span class="p">.</span><span class="nf">NewGuid</span><span class="p">()</span> <span class="p">};</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre></div></div>

<p><strong>The Pro:</strong> It provides everything out of the box - authentication, caching, and auto-generated typed clients - without the overhead of piecing together multiple libraries. The auto-generated client support for TypeScript and C# is a genuine productivity win for full-stack teams.</p>

<p><strong>The Con:</strong> It is a <strong>commercial product</strong> for teams beyond the free tier, and it has a distinct “ServiceStack way” of doing things that diverges from standard Microsoft ASP.NET Core idioms. Onboarding developers familiar with standard MVC patterns has a learning curve.</p>

<p><strong>Best For:</strong> Small to mid-sized teams that want to move fast, avoid glue code, and want a consistent end-to-end story from the API to the client-side DTOs.</p>

<hr />

<h2 id="3-the-modern-contender-wolverinefx">3. The Modern Contender: WolverineFX</h2>

<p>Wolverine (from the JasperFx family) is the newest of the three, designed to be what MediatR would look like if it were built today for a cloud-native world. It acts as both a <strong>command bus</strong> and a <strong>message broker</strong>, with a focus on low ceremony and high performance.</p>

<div class="language-csharp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// No interface needed - Wolverine finds handlers by convention</span>
<span class="k">public</span> <span class="k">static</span> <span class="k">class</span> <span class="nc">CreateOrderHandler</span>
<span class="p">{</span>
    <span class="c1">// Convention: method named "Handle" with a matching command type</span>
    <span class="k">public</span> <span class="k">static</span> <span class="k">async</span> <span class="n">Task</span><span class="p">&lt;</span><span class="n">OrderResult</span><span class="p">&gt;</span> <span class="nf">Handle</span><span class="p">(</span>
        <span class="n">CreateOrder</span> <span class="n">command</span><span class="p">,</span> 
        <span class="n">IDocumentSession</span> <span class="n">session</span><span class="p">)</span>
    <span class="p">{</span>
        <span class="kt">var</span> <span class="n">order</span> <span class="p">=</span> <span class="k">new</span> <span class="nf">Order</span><span class="p">(</span><span class="n">command</span><span class="p">.</span><span class="n">CustomerId</span><span class="p">,</span> <span class="n">command</span><span class="p">.</span><span class="n">Items</span><span class="p">);</span>
        <span class="n">session</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="n">order</span><span class="p">);</span>
        <span class="k">await</span> <span class="n">session</span><span class="p">.</span><span class="nf">SaveChangesAsync</span><span class="p">();</span>
        <span class="k">return</span> <span class="k">new</span> <span class="nf">OrderResult</span><span class="p">(</span><span class="n">order</span><span class="p">.</span><span class="n">Id</span><span class="p">);</span>
    <span class="p">}</span>
<span class="p">}</span>

<span class="c1">// Minimal API wired directly to Wolverine</span>
<span class="n">app</span><span class="p">.</span><span class="nf">MapPost</span><span class="p">(</span><span class="s">"/orders"</span><span class="p">,</span> <span class="p">(</span><span class="n">CreateOrder</span> <span class="n">cmd</span><span class="p">,</span> <span class="n">IMessageBus</span> <span class="n">bus</span><span class="p">)</span> <span class="p">=&gt;</span> <span class="n">bus</span><span class="p">.</span><span class="nf">InvokeAsync</span><span class="p">(</span><span class="n">cmd</span><span class="p">));</span>
</code></pre></div></div>

<p><strong>The Pro:</strong> It uses <strong>Source Generators</strong> to eliminate the performance cost of reflection used by MediatR. It also includes <strong>Durable Messaging</strong> with built-in Inbox/Outbox patterns, making it straightforward to build systems that don’t lose data if a service crashes - a feature that would require a separate library like MassTransit to achieve with MediatR.</p>

<p><strong>The Con:</strong> The community is significantly smaller than MediatR’s, and there are fewer “how-to” guides and StackOverflow answers to lean on. Being newer also means patterns and best practices are still maturing.</p>

<p><strong>Best For:</strong> Developers who want <strong>maximum performance</strong> and are building <strong>Event-Driven Architectures</strong> or microservices where reliable, durable messaging is a first-class requirement.</p>

<hr />

<h2 id="final-verdict-which-should-you-use">Final Verdict: Which Should You Use?</h2>

<p>There’s no universally correct answer, but here’s a practical decision tree:</p>

<ul>
  <li>
    <p><strong>Go with MediatR</strong> if you are in an enterprise environment where Clean Architecture is the standard, you have a large team, and community support and available talent are key factors.</p>
  </li>
  <li>
    <p><strong>Go with ServiceStack</strong> if you want a refined, industrial-grade framework that handles everything from the API layer to auto-generated client-side DTOs with minimal plumbing, and the commercial licence fits your budget.</p>
  </li>
  <li>
    <p><strong>Go with WolverineFX</strong> if you want to be on the cutting edge of .NET performance, need built-in tools for asynchronous messaging and background processing, and are comfortable being an early adopter of a less-established ecosystem.</p>
  </li>
</ul>

<p>All three are production-ready choices. The decision comes down to your team’s priorities: <strong>community and convention</strong>, <strong>end-to-end productivity</strong>, or <strong>performance and native messaging</strong>.</p>

<p>So what did I go with? For my new projects, I chose <strong>WolverineFX</strong>. The promise of source generator performance and built-in durable messaging was too compelling to ignore, especially as I build more event-driven systems. However, I still have a soft spot for MediatR and a penchant for ServiceStack. It can be really hard to break old habits and patterns, but the .NET ecosystem is evolving rapidly, and it’s exciting to see new tools that challenge the status quo.</p>]]></content><author><name>Wayne Thompson</name></author><category term="dotnet" /><category term="architecture" /><category term="dotnet" /><category term="cqrs" /><category term="mediatr" /><category term="servicestack" /><category term="wolverinefx" /><category term="architecture" /><category term="webapi" /><summary type="html"><![CDATA[Building a .NET web API in 2026 isn’t just about choosing between Controllers or Minimal APIs anymore. It’s about how you manage the flow of data and logic through your application. Three approaches dominate the conversation: the classic MediatR with CQRS, the high-performance ServiceStack, and the modern challenger WolverineFX. This post came out of research I was doing while starting a few new projects and evaluating the best .NET 10 and React templates. The more I dug in, the more I realised the architectural decision around how you handle requests is just as important as any other tech choice.]]></summary></entry><entry><title type="html">🧠 Lazy Loading HTTP Requests in Angular with RxJS and BehaviorSubject</title><link href="https://www.waynethompson.com.au/blog/2025/Lazy-Loading-HTTP-Requests-in-Angular/" rel="alternate" type="text/html" title="🧠 Lazy Loading HTTP Requests in Angular with RxJS and BehaviorSubject" /><published>2025-07-03T02:00:00+00:00</published><updated>2025-07-03T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/2025/Lazy-Loading-HTTP-Requests-in-Angular</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/2025/Lazy-Loading-HTTP-Requests-in-Angular/"><![CDATA[<p>When building modern Angular apps, it’s common to have services that fetch data from HTTP endpoints. But you don’t always want those calls to fire immediately, instead, you might want <strong>lazy loading</strong>: only fetch the data when it’s actually needed.</p>

<p>In this post, we’ll walk through how to <strong>lazily fetch and cache data in Angular using RxJS</strong>, and how to <strong>extend the pattern across multiple endpoints</strong> using a generic helper method.</p>

<!--more-->

<hr />

<h2 id="-the-problem">🚀 The Problem</h2>

<p>You want to:</p>

<ul>
  <li>Trigger an HTTP request only when data is needed.</li>
  <li>Cache the result to avoid unnecessary network calls.</li>
  <li>Share the same data across multiple subscribers.</li>
  <li>Support more than one endpoint without duplicating logic.</li>
</ul>

<hr />

<h2 id="-solution-behaviorsubject--rxjs--generic-lazy-loader">✅ Solution: <code class="language-plaintext highlighter-rouge">BehaviorSubject</code> + RxJS + Generic Lazy Loader</h2>

<p>We’ll use:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">BehaviorSubject&lt;T | null&gt;</code> to hold the cached data.</li>
  <li><code class="language-plaintext highlighter-rouge">switchMap()</code> and <code class="language-plaintext highlighter-rouge">tap()</code> to lazily fetch from HTTP.</li>
  <li>A <strong>generic helper method</strong> to apply this pattern to multiple endpoints.</li>
</ul>

<hr />

<h2 id="-the-service-with-two-endpoints">🔧 The Service (with Two Endpoints)</h2>

<div class="language-ts highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">import</span> <span class="p">{</span> <span class="nx">Injectable</span> <span class="p">}</span> <span class="k">from</span> <span class="dl">'</span><span class="s1">@angular/core</span><span class="dl">'</span><span class="p">;</span>
<span class="k">import</span> <span class="p">{</span> <span class="nx">HttpClient</span> <span class="p">}</span> <span class="k">from</span> <span class="dl">'</span><span class="s1">@angular/common/http</span><span class="dl">'</span><span class="p">;</span>
<span class="k">import</span> <span class="p">{</span> <span class="nx">BehaviorSubject</span><span class="p">,</span> <span class="nx">Observable</span><span class="p">,</span> <span class="k">of</span> <span class="p">}</span> <span class="k">from</span> <span class="dl">'</span><span class="s1">rxjs</span><span class="dl">'</span><span class="p">;</span>
<span class="k">import</span> <span class="p">{</span> <span class="nx">switchMap</span><span class="p">,</span> <span class="nx">tap</span> <span class="p">}</span> <span class="k">from</span> <span class="dl">'</span><span class="s1">rxjs/operators</span><span class="dl">'</span><span class="p">;</span>

<span class="p">@</span><span class="nd">Injectable</span><span class="p">({</span>
  <span class="na">providedIn</span><span class="p">:</span> <span class="dl">'</span><span class="s1">root</span><span class="dl">'</span>
<span class="p">})</span>
<span class="k">export</span> <span class="kd">class</span> <span class="nx">MyDataService</span> <span class="p">{</span>

  <span class="k">private</span> <span class="nx">dataSubject</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">BehaviorSubject</span><span class="o">&lt;</span><span class="kr">any</span> <span class="o">|</span> <span class="kc">null</span><span class="o">&gt;</span><span class="p">(</span><span class="kc">null</span><span class="p">);</span>
  <span class="k">private</span> <span class="nx">data2Subject</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">BehaviorSubject</span><span class="o">&lt;</span><span class="kr">any</span> <span class="o">|</span> <span class="kc">null</span><span class="o">&gt;</span><span class="p">(</span><span class="kc">null</span><span class="p">);</span>

  <span class="kd">constructor</span><span class="p">(</span><span class="k">private</span> <span class="nx">http</span><span class="p">:</span> <span class="nx">HttpClient</span><span class="p">)</span> <span class="p">{}</span>

  <span class="c1">// Lazy-loads and caches /api/my-data</span>
  <span class="nx">getData</span><span class="p">():</span> <span class="nx">Observable</span><span class="o">&lt;</span><span class="kr">any</span><span class="o">&gt;</span> <span class="p">{</span>
    <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">lazyLoad</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">dataSubject</span><span class="p">,</span> <span class="dl">'</span><span class="s1">/api/my-data</span><span class="dl">'</span><span class="p">);</span>
  <span class="p">}</span>

  <span class="c1">// Lazy-loads and caches /api/another-data</span>
  <span class="nx">getData2</span><span class="p">():</span> <span class="nx">Observable</span><span class="o">&lt;</span><span class="kr">any</span><span class="o">&gt;</span> <span class="p">{</span>
    <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">lazyLoad</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">data2Subject</span><span class="p">,</span> <span class="dl">'</span><span class="s1">/api/another-data</span><span class="dl">'</span><span class="p">);</span>
  <span class="p">}</span>

  <span class="c1">// Generic lazy loading and caching method</span>
  <span class="k">private</span> <span class="nx">lazyLoad</span><span class="o">&lt;</span><span class="nx">T</span><span class="o">&gt;</span><span class="p">(</span><span class="nx">subject</span><span class="p">:</span> <span class="nx">BehaviorSubject</span><span class="o">&lt;</span><span class="nx">T</span> <span class="o">|</span> <span class="kc">null</span><span class="o">&gt;</span><span class="p">,</span> <span class="nx">url</span><span class="p">:</span> <span class="kr">string</span><span class="p">):</span> <span class="nx">Observable</span><span class="o">&lt;</span><span class="nx">T</span><span class="o">&gt;</span> <span class="p">{</span>
    <span class="k">return</span> <span class="nx">subject</span><span class="p">.</span><span class="nx">pipe</span><span class="p">(</span>
      <span class="nx">switchMap</span><span class="p">((</span><span class="nx">cached</span><span class="p">)</span> <span class="o">=&gt;</span> <span class="p">{</span>
        <span class="k">if</span> <span class="p">(</span><span class="nx">cached</span> <span class="o">!==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
          <span class="k">return</span> <span class="k">of</span><span class="p">(</span><span class="nx">cached</span><span class="p">);</span> <span class="c1">// Return cached value</span>
        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
          <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">http</span><span class="p">.</span><span class="kd">get</span><span class="o">&lt;</span><span class="nx">T</span><span class="o">&gt;</span><span class="p">(</span><span class="nx">url</span><span class="p">).</span><span class="nx">pipe</span><span class="p">(</span>
            <span class="nx">tap</span><span class="p">(</span><span class="nx">response</span> <span class="o">=&gt;</span> <span class="nx">subject</span><span class="p">.</span><span class="nx">next</span><span class="p">(</span><span class="nx">response</span><span class="p">))</span> <span class="c1">// Cache the response</span>
          <span class="p">);</span>
        <span class="p">}</span>
      <span class="p">})</span>
    <span class="p">);</span>
  <span class="p">}</span>
<span class="p">}</span>
</code></pre></div></div>

<hr />

<h2 id="-in-a-component">🧪 In a Component</h2>

<div class="language-ts highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">@</span><span class="nd">Component</span><span class="p">({</span>
  <span class="na">selector</span><span class="p">:</span> <span class="dl">'</span><span class="s1">app-my-component</span><span class="dl">'</span><span class="p">,</span>
  <span class="na">template</span><span class="p">:</span> <span class="s2">`
    &lt;div *ngIf="data$ | async as data; else loading"&gt;
      
    &lt;/div&gt;
    &lt;ng-template #loading&gt;Loading...&lt;/ng-template&gt;
  `</span>
<span class="p">})</span>
<span class="k">export</span> <span class="kd">class</span> <span class="nx">MyComponent</span> <span class="p">{</span>
  <span class="nx">data$</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">dataService</span><span class="p">.</span><span class="nx">getData</span><span class="p">();</span>

  <span class="kd">constructor</span><span class="p">(</span><span class="k">private</span> <span class="nx">dataService</span><span class="p">:</span> <span class="nx">MyDataService</span><span class="p">)</span> <span class="p">{}</span>
<span class="p">}</span>
</code></pre></div></div>

<p>For a second component:</p>

<div class="language-ts highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">export</span> <span class="kd">class</span> <span class="nx">AnotherComponent</span> <span class="p">{</span>
  <span class="nx">data2$</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">dataService</span><span class="p">.</span><span class="nx">getData2</span><span class="p">();</span>
<span class="p">}</span>
</code></pre></div></div>

<hr />

<h2 id="-why-this-pattern-works">🧠 Why This Pattern Works</h2>

<table>
  <thead>
    <tr>
      <th>Feature</th>
      <th>How it Works</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><strong>Lazy</strong></td>
      <td>No HTTP call until <code class="language-plaintext highlighter-rouge">getData()</code> is first subscribed</td>
    </tr>
    <tr>
      <td><strong>Cached</strong></td>
      <td><code class="language-plaintext highlighter-rouge">BehaviorSubject</code> holds the result for reuse</td>
    </tr>
    <tr>
      <td><strong>Reactive</strong></td>
      <td>Multiple components can subscribe and receive the same data</td>
    </tr>
    <tr>
      <td><strong>Reusable</strong></td>
      <td><code class="language-plaintext highlighter-rouge">lazyLoad()</code> can be used for any number of endpoints</td>
    </tr>
  </tbody>
</table>

<hr />

<h2 id="-bonus-add-a-refresh-method">🔁 Bonus: Add a Refresh Method</h2>

<p>If you want to force a re-fetch:</p>

<div class="language-ts highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nx">refreshData</span><span class="p">():</span> <span class="k">void</span> <span class="p">{</span>
  <span class="k">this</span><span class="p">.</span><span class="nx">http</span><span class="p">.</span><span class="kd">get</span><span class="p">(</span><span class="dl">'</span><span class="s1">/api/my-data</span><span class="dl">'</span><span class="p">).</span><span class="nx">subscribe</span><span class="p">(</span><span class="nx">data</span> <span class="o">=&gt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">dataSubject</span><span class="p">.</span><span class="nx">next</span><span class="p">(</span><span class="nx">data</span><span class="p">));</span>
<span class="p">}</span>
</code></pre></div></div>

<p>Or, make it generic:</p>

<div class="language-ts highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">private</span> <span class="nx">refresh</span><span class="o">&lt;</span><span class="nx">T</span><span class="o">&gt;</span><span class="p">(</span><span class="nx">subject</span><span class="p">:</span> <span class="nx">BehaviorSubject</span><span class="o">&lt;</span><span class="nx">T</span> <span class="o">|</span> <span class="kc">null</span><span class="o">&gt;</span><span class="p">,</span> <span class="nx">url</span><span class="p">:</span> <span class="kr">string</span><span class="p">):</span> <span class="k">void</span> <span class="p">{</span>
  <span class="k">this</span><span class="p">.</span><span class="nx">http</span><span class="p">.</span><span class="kd">get</span><span class="o">&lt;</span><span class="nx">T</span><span class="o">&gt;</span><span class="p">(</span><span class="nx">url</span><span class="p">).</span><span class="nx">subscribe</span><span class="p">(</span><span class="nx">data</span> <span class="o">=&gt;</span> <span class="nx">subject</span><span class="p">.</span><span class="nx">next</span><span class="p">(</span><span class="nx">data</span><span class="p">));</span>
<span class="p">}</span>
</code></pre></div></div>

<hr />

<h2 id="-when-to-use-this-pattern">🧩 When to Use This Pattern</h2>

<p>✅ Works great for:</p>

<ul>
  <li>Caching static or rarely changing data</li>
  <li>Settings, metadata, or lookup tables</li>
  <li>Reusing data across multiple components</li>
</ul>

<p>⚠️ Avoid for:</p>

<ul>
  <li>Real-time or frequently updated data</li>
  <li>Parameterized calls where each param has different data</li>
  <li>Streaming APIs (use <code class="language-plaintext highlighter-rouge">Subject</code> or <code class="language-plaintext highlighter-rouge">WebSocket</code> instead)</li>
</ul>

<hr />]]></content><author><name>Wayne Thompson</name></author><category term="angular" /><category term="frontend" /><category term="lazy loading" /><category term="http" /><category term="angular" /><category term="performance" /><summary type="html"><![CDATA[When building modern Angular apps, it’s common to have services that fetch data from HTTP endpoints. But you don’t always want those calls to fire immediately, instead, you might want lazy loading: only fetch the data when it’s actually needed. In this post, we’ll walk through how to lazily fetch and cache data in Angular using RxJS, and how to extend the pattern across multiple endpoints using a generic helper method.]]></summary></entry><entry><title type="html">Engineering Guilds: Fostering Expertise and Community in Tech organisations</title><link href="https://www.waynethompson.com.au/blog/Engineering%20Guilds/" rel="alternate" type="text/html" title="Engineering Guilds: Fostering Expertise and Community in Tech organisations" /><published>2024-07-17T02:00:00+00:00</published><updated>2024-07-17T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/EngineeringGuilds</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/Engineering%20Guilds/"><![CDATA[<p>Developing engineering culture in an organisation is not a simple task. Organisations can be too focused on feature development and project delivery, which can lead to a lack of focus on the professional development and collaboration of their engineering teams.</p>

<p>One approach that has gained popularity in recent years is the concept of engineering guilds. In this post, we’ll explore what engineering guilds are, their benefits, and how to implement them effectively.</p>

<h2 id="what-are-engineering-guilds">What are Engineering Guilds?</h2>

<p>Engineering guilds are cross-functional groups within an organisation that bring together professionals with similar skills or interests, regardless of their team or project assignments. Inspired by medieval craft guilds, these modern counterparts aim to create communities of practice within larger organisations.</p>

<h2 id="key-benefits-of-engineering-guilds">Key Benefits of Engineering Guilds</h2>

<ol>
  <li>
    <p>Knowledge Sharing: Guilds provide a platform for engineers to share experiences, discuss challenges, and exchange solutions across different teams and projects.</p>
  </li>
  <li>
    <p>Skill Development: Through regular meetings, workshops, and presentations, guild members can enhance their skills and stay updated on the latest technologies and best practices.</p>
  </li>
  <li>
    <p>Standardization: Guilds can help establish and maintain coding standards, best practices, and common tools across the organisation.</p>
  </li>
  <li>
    <p>Innovation: By bringing together diverse perspectives, guilds can foster innovation and creative problem-solving.</p>
  </li>
  <li>
    <p>Career Growth: Participation in guilds can offer leadership opportunities and increase visibility within the organisation.</p>
  </li>
  <li>
    <p>Breaking Silos: Guilds help prevent the formation of knowledge silos by encouraging cross-team collaboration.</p>
  </li>
</ol>

<h2 id="implementing-engineering-guilds">Implementing Engineering Guilds</h2>

<ol>
  <li>
    <p>Identify Areas of Focus: Start by identifying key areas of expertise or technology stacks that are crucial to your organisation (e.g., Front-end Development, DevOps, Data Science).</p>
  </li>
  <li>
    <p>Establish Leadership: Each guild should have a lead or a small group of leaders who can organize meetings, set agendas, and guide discussions.</p>
  </li>
  <li>
    <p>Set Clear Objectives: Define what the guild aims to achieve, whether it’s standardizing practices, solving specific problems, or advancing skills in a particular area.</p>
  </li>
  <li>
    <p>Regular Meetings: Schedule consistent meetings, but be flexible to accommodate different time zones and work schedules.</p>
  </li>
  <li>
    <p>Encourage Participation: Make guild participation voluntary but encouraged. Recognize and reward active contributors.</p>
  </li>
  <li>
    <p>Create Communication Channels: Establish dedicated Slack channels, forums, or other platforms for ongoing discussions and resource sharing.</p>
  </li>
  <li>
    <p>Cross-pollination: Encourage guild members to share insights from guild meetings with their respective teams.</p>
  </li>
  <li>
    <p>Measure Impact: Regularly assess the effectiveness of guilds through surveys, tracking participation, and monitoring the implementation of guild-driven initiatives.</p>
  </li>
</ol>

<h2 id="challenges-and-considerations">Challenges and Considerations</h2>

<ul>
  <li>Time Management: Ensure guild activities don’t interfere with primary project work.</li>
  <li>Inclusivity: Make efforts to include remote team members and those from different time zones.</li>
  <li>Relevance: Keep guild topics and activities aligned with organisational goals and member interests.</li>
  <li>Support from Management: Secure buy-in from leadership to allocate time and resources for guild activities.</li>
</ul>

<h2 id="real-world-example">Real-world Example</h2>

<p>Spotify, known for its innovative engineering culture, has popularized the use of guilds alongside its squad and tribe structure. Their guilds focus on areas like web development, machine learning, and agile coaching, allowing engineers to connect with peers across the organisation who share similar interests and challenges.</p>

<h2 id="the-bottom-line">The bottom line</h2>

<p>Engineering guilds offer a powerful way to cultivate expertise, foster community, and drive innovation within tech organisations. By providing a structure for cross-functional collaboration and knowledge sharing, guilds can help companies maintain a competitive edge in the fast-paced world of technology. Whether you’re a startup or a large enterprise, consider how engineering guilds might benefit your organisation’s culture and technical capabilities.</p>

<h2 id="further-reading">Further reading</h2>
<ul>
  <li><a href="https://www.optimizely.com/insights/blog/how-our-engineering-team-uses-guilds-to-increase-collaboration/">How Our Engineering Team Uses Guilds to Increase Collaboration</a></li>
</ul>]]></content><author><name>Wayne Thompson</name></author><category term="engineering" /><category term="engineering" /><category term="collaboration" /><category term="guilds" /><summary type="html"><![CDATA[Developing engineering culture in an organisation is not a simple task. Organisations can be too focused on feature development and project delivery, which can lead to a lack of focus on the professional development and collaboration of their engineering teams. One approach that has gained popularity in recent years is the concept of engineering guilds. In this post, we’ll explore what engineering guilds are, their benefits, and how to implement them effectively. What are Engineering Guilds? Engineering guilds are cross-functional groups within an organisation that bring together professionals with similar skills or interests, regardless of their team or project assignments. Inspired by medieval craft guilds, these modern counterparts aim to create communities of practice within larger organisations. Key Benefits of Engineering Guilds Knowledge Sharing: Guilds provide a platform for engineers to share experiences, discuss challenges, and exchange solutions across different teams and projects. Skill Development: Through regular meetings, workshops, and presentations, guild members can enhance their skills and stay updated on the latest technologies and best practices. Standardization: Guilds can help establish and maintain coding standards, best practices, and common tools across the organisation. Innovation: By bringing together diverse perspectives, guilds can foster innovation and creative problem-solving. Career Growth: Participation in guilds can offer leadership opportunities and increase visibility within the organisation. Breaking Silos: Guilds help prevent the formation of knowledge silos by encouraging cross-team collaboration. Implementing Engineering Guilds Identify Areas of Focus: Start by identifying key areas of expertise or technology stacks that are crucial to your organisation (e.g., Front-end Development, DevOps, Data Science). Establish Leadership: Each guild should have a lead or a small group of leaders who can organize meetings, set agendas, and guide discussions. Set Clear Objectives: Define what the guild aims to achieve, whether it’s standardizing practices, solving specific problems, or advancing skills in a particular area. Regular Meetings: Schedule consistent meetings, but be flexible to accommodate different time zones and work schedules. Encourage Participation: Make guild participation voluntary but encouraged. Recognize and reward active contributors. Create Communication Channels: Establish dedicated Slack channels, forums, or other platforms for ongoing discussions and resource sharing. Cross-pollination: Encourage guild members to share insights from guild meetings with their respective teams. Measure Impact: Regularly assess the effectiveness of guilds through surveys, tracking participation, and monitoring the implementation of guild-driven initiatives. Challenges and Considerations Time Management: Ensure guild activities don’t interfere with primary project work. Inclusivity: Make efforts to include remote team members and those from different time zones. Relevance: Keep guild topics and activities aligned with organisational goals and member interests. Support from Management: Secure buy-in from leadership to allocate time and resources for guild activities. Real-world Example Spotify, known for its innovative engineering culture, has popularized the use of guilds alongside its squad and tribe structure. Their guilds focus on areas like web development, machine learning, and agile coaching, allowing engineers to connect with peers across the organisation who share similar interests and challenges. The bottom line Engineering guilds offer a powerful way to cultivate expertise, foster community, and drive innovation within tech organisations. By providing a structure for cross-functional collaboration and knowledge sharing, guilds can help companies maintain a competitive edge in the fast-paced world of technology. Whether you’re a startup or a large enterprise, consider how engineering guilds might benefit your organisation’s culture and technical capabilities. Further reading How Our Engineering Team Uses Guilds to Increase Collaboration]]></summary></entry><entry><title type="html">Technical Debt in Action: Real-World Examples and Their Consequences</title><link href="https://www.waynethompson.com.au/blog/Technical-Debt-Real-World-Examples/" rel="alternate" type="text/html" title="Technical Debt in Action: Real-World Examples and Their Consequences" /><published>2024-07-16T02:00:00+00:00</published><updated>2024-07-16T02:00:00+00:00</updated><id>https://www.waynethompson.com.au/blog/Technical-Debt-Real-World-Examples</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/Technical-Debt-Real-World-Examples/"><![CDATA[<p>In theory, technical debt might sound like an abstract concept. However, its impact is tangible and can be observed in a variety of real-world scenarios. Let’s delve into some concrete examples that illustrate how technical debt manifests and the consequences it can have on software projects.</p>

<p><strong>1. The Legacy Code Monster:</strong></p>

<ul>
  <li>
    <p><strong>Scenario:</strong> A company has been using the same software system for years. It’s grown organically, with patches and quick fixes added over time. New features are difficult to implement, and bugs are rampant.</p>
  </li>
  <li>
    <p><strong>Impact:</strong> Development slows to a crawl, as developers struggle to understand and modify the convoluted code. Innovation is stifled, and the system becomes a liability rather than an asset.</p>
  </li>
</ul>

<p><strong>2. The Spaghetti Code Nightmare:</strong></p>

<ul>
  <li>
    <p><strong>Scenario:</strong>  A project was rushed to meet a deadline, leading to a tangled mess of poorly organized code with high coupling and low cohesion.</p>
  </li>
  <li>
    <p><strong>Impact:</strong>  Making changes is like pulling on a single strand of spaghetti – you never know what else you might break.  Debugging becomes a nightmare, and the risk of introducing new bugs is high.</p>
  </li>
</ul>

<p><strong>3. The Outdated Library Time Bomb:</strong></p>

<ul>
  <li>
    <p><strong>Scenario:</strong>  A project relies on an old library or framework that’s no longer maintained.</p>
  </li>
  <li>
    <p><strong>Impact:</strong> Security vulnerabilities may go unpatched, and compatibility issues can arise with newer technologies. The project becomes increasingly vulnerable and difficult to upgrade.</p>
  </li>
</ul>

<p><strong>4. The Missing Documentation Black Hole:</strong></p>

<ul>
  <li>
    <p><strong>Scenario:</strong> A project lacks proper documentation, making it hard for new developers to get up to speed or understand the code’s purpose.</p>
  </li>
  <li>
    <p><strong>Impact:</strong>  Onboarding new team members becomes a lengthy process, and knowledge about the system is siloed in the minds of a few individuals, creating a risk if they leave.</p>
  </li>
</ul>

<p><strong>5. The Test Suite Desert:</strong></p>

<ul>
  <li>
    <p><strong>Scenario:</strong>  A project has insufficient or outdated tests, leaving changes vulnerable to introducing bugs.</p>
  </li>
  <li>
    <p><strong>Impact:</strong> Developers become hesitant to make changes, fearing they might break something.  The codebase stagnates, and innovation suffers.</p>
  </li>
</ul>

<p><strong>6. The Hardcoded Value Quicksand:</strong></p>

<ul>
  <li>
    <p><strong>Scenario:</strong>  Configuration settings are hardcoded directly into the code, making them difficult to change.</p>
  </li>
  <li>
    <p><strong>Impact:</strong>  The system becomes rigid and inflexible. Adapting to new environments or requirements requires modifying the code itself, increasing the risk of errors.</p>
  </li>
</ul>

<p><strong>7. The Copy-Paste Swamp:</strong></p>

<ul>
  <li>
    <p><strong>Scenario:</strong> Similar blocks of code are duplicated throughout the codebase to save time in the short term.</p>
  </li>
  <li>
    <p><strong>Impact:</strong>  Fixing a bug in one place requires fixing it in multiple other places, leading to inconsistencies and wasted effort.</p>
  </li>
</ul>

<p><strong>Conclusion: Addressing the Debt</strong></p>

<p>These examples are just a glimpse into the diverse ways technical debt can manifest.  The consequences can range from minor inconveniences to project-threatening crises.  The key is to recognize the signs of technical debt early and prioritize its mitigation to prevent it from spiraling out of control.</p>

<p>Remember, technical debt is not always bad. There are times when it’s a strategic trade-off to achieve specific goals. However, it’s crucial to be aware of the debt you’re taking on and have a plan to manage it effectively.</p>]]></content><author><name>Wayne Thompson</name></author><category term="engineering" /><category term="engineering" /><category term="code review" /><category term="technical debt" /><summary type="html"><![CDATA[In theory, technical debt might sound like an abstract concept. However, its impact is tangible and can be observed in a variety of real-world scenarios. Let’s delve into some concrete examples that illustrate how technical debt manifests and the consequences it can have on software projects. 1. The Legacy Code Monster: Scenario: A company has been using the same software system for years. It’s grown organically, with patches and quick fixes added over time. New features are difficult to implement, and bugs are rampant. Impact: Development slows to a crawl, as developers struggle to understand and modify the convoluted code. Innovation is stifled, and the system becomes a liability rather than an asset. 2. The Spaghetti Code Nightmare: Scenario: A project was rushed to meet a deadline, leading to a tangled mess of poorly organized code with high coupling and low cohesion. Impact: Making changes is like pulling on a single strand of spaghetti – you never know what else you might break. Debugging becomes a nightmare, and the risk of introducing new bugs is high. 3. The Outdated Library Time Bomb: Scenario: A project relies on an old library or framework that’s no longer maintained. Impact: Security vulnerabilities may go unpatched, and compatibility issues can arise with newer technologies. The project becomes increasingly vulnerable and difficult to upgrade. 4. The Missing Documentation Black Hole: Scenario: A project lacks proper documentation, making it hard for new developers to get up to speed or understand the code’s purpose. Impact: Onboarding new team members becomes a lengthy process, and knowledge about the system is siloed in the minds of a few individuals, creating a risk if they leave. 5. The Test Suite Desert: Scenario: A project has insufficient or outdated tests, leaving changes vulnerable to introducing bugs. Impact: Developers become hesitant to make changes, fearing they might break something. The codebase stagnates, and innovation suffers. 6. The Hardcoded Value Quicksand: Scenario: Configuration settings are hardcoded directly into the code, making them difficult to change. Impact: The system becomes rigid and inflexible. Adapting to new environments or requirements requires modifying the code itself, increasing the risk of errors. 7. The Copy-Paste Swamp: Scenario: Similar blocks of code are duplicated throughout the codebase to save time in the short term. Impact: Fixing a bug in one place requires fixing it in multiple other places, leading to inconsistencies and wasted effort. Conclusion: Addressing the Debt These examples are just a glimpse into the diverse ways technical debt can manifest. The consequences can range from minor inconveniences to project-threatening crises. The key is to recognize the signs of technical debt early and prioritize its mitigation to prevent it from spiraling out of control. Remember, technical debt is not always bad. There are times when it’s a strategic trade-off to achieve specific goals. However, it’s crucial to be aware of the debt you’re taking on and have a plan to manage it effectively.]]></summary></entry><entry><title type="html">Technical Debt: The Hidden Cost of Expediency in Software Development</title><link href="https://www.waynethompson.com.au/blog/Technical-Debt-the-hidden-cost/" rel="alternate" type="text/html" title="Technical Debt: The Hidden Cost of Expediency in Software Development" /><published>2024-07-15T07:55:00+00:00</published><updated>2024-07-15T07:55:00+00:00</updated><id>https://www.waynethompson.com.au/blog/Description-Of-Techical-Debt</id><content type="html" xml:base="https://www.waynethompson.com.au/blog/Technical-Debt-the-hidden-cost/"><![CDATA[<p>In the world of software development, there’s a concept that often lurks beneath the surface, silently accumulating like interest on a loan: technical debt. Just like financial debt, technical debt can be a useful tool when used wisely, but it can also cripple a project if left unchecked.</p>

<p><strong>What is Technical Debt?</strong></p>

<p>Technical debt is a metaphor that describes the implied cost of future rework caused by choosing an easier or faster solution now instead of a more robust, maintainable one. It’s the result of prioritizing speed or expediency over long-term code quality.</p>

<p><strong>The Many Faces of Technical Debt</strong></p>

<ul>
  <li>
    <p><strong>Deliberate Debt:</strong> Sometimes, taking on technical debt is a conscious decision. This can be justifiable when faced with tight deadlines or when quickly validating a concept is paramount. However, it’s crucial to have a plan for repayment.</p>
  </li>
  <li>
    <p><strong>Accidental Debt:</strong> This type of debt creeps in due to inexperience, lack of knowledge, or changing requirements. Code that was once adequate may become a burden as the project evolves.</p>
  </li>
  <li>
    <p><strong>Bit Rot:</strong> Even well-written code can become technical debt over time if it’s not maintained. As dependencies change or new technologies emerge, code can gradually degrade in quality.</p>
  </li>
</ul>

<p><strong>The Interest on Technical Debt</strong></p>

<p>Like financial debt, technical debt accrues “interest.” This manifests as:</p>

<ul>
  <li><strong>Slower Development:</strong>  Changes become harder and more time-consuming as the codebase becomes more complex and intertwined.</li>
  <li><strong>Increased Risk of Bugs:</strong>  Technical debt often leads to fragile code that’s prone to breaking unexpectedly.</li>
  <li><strong>Lower Morale:</strong>  Working with a messy, difficult-to-understand codebase can be frustrating for developers.</li>
</ul>

<p><strong>Paying Down Technical Debt</strong></p>

<p>Managing technical debt is an ongoing process:</p>

<ul>
  <li><strong>Refactoring:</strong>  Restructuring existing code to improve its design without changing its external behavior.</li>
  <li><strong>Rewriting:</strong>  Sometimes, the best solution is to start fresh with a cleaner implementation.</li>
  <li><strong>Prevention:</strong>  Writing high-quality, well-tested code from the outset is the best way to minimize future debt.</li>
</ul>

<p><strong>Balancing Act</strong></p>

<p>There’s no one-size-fits-all approach to technical debt. Striking the right balance between rapid development and maintainability is key.</p>

<p>It’s also crucial to recognize the different types of technical debt and prioritize accordingly. Some debt may be more urgent to address than others, depending on its impact on the project.</p>

<p><strong>Conclusion</strong></p>

<p>Technical debt is an inevitable part of software development, but it doesn’t have to be a death sentence for your project. By understanding its causes, consequences, and management strategies, you can make informed decisions that lead to a healthier, more sustainable codebase.</p>

<hr />

<p>Next: <a href="/blog/Technical-Debt-Real-World-Examples/">Technical Debt in Action: Real-World Examples and Their Consequences</a></p>]]></content><author><name>Wayne Thompson</name></author><category term="engineering" /><category term="engineering" /><category term="code review" /><category term="technical debt" /><summary type="html"><![CDATA[In the world of software development, there’s a concept that often lurks beneath the surface, silently accumulating like interest on a loan: technical debt. Just like financial debt, technical debt can be a useful tool when used wisely, but it can also cripple a project if left unchecked. What is Technical Debt? Technical debt is a metaphor that describes the implied cost of future rework caused by choosing an easier or faster solution now instead of a more robust, maintainable one. It’s the result of prioritizing speed or expediency over long-term code quality. The Many Faces of Technical Debt Deliberate Debt: Sometimes, taking on technical debt is a conscious decision. This can be justifiable when faced with tight deadlines or when quickly validating a concept is paramount. However, it’s crucial to have a plan for repayment. Accidental Debt: This type of debt creeps in due to inexperience, lack of knowledge, or changing requirements. Code that was once adequate may become a burden as the project evolves. Bit Rot: Even well-written code can become technical debt over time if it’s not maintained. As dependencies change or new technologies emerge, code can gradually degrade in quality. The Interest on Technical Debt Like financial debt, technical debt accrues “interest.” This manifests as: Slower Development: Changes become harder and more time-consuming as the codebase becomes more complex and intertwined. Increased Risk of Bugs: Technical debt often leads to fragile code that’s prone to breaking unexpectedly. Lower Morale: Working with a messy, difficult-to-understand codebase can be frustrating for developers. Paying Down Technical Debt Managing technical debt is an ongoing process: Refactoring: Restructuring existing code to improve its design without changing its external behavior. Rewriting: Sometimes, the best solution is to start fresh with a cleaner implementation. Prevention: Writing high-quality, well-tested code from the outset is the best way to minimize future debt. Balancing Act There’s no one-size-fits-all approach to technical debt. Striking the right balance between rapid development and maintainability is key. It’s also crucial to recognize the different types of technical debt and prioritize accordingly. Some debt may be more urgent to address than others, depending on its impact on the project. Conclusion Technical debt is an inevitable part of software development, but it doesn’t have to be a death sentence for your project. By understanding its causes, consequences, and management strategies, you can make informed decisions that lead to a healthier, more sustainable codebase. Next: Technical Debt in Action: Real-World Examples and Their Consequences]]></summary></entry></feed>