Prisma Build an SQL Query from Variables with a Prisma Raw Query (prisma.$queryRaw) Using prisma.$queryRaw, I was able to write a basic query that returned the data I needed. However, I also needed the query to filter and order the data.
TypeScript Module Augmentation is a Hidden Gem in TypeScript Module augmentation and interface merging extend and modify existing modules without altering their original source code.
C# My Typescript to C# Cheatsheet To facilitate learning C#, I created a Typescript to C# cheatsheet to help map commonly-used TypeScript concepts to their C# counterparts.
ChatGPT Port Elmish to Typescript: A Conversation with ChatGPT Here's how a conversation with ChatGPT helped me figure out how to export Elmish to Typescript in my current software project.
Development Practices Achieve Cleaner Test Setup with the Blueprint Pattern The Blueprint pattern abstracts the creation of data models into reusable, type-safe helpers, reducing boilerplate and improving readability.
Development Practices The Discriminated Union: Writing Easy-to-Use Types in TypeScript I’d encourage you to give discriminated unions a shot next time you find yourself needing to model subtypes.
TypeScript Build a Lightweight Code Generator with TypeScript and JSON Imports On a recent project, my team created a lightweight code generator, with reusable techniques I want to share. Read on for the why and the how.
TypeScript Typescript Switches on Multiple Inputs I recently found myself wanting a two-dimensional switch statement in TypeScript. Here's one way to write one!
Java Java’s Discriminated Union: Sealed Interfaces The Sealed Interface is a new addition in Java 17 that allows developers to emulate the discriminated union data structure.
TypeScript How to Set Up Passwordless Authentication in Expo Recently, I worked on an Expo app for people who suffer from reduced hand dexterity. I thought: why not set up passwordless authentication?
TypeScript Add CLI Scripts to Your TypeScript/Node Project with TSX (No, the Other TSX) One-off CLI scripts that share code with the application are valuable. Here's my favorite way to run them in a Node.js TypeScript project.
JavaScript JavaScript’s Backtick Strings are Likely the Wrong Tool for Your Job It's way too common to try to put together query strings using JavaScript's template strings. Thankfully, there's an easy and much better way.