Blouppy
Articles on software engineering: architecture, security, testing, back end and front end.
- Website
- blouppy.com · all feeds from this site
- Feed URL
https://www.blouppy.com/rss.xml
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
The Decorator pattern in C#: adding SSO schemes to ASP.NET Core authentication
Learn the Decorator pattern in C# by wrapping ASP.NET Core's IAuthenticationSchemeProvider, register it with the plain Microsoft DI container, and avoid the infinite-recursion trap.
-
The Null Object pattern in C#: integrations that run unconfigured
Learn the Null Object pattern in C#: an adapter that stands in for a missing integration, when it should do nothing and when it must fail closed, and how to keep it honest.
-
The Factory pattern in C#: a model client built for each organization's key
Learn when a factory earns its place in .NET: building an object from a value known only at call time, keeping what DI provides, testing it, and when new or Func is enough.
-
The Strategy pattern in C#: pick an implementation by key with dependency injection
The usual shape of the Strategy pattern in .NET: one class per variant, a discriminant, IEnumerable injection, what to do when no strategy matches, and keyed services.
-
The Strategy pattern in C#: every strategy runs, one per field of an issue
A less usual shape of the Strategy pattern in C#: an issue activity log where one strategy per field runs on every change, selected by generic type rather than by key.
-
Replacing Disqus with Giscus
Move a blog's comments from Disqus to Giscus and GitHub Discussions: why, the setup, a React component that loads on demand and follows the site's theme, the Content Security Policy and a test.
-
Cookie consent on a static blog
Measure the cookies a static site really sets, see what the rules ask of a blog, and load Google Analytics only after consent, with a small store, a fair banner and tests that check it.
-
A Content Security Policy for an Astro site
Add a Content Security Policy to a static Astro site with security.csp: hashed inline scripts, third parties, why strict-dynamic broke the islands, and tests that fail on any violation.
-
Tailwind CSS 3 to 4: what the upgrade tool does not catch
Twelve differences found by comparing a site pixel by pixel before and after moving to Tailwind CSS 4: borders, line heights, cascade layers, table cells, stacking, colours.
-
Moving a blog from Gatsby to Astro without a regression
How this blog moved from Gatsby to Astro with the same URLs, HTML and behaviour, and how we proved it: an HTML oracle, pixel diffs and interaction tests on both builds.
-
Expose your ASP.NET Core API as an MCP server
Learn how to let agents read and change what their user can through an MCP server in ASP.NET Core, with OAuth, scopes, a per-organization switch and rate limits.
-
An AI gateway for your SaaS in ASP.NET Core: one path to the model
Learn how to route every AI call of an ASP.NET Core application through one gateway that checks the organization's switch, the person's allowance and writes a usage ledger.
-
SSO and SCIM 2.0 for a B2B SaaS in ASP.NET Core
Learn how to let each customer sign in through its own identity provider and provision its people with SCIM 2.0, in ASP.NET Core, with no third-party service.
-
GDPR data export and account erasure in an ASP.NET Core SaaS
Learn how to implement a GDPR data export and a real account erasure in a modular ASP.NET Core application, without breaking domain boundaries or other people's history.
-
A billing module behind an adapter: Stripe that runs unconfigured
Learn how to keep Stripe inside one billing module in ASP.NET Core, with its own DbContext, a payment-gateway port and an adapter that lets the app run with no key at all.
-
Share an Angular library from source, or publish it
Share one Angular library between several apps: consume it as source through an npm workspace, or build it with ng-packagr and publish it, and what each choice costs.
-
End-to-end tests of a distributed .NET app with Aspire.Hosting.Testing
Learn how to run Gherkin scenarios against your real Aspire graph, gateway, identity server and RabbitMQ included, in a couple of minutes and without a browser.
-
Structuring an Angular application: core, shared, features and api
Learn how to lay out a large Angular app in core, shared, features and api folders, keep URLs in one typed map, enforce boundaries with ESLint, and decide whether you need a store.
-
Signed outgoing webhooks in ASP.NET Core
Learn how to send signed outgoing webhooks from ASP.NET Core: a stable envelope, an HMAC signature a subscriber can verify, durable retries, delivery history and redelivery.
-
Unit testing an Angular app with Vitest: zoneless TestBed, signals and jsdom
Learn how to run Angular 22 unit tests on Vitest with the CLI's unit-test builder: jsdom, a zoneless TestBed, signal inputs, HttpTestingController and vi.fn mocks.