Programming Protips

Small posts meant to document the solutions to problems I've encountered while writing code and deploying apps.

Implementing a JWT auth system with TypeScript and Node

JSON Web Tokens are a relatively popular method for implementing authentication and authorization systems in modern web applications. With wide package support across many programming languages, JWT is a simple way to secure your app and massively reduce requests to your user database.

Build a simple object validation utility with TypeScript

TypeScript has become incredibly powerful, and its type system lets you build a great deal of similarly powerful functions, tools and utilities. In this post, learn how to build a simple object validation utility that uses TypeScript's type system to provide compiler safety for the validation rules and the resulting objects.

Slimming a Docker container from nearly 8gb to under 200mb

As web developers, we're no strangers to massively bloated containers. While many apps quickly bulk up in size once you start adding Node and frontend packages, even a dotnet app with no node_modules can still get pretty hefty once the dotnet SDK and package dependencies have been installed. This post covers the steps I used to slim a container from nearly 8gb in size to less than 200mb.