Blog

Notes on TypeScript, Next.js, SQL, Go, and the craft of building fast, pragmatic web products.

blog posts

Posts from October 2024 — 6 posts

How I Got a Free MacBook Pro by Accident

Oct 26, 2024 • 2min read

A story about luck, quitting a job and ending up with a free 2020 M1 MacBook Pro after a shipping label never made it back to the US.

luckyhardware

Roman Numerals to Integer in JavaScript

Oct 26, 2024 • 2min read

Convert Roman numerals like III or IX to integers in JavaScript. A fun logic problem that rewards careful step-by-step thinking.

leetcodejavascript

Solve Palindrome in JavaScript

Oct 24, 2024 • 2min read

LeetCode problem 9 solved in one line using JavaScript built-ins. A quick look at toString, split, reverse and why knowing the basics helps.

leetcodejavascript

Solving the Two Sum Problem in JavaScript

Oct 23, 2024 • 6min read

My first LeetCode problem started as a naive O(n²) mess and ended with a hash map. A walkthrough of the mistakes and the final O(n) solution.

leetcodejavascript

SQLite vs Postgres: Which Is Best for You?

Oct 9, 2024 • 4min read

SQLite or Postgres? I measured both in real scenarios to move past 'it depends'. A practical guide to picking the right database for your project.

sqlitepostgressql

Self-Host Next.js on Coolify in 5 Minutes

Oct 4, 2024 • 3min read

You do not need Vercel to deploy Next.js. Here is how to self-host it on a VPS with Coolify, step by step, in about five minutes.

nextjsdocker