screenager.dev

thoughts.md

10 posts

Beyond %d: The Hidden World of printf Formats That Most Devs Never Use

Bet you only use %d in your printf statements. Time to discover %x, %o, %b and unlock debugging superpowers you never knew existed.

0x55555555 is Actually Alien Code (And Other Power Problem Adventures)

What started as a simple Power of Four problem turned into me decoding hexadecimal mysteries and questioning everything I know about binary. Spoiler: bits are weirder than you think.

The Three Body Problem

Built a real-time three-body physics simulation with React hooks, RK4 integration, and some seriously beautiful orbital chaos. Warning: may cause existential crisis about the universe.

C++ Lambdas Have Trust Issues

A quick LeetCode solution taught me why C++ lambda return type deduction is pickier than I thought.

How ChatGPT and I Built an LRU Cache That Sped Up My App 10x

A journey of me and ChatGPT building a Least Recently Used (LRU) cache from scratch, with code examples, funny chat interactions, and visualizations that show how this clever algorithm saved my final project.

The Curious Case of Bloom Filters: When "Maybe" Is Good Enough

A deep dive into the elegant mathematics and practical applications of Bloom filters — probabilistic data structures that trade perfect accuracy for astonishing space efficiency.

Cat or not a cat with Logistic Regression: Part 1 - Understanding the Basics

A deep dive into binary classification using logistic regression, from fundamental concepts to practical implementation, with interactive examples and mathematical foundations

Inside the Codeforces Ladder & User API System

A detailed overview of the algorithms and mathematical reasoning behind our Codeforces ladder and user APIs.

Prompt Engineering: The Art of Sweet-Talking AI Models

A fun guide to mastering prompt engineering - from epic fails to pro tips!

A Gradient Step at a time.

The adventure of me finding the answers.