1. Making Sense of Curves: Drawing Tangents and Normals with Diagrams Library
July 06, 2025
Tags: tangent normal vectors curves

Drawing tangent and normal vectors on curves helps understand how curves behave. The Diagrams library in Haskell makes this easy. Based on Pontus Granström’s example, here’s how to do it.



2. When Disks Dance: Visualizing Hanoi’s Puzzle in Haskell
January 28, 2025
Tags: towers-of-hanoi recursion visualization haskell

Ever wondered what the Towers of Hanoi puzzle looks like when solved step by step? I found this cool Haskell code that shows the solution as pictures. It’s really neat to watch the disks move around!



3. Understanding context.WithTimeout in Go
June 10, 2024
Tags: go context timeout cancellation

When you’re building real-world applications, things don’t always go as expected. Maybe an external API is slow, or a background process takes longer than it should. If your program just waits and waits, it can block everything else.