Maintainable Playwright Tests

Data-driven, DRY, multi-locale end-to-end tests with TypeScript

  • Playwright 1.63 · TypeScript 7
  • en-GB · en-US · de-DE · ja-JP
  • 43 named traps
  • 15 diagrams
  • Every snippet type-checked

You can write decent code, you have probably written Selenium tests, and now you have to test a long, branching web app in several languages with Playwright. This book is one story in fourteen short chapters. Tomas, a Selenium veteran, rebuilds the suite for Kestrel Insure, a car-insurance quote journey of about forty screens sold in the UK, the US, Germany and Japan. Every chapter opens with something breaking and fixes it the Playwright way: auto-waiting instead of sleeps, locators by role, small page objects, fixtures instead of a BaseTest, scenarios that hold both inputs and expected outputs, a screen registry and driver loop that answers whatever screen the app shows and asserts the path it took, starting mid-flow, market profiles that keep locale differences out of the specs, sessions saved once, third parties mocked at the boundary, and sharded runs that treat flaky tests as bug reports. Each chapter names its traps, with the tell-tale sign, what to do instead and the lint rule that catches them, and ends with a spot-the-flaw exercise and three questions for code review. The last chapter compares Playwright with Cypress and Selenium fairly, including where each of them wins. Every TypeScript snippet is compiled against Playwright 1.63 before publication. Read it in about two hours, and keep the epilogue: a Concept Atlas of every feature with links to the docs, the catalogue of all 43 traps, a baseline config and ESLint setup, and a glossary for Selenium users. Press / to search.

Read online

Cybersecurity: The Keep

A short story about defending one company, from the wax seal to the machine learning model: how each control actually works, the traps it falls into, and what every vendor calls it

  • Ciphers to zero trust and AI
  • Microsoft · AWS · Google · IBM
  • 204 named traps
  • 37 diagrams
  • Laptop-only demos

You have heard encryption, hashing, RBAC, mTLS, zero trust and EDR in meetings and nodded. This book is one story in thirty-six short chapters. Thistle is a small savings app that starts with a spreadsheet emailed to four hundred customers and ends with an architecture that would survive most of what it met on the way: a settlement file with one row changed, a forged invoice, a domain nobody had looked at since it was installed, a role that could start eleven instances, a laptop taken from a café table, a dependency three levels down that phones abroad, an AI assistant asked to read customer tickets, and an alert at 02:41 on a Sunday. Every chapter opens with something breaking; the fix is the chapter's idea, and it arrives with a place in one running metaphor (a medieval keep that modernises without ever being demolished), a diagram of what is actually sent and checked, a one-line hook, and a dated account of who invented it and what they were reacting to — Kerckhoffs in 1883, Diffie and Hellman in 1976, the confused deputy in 1988, zero trust in 2010, prompt injection in 2022. Then it does what a mentor would do: names the traps and their tell-tale signs, hands you commands you can run on your own laptop with no cloud account, tells you what Microsoft, AWS, Google, IBM and the independents each call the thing, and gives you three questions to ask whoever proposes it next, plus the point on which the field still genuinely disagrees. The metaphor is retired on purpose in chapter 23, because a keep has an inside and an outside and no real system does any more. Read it in about five hours, and keep the epilogue: the full vendor map, an A–Z glossary, every command grouped by task, and a review checklist of all 204 traps. Press / to search any term.

Read online

DDD and Microservices: The Atlas

A short story about drawing the right borders: domain-driven design, the architecture styles and microservices, with their history, their traps and the arguments on both sides

  • DDD · hexagonal · CQRS · sagas
  • Java 21 snippets
  • 109 named traps
  • 30 diagrams

You have heard bounded context, aggregate, hexagonal, saga and outbox in meetings and nodded. This book is one story in twenty-one short chapters. Bramble is an online shop that starts as a monolith that works, splits itself badly into a distributed monolith, is rescued by strategic and tactical DDD, learns to integrate across borders with events, the outbox and sagas, reshapes its teams around its contexts, strangles its legacy, and ends with the judgement to build its next product as a modular monolith. Every chapter opens with something breaking; the fix is the chapter's idea, and it arrives with a place in one running metaphor (an atlas of countries, languages and treaties), a diagram of the mechanism, a one-line hook, and a dated account of who thought of it and what they were reacting to. Then the book does what a mentor would do at a whiteboard: names the traps and their tell-tale signs, gives you a small design with one planted flaw to find, and hands you three questions to ask whoever proposes the pattern next, plus the point on which experts still disagree, argued fairly from both sides. Layered, hexagonal, onion, clean, vertical slices and Spring Modulith get one chapter as one idea. Read it in about two and a half hours, and keep the epilogue's review checklist of 109 traps and its 21-question card.

Read online

From Docker to Kubernetes

A short story from one container to a self-running cluster, with the commands that matter

  • Docker 27 · kind 0.33
  • Kubernetes 1.37
  • Helm · Istio · Prometheus · Argo CD
  • 36 diagrams · 60 gotchas
  • ⌘K search

You have run docker run and heard of Pods, and you would like a clear picture instead of a vague one. This book is one story in twenty short chapters and two interludes. Maya ships a small app called Pantry, and every chapter opens with something breaking or someone asking for what the current setup cannot do; the fix is the chapter's concept, and by the end a new crack has appeared. Six chapters of Docker, nine of Kubernetes, four on the tools real clusters run alongside it (Helm, Istio, Prometheus and Grafana, Argo CD), and an epilogue with the whole map. Every concept gets a place in one running metaphor, a diagram of how it actually works, and a one-line hook to remember it by. Every chapter ends with the twenty percent of commands that do eighty percent of the work, a hands-on section against the companion app, the traps that bite silently (every one reproduced), and five recall questions with answers in the epilogue. An interlude called Old Maps tells the history of containers, orchestrators and moving YAML through an inherited repository, so that docker-compose, Tiller, master nodes and extensions/v1beta1 all make sense when you meet them, and the epilogue's old-words glossary lets you look any of them up. Read it in about an hour and three quarters.

Read online

AWS for Azure Architects and Developers

Design enterprise AWS systems end to end, whatever you know of Azure

  • AWS as of September 2026
  • Terraform 1.16 · Java 25
  • 125 figures with official icons

You design and build on Azure, or know only part of it, and your next system runs on AWS. This book teaches AWS on its own terms and uses Azure only as a bridge, so no page depends on knowing Azure well. Follow MegaCorp's payments team from its first account to a platform across two Regions: accounts, identity and networks; compute, data, messaging and the edge; then security, resilience, cost, delivery and operations. Each service is told as a story: how it works, when to use it and when not, its limits, cost, security and traps, and the history that lets you date what you inherit. Words that mean something else on AWS are flagged where they appear. Three end-to-end designs and a set of review drills pull it together, and 125 figures use the official AWS and Azure icons. Read the teaching chapters in under three hours; the appendices add a service map, an IAM policy cookbook, an error index and a cheat card, and ⌘K looks up any Azure term or AWS error message.

Read online

GOV.UK Stack, Fast

Nunjucks, Express and Fastify, GOV.UK Frontend and CASA for React and .NET developers

  • GOV.UK Frontend 6.5
  • Express 5 · Fastify 5
  • CASA 10, optional

You build React front ends on ASP.NET Core APIs, and your next project is a UK government service on a different stack. This book maps what you know onto it, layer by layer: the request loop, the plumbing, Nunjucks templates, GOV.UK Frontend's components, journeys, validation and the standards you will be assessed on. No Node experience is needed. Express, Fastify, Nunjucks and CASA are each taught from zero, then in depth, so that you can read the code you inherit and write new code without looking anything up. Each depth chapter ends with real code annotated line by line and a new feature built step by step, and the Express 4, Fastify 4 and CASA 9 code in older services is covered too. Two optional parts go further: CASA, and accessibility and security, with an automated accessibility check on every page and a tested sign-in, ownership check and rate limit. Every server example shows Express and Fastify side by side, in TypeScript or JavaScript, quoted from one tested example app. Read it in about 1 hour 10 minutes, or about 1 hour 45 minutes with both optional parts.

Read online

GitLab CI/CD, Decoded

Write, read and fix your team's pipeline, from commit to cluster

  • GitLab 19.3
  • Handbook in an hour
  • Node, Java and OpenTofu labs
  • Flux and Argo CD
  • AWS and Azure

Your team's pipeline file is twenty lines long; the pipeline it produces is not, and keeping it working is now your job. Start with the Handbook: every keyword of a GitLab pipeline file on one small project, explained in comments on the lines and run on a real GitLab; a what-is-what table with every word in one line; and a card that goes from any symptom to the right fix. About an hour, and you can read, write and debug any pipeline. Then the textbook, when you have the time, told as a story: every chapter opens with something going wrong in a real pipeline and ends with what you can now do about it. Write your team's pipeline step by step, in Node or Java, with labs on your own GitLab; learn to read everything the central team's templates and policies add, with 94 symptom cards; and, in its own part, follow your change to the cluster with Kubernetes, Helm, Kustomize, Flux and Argo CD on AWS and Azure. Times are measured for a technical reader, and press ⌘K to look up any keyword, variable or error message.

Read online

Java for C# Developers

A working handbook for .NET engineers moving to Java and Spring Boot

  • Java 25 LTS
  • .NET 10 · C# 14
  • Spring Boot 3 & 4

Where your C# instincts carry over to Java, and where they are confidently wrong. Almost every page puts C# on the left and Java on the right, every idea starts from a small example in plain words, and each Java term is explained where it first appears. Read the everyday path in about 5 hours or everything in about 7, come back to each chapter's quick reference later, and press ⌘K to look up any C# name and land on its Java answer.

Read online