Skip to content

Best Practices

Best Practices

The record of engineering practices this project holds itself to, written for a reviewer or anyone learning from the code. Nothing here is just claimed: every practice is visible in the running site or the repository. Decision records live under this menu as it grows.

In plain words

This page lists the engineering habits the project holds itself to, each with the record that explains it, such as tests that must pass before anything ships and failures that all answer in one shape. Every habit can be seen in the running site or in the code.

What that is worth: a developer gets a checklist of habits with working examples to copy, and the organization can check each claim against the live site instead of a promise.

Show it, don't say it

Everything this project asserts about itself is served by the project. The docs and the decision records come from menus in the running app, and so do the infrastructure code and the resume. The version number in the page footer follows the same rule: the running container reports which build it is, and the footer displays exactly that.

The practices, as they stand

  • Version and build provenance. The footer shows the version and the exact commit the running container was built from, baked in at image build time so the number cannot drift from the truth. Recorded in ADR: Version in the footer, below this entry in the menu.

  • Tests gate every ship. Three suites run before any image is built: the API tests, the frontend unit tests, and the Playwright end-to-end checks. A red suite stops the pipeline, no exceptions.

  • The things that decline slowly are counted, not remembered. Fourteen numbers describe the shape of the code: declarations with no summary, classes taking six or more dependencies, async paths with no cancellation token, clocks read behind the composition root's back, and ten more. They live in a file, CI and the ship gate hold each one to its limit, and a limit moves only in the commit that earns it. The rules this project holds are yes-or-no questions and all of them held through a fortnight in which half of these doubled, which is why a count sits beside each rule now. A count has one weakness, and the rung paying these down closes it as it goes: a total falls when one project is cleaned up and stays level when that project fills back up while another is cleaned up in its place. So a project taken to zero is named one by one in a test from then on, and the question asked of a named project stops being "how many" and becomes "any", which has one right answer. Recorded in ADR: The numbers that may only fall.

  • Work the caller walked away from is stopped. Every I/O path carries the request's own cancellation from the endpoint through the handler and the port to the adapter, which hands it to EF Core or to the Cosmos DB SDK. A read a visitor abandoned, by closing a tab or by a poll timing out, is work the site would otherwise pay for twice: once to run it and once in the thread and the request units it takes from the read somebody is still waiting for. Taking the token is not the same as cancelling it: a bid write that has entered the gate finishes, because a bid half written is worse than a bid that took its time, and the few places that run to their end whatever the caller does say why beside the code. One load shared by many callers is cancelled by none of them; a caller who leaves stops only their own wait. Recorded in ADR: The ports learn to wait, the addendum on the token.

  • The architecture is written down, not remembered. One page for the layers and the rules that keep them, one for naming, layering and commenting, and an .editorconfig doing the mechanical half. Both are served under App Architecture in the sidebar, beside the records that walk the code. The layers are also checked: ten architecture tests read the compiled code and fail the gate when a dependency points outward. Recorded in ADR: Onion and SOLID, how this codebase holds them, and taught a practice at a time, with one bid followed through the rings, in Onion architecture, the practices. Every request is a query or a command with one handler, and a query is never handed a write, in CQRS, the practices.

  • Decisions get written down. Ninety ADRs record why the architecture is what it is, including reversed decisions, the production design that is deliberately left undeployed, and the documentation and testing rules themselves.

  • Infrastructure as code. The production design lives in Bicep, served under the Hosting menu, deployable by flipping parameters.

  • Containers run hardened. Multi-stage build, a non-root user, a real HTTP healthcheck, and no SDK in the runtime image.

  • Every failure has one shape. Every rejected query or bid, and every unhandled exception, answers RFC 9457 ProblemDetails with the message in detail and a trace identifier; every request is logged as structured JSON; a React error boundary turns a render crash into a page with a way out, and reports it to the same list the Admin tab reads. Recorded in ADR: Error handling.

  • The style rules are checked by machines, not by memory. Four checks fail the build: dotnet format on the C#, Prettier on the TypeScript and CSS, oxlint on what a formatter cannot see, and the typecheck that was already there. Each one was run against deliberately bad input to prove it fails. Recorded in ADR: Style, enforced.

  • One implementation of every rule, including the simulated one. The competing bidders place their bids through the same BidRules the visitor's bids go through, and whether the visitor is still ahead is answered by the server rather than by two numbers compared in a browser. A second, quieter implementation of the auction is exactly what the layering here exists to prevent. Recorded in ADR: Competing bidders.

  • The keyboard path is walkable end to end. A skip link past the rail, focus that follows the view instead of falling to the body, a live region that names what you arrived at, and a palette measured against WCAG AA before it was chosen. Recorded in ADR: Keyboard and screen reader.

  • Work that does not depend on the request happens before it. Each vehicle's searchable text is built once when the dataset loads, and a query's tokens once when the filter compiles, so a full-text scan of the hundred thousand rows stopped rebuilding both per row. The suite carries the measurement rather than the claim. Recorded in ADR: The search index.

  • Telemetry outlives the container. Every request, dependency and exception goes to Application Insights, browser errors included, and the Admin tab reads the last hour back with the container's own identity. The ingestion key is never in the repository: the deploy reads it from Azure at roll time. Recorded in ADR: Telemetry.

  • The system reports on itself. The Admin tab in the sidebar shows live health checks, Azure's own view of the container, and recent server errors, public on purpose. Recorded in ADR: Observability.

  • Merges deploy themselves. A green gate's push to main builds the image, pushes it, and rolls both sites with no human step, signed in through OIDC with least-privilege roles; the only stored secrets are the session signing key and the operator's key the roll hands the sites. Recorded in ADR: The deploy pipeline, under the CI/CD menu.

  • Every version gets its sentence. One file, one line per shipped version, newest first, written by the commit that ships it and checked by the deploy that mints the number. Served as the Changelog menu; recorded in ADR: The changelog.

  • The docs show the code that runs. A decision record's samples are read from this build's own source files at request time, so the words cannot drift apart from the code. Recorded in ADR: Live code samples.

  • Nothing stale reaches a browser. Bundle files are named by their own contents and cached for a year; the page and the API say no-cache, and so do the documents, so a new version shows on the next load on any device. Recorded in ADR: Cache headers.

  • Color is measured, not eyeballed. Every text and ground pair in the palette is held to WCAG AA by a unit test that reads the tokens file, so a shade that fails contrast fails the build. Recorded in ADR: The palette.

  • The picture matches the words. The infrastructure diagram on the Hosting page is drawn from the records, every surface carries a screenshot taken from the live site, code shown in a record counts as documented by it, and every diagram opens on its own page, zoomable, from a preview in the record. Recorded in ADR: Docs and testing and ADR: Diagram pages.

  • The code reviews itself before anyone else does. A staff-level pass over each day's work, every finding written down as kept, fixed or deferred, and the fixes shipped with tests. Recorded in ADR: The staff review.

  • The configuration explains itself. Three records walk Program.cs, the React configuration and the three test suites file by file at a new developer's level, the why beside every choice and the code read from the running build. Recorded in ADR: Program.cs, explained, ADR: The React configuration, explained and ADR: The tests, explained.

  • The failure nobody wrote code for still answers properly. An unhandled exception returns the same problem shape as a rejected query, keeps the message and the stack trace inside, and hands back the trace id that finds the one log line holding both. An endpoint throws on purpose so that path can be exercised against the live container rather than assumed. Recorded in ADR: The exception handler.

  • Photos are sized for the box they land in. The originals are 1280 wide and a card paints them at about 358, so a first load pulled 2.3 MB to fill nine boxes and a phone pulled exactly the same bytes as a desktop. There is a 480-wide copy of every photo now, chosen by the browser through srcset, and a test holds the manifest and the image directory to the naming the browser relies on. Recorded in ADR: Responsive photos.

  • The accessibility rules a machine can check are checked on every run. axe runs eleven scans across nine views at WCAG 2.1 AA inside the browser suite. Its first run found two serious contrast failures on the busiest elements on the page, in a repository that already had a passing contrast test, because that test holds the colour pairs somebody listed and a stylesheet composes whatever it likes. Recorded in ADR: The accessibility check.

  • The storage moved without the application noticing. The catalogue went from JSON files to SQLite through EF Core, with migrations applied at startup and a first boot that seeds itself, and not one line changed in the Application or Domain layers because both sat behind ports already. A bid now survives a restart, which a test proves by starting a second application against the same file. Recorded in ADR: The relational store and walked at a new developer's level in ADR: Entity Framework, explained. It then moved again, to Azure SQL Database, and the same sentence still holds: nothing above the Infrastructure layer knew either time. The schema stopped being something Entity Framework creates and became a SQL project that it maps to, which is the difference between a data structure that outlives its framework and one that does not. ADR: The SQL Server backend and ADR: Data first, and the database in source control.

  • The method is on the page, not implied. How this was built, in the About menu, states that this was written with heavy AI assistance, names the criteria a reviewer should apply, and spends most of its length on the times the work was wrong: eleven defects found in a self review, a check that failed in CI on the command that had just passed locally, a guard that failed the day after it was chosen. Recorded in ADR: Saying how it was built.

  • The build cannot ship a version nothing describes. The changelog's top line is where the deploy reads the version. The footer and the file that documents the footer are then the same string, and a ship that forgets its line fails rather than displaying a number with no sentence attached. Recorded in ADR: The version comes from the changelog.

  • Pages are drawn on a server, and the API still draws nothing. A small rendering service beside the API reads what each page needs and sends it already drawn, and React in the browser takes the markup over instead of drawing it again. Every decision in it is beside the number that made it in React server rendering, explained, and recorded in ADR: A rendering service beside the API.

  • The API ships compiled ahead of time, and the runtime's settings are written out. The image carries machine code for the app and its packages, so a new container starts by running code instead of compiling it on the plan's one shared core; tiered compilation and profile-guided optimization stay on, and the collector's mode is pinned and tested from the configuration the build writes. What one publish switch does, what sat beside it, what five rolls measured and what they could not, in Ahead-of-time compilation, explained, and recorded in ADR: Compiled before it ships.

  • The store does the work, and the memory is measured. The hundred thousand vehicles live in the databases, which filter, order and page every listing; the site holds none of them once its store answers, every cache is bounded, and the .NET process runs under a heap limit. The eight rules, why each one matters and the number each one moved, in Memory, held by the build, and recorded in ADR: The store does the work.

Store

The Yard, home

Steven StoutStaff .NET engineerRemote

Production .NET that stays up. Built with AI, measured on every version.

Steven Stout

Hi, I'm Steve. I build the systems that make delivery boring in the best way, then coach people inside them.

  • 200+

    production releases, none took the platform down

    Conway Investment Research, 2019 to 2024. Sole engineer for the first three years on a live financial advisory platform.

    See how
  • 50%

    shorter release cycle

    Storee Construction, 2024 to 2026. Four ASP.NET applications onto one .NET 10 platform on Azure, with a four-person team I hired and mentored.

    See how

01Verified

Steven Stout

A real person, and the work is mine.

  • Identity

    Checked by LinkedIn, not by me.

    LinkedIn verified my government ID.

  • Running system

    You are looking at it.

    Version 1.0.5.273 is live. Nothing ships unless it passes the automated gates first.

That's who I am. Here's how I work.

02Strengths

Ten strengths, each with the proof beside it. The numbers match my resume and LinkedIn, and the live ones are read from this site as you look.

  • 01

    Keeps production alive

    200+ releases on a live financial platform, and none took it down. Sole engineer for the first three years.

    See the Conway work

  • 02

    Simplifies messy systems

    Four ASP.NET applications onto one .NET 10 platform on Azure, and a release cycle 50% shorter.

    See the Storee work

  • 03

    Marries dev and infrastructure

    Blue-green releases at Storee that flipped in about 5 seconds with nobody signed out, and Azure Front Door at two employers.

    See this site's cloud

  • 04

    Designs data that holds up

    White-label clients on one shared database, the isolation built into the data, and no cross-client issues.

    See the Conway work

  • 05

    Keeps AI-written code honest

    15 quality numbers that may only improve: 273 releases in a row with none worse.

    See the quality numbers

  • 06

    Resourceful

    $30,000+ cut from Azure and vendor spend at Conway. This site's Azure bill is public, resource by resource.

    See the bill

  • 07

    Builds people up

    Hired and mentored a four-person team. 13 colleagues recommend me by name.

    Read the recommendations

  • 08

    Takes ideas to production

    This site: designed, built and run solo, with 352 versions measured through one gate.

    How it was built

  • 09

    Writes clearly

    Posts on real engineering problems, in plain words.

    Read the blog

  • 10

    Owns decisions

    153 decision records, each with its tradeoff and the call I made.

    See the decision records

Built with AI. Gated so quality never slides.

Steven Stout’s showcase: a used-vehicle auction on .NET and React, built and run by one engineer, live on Azure, with its decisions written down.

No quality number has gotten worse at any release since 1.0.5.1 on 10 November: 273 releases in a row.

One engineer, an AI agent and a gate that checks 15 quality numbers on every release. 352 versions measured, with every result public, the worst days included.

82 releases in the last 7 days, each through the same gate.

Async methods with no CancellationToken, may only fall

11091.0.3.1391.0.5.2731.0.4.115, the ratchet
Every number, on the Quality page

TheYard, right nowLive

Answering in

unread

02505007501,000

server time at p95, the usual five minutes of the last day.

Azure this month

unread

the bill, by resource, read from Azure. The Admin tab shows every line.

Since the last roll

unread

 

rolled in place by the pipeline, behind one gate.

People who have visited

unread

30 days agotoday

Scanners, my own tools' and my own reads left out.

03Start here

04Where teams are heading

How I see engineering with AI, and the setup on this site that backs it.

AI-augmented teams · Architecture and ownership

AI writes more of the code. Someone still has to own what ships.

Teams are going to be heavily AI-augmented. That moves the senior job toward architecture and technical ownership: deciding what to build in pieces small enough to verify, and owning what ships.

  • Task tracking will get automated too. Judgment stays human: seeing a design fail at scale before it does.
  • On this site the AI's first design held the whole catalogue in memory. I caught it when the App Service plan hit 82 per cent and moved the work to the store.

What the AI wrote, what I decided

07Tech stack

  •    
  •    
  •    

Read from the build, never typed by hand

What TheYard runs on

What we use, where it runs, its AWS twin, the version as built, and the file that proves it.

Cloud patterns, not one vendor: every Azure piece in this stack has a named AWS twin. Mapped, not yet run on AWS.

  • .NET 1114 projects
  • React 19.3TypeScript 7.0
  • Azure9 Bicep files
  • 11GitHub Actions workflows
The whole stack, with the file that proves each line

The last release the gate stopped was 1.0.5.258 on 2 December, at its browser 1 of 2 job.

08How it is built

09How it is run

10Who and why

Next step

11What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn