Christian Brevik

Christian Brevik

Developer, CTO at Variant, and organizer of Rust & BartJS meetups in Trondheim 🇳🇴

Better OpenAPI in Minimal API with TypedResults

October 16, 2024

How to generate proper OpenAPI documentation in .NET Minimal API using TypedResults — because the old controller attributes won't work here.

Moving from Controllers to Minimal API

May 3, 2024

A practical guide to migrating from MVC Controllers to Minimal API in ASP.NET Core, without the pain of starting from scratch.

How to use Pinecone and OpenAI to ChatGPTify your website!

April 25, 2023

How to add a ChatGPT-powered Q&A to your website using Pinecone vector search and the OpenAI API, demonstrated with Variant's company handbook.

Hvordan skrive TypeScript-kode som er sikker ved kjøretid

December 21, 2022

TypeScript fjerner alle typer ved transpilering — her er et enkelt mønster for å skrive kode som faktisk er typesikker også ved kjøretid.

SSNs, and pattern matching in C# 9

June 30, 2020

Using C# 9's new logical and relational pattern matching operators to validate Norwegian Social Security Numbers in a readable, functional style.

Mobile app CI with AppCenter — good, but could be better

June 5, 2020

An honest look at AppCenter vs Fastlane for mobile CI — when AppCenter's simplicity wins, and where it still falls short.

React Native and the Array.reverse bug

September 21, 2018

The iOS 12 Array.reverse() bug lives in JavaScriptCore — which means every React Native app on iOS 12 is affected. Here's what's happening and how to fix it.

Your first VS Code extension

March 8, 2018

Building a VS Code extension from scratch to toggle Format on Save with a keyboard shortcut — turns out it's much simpler than you'd expect.

Easier React Native upgrades with patch-package

August 19, 2017

How to use patch-package to apply local fixes to npm dependencies without forking them — handy when an upstream fix is taking too long.

Setup for fast.ai course

July 31, 2017

Setup notes and cost surprises for running the fast.ai practical machine learning course on AWS — things the course doesn't fully warn you about.

Intro to React Native (NDC Oslo 2017)

July 8, 2017

Recording and notes from my NDC Oslo 2017 talk introducing React Native from a web developer's perspective.

Easy TypeScript with React Native

May 17, 2017

Setting up TypeScript with React Native properly — with Hot Module Reloading intact — using the new transformer support landing in RN 0.45.

You should check out Yarn

October 24, 2016

Why Yarn is worth switching to from npm: deterministic installs, dramatically faster speeds, and offline support.

Google Tag Manager and A/B-testing with React Native

April 24, 2016

Adding Google Tag Manager support to the React Native Google Analytics bridge, enabling A/B testing through GTM Content Experiments.

React Native InApp Billing

February 9, 2016

Releasing a React Native bridge for Android in-app billing, wrapping the anjlab library with a clean JavaScript API.

Google Analytics on React Native

December 30, 2015

Building a native React Native bridge for Google Analytics so device metadata like UUID, model, and OS version gets tracked automatically.

Remote debugging ASP .NET in Visual Studio 2013

April 3, 2015

A collected guide to setting up remote debugging for ASP.NET in Visual Studio 2013 — the PDB gotchas that'll save you headaches on a test server.

vNext tools on OS X

October 26, 2014

Getting ASP.NET vNext up and running on OS X with Sublime Text — notes from demoing SOLID refactoring at Knowit Developer Summit 2014.