Agile Coder Logo
AgileCoder
Blog

Tutorials and deep-dives.

Practical writing on web development, system design, AI tooling, and the craft of shipping software.

13 posts
Mandelbrot Set: The Most Famous Fractalintermediate

Mandelbrot Set: The Most Famous Fractal

Defined by a deceptively simple iteration in the complex plane, the Mandelbrot set reveals infinite detail at every level of zoom — a fractal icon of mathematical beauty.

December 28, 20255m
Julia Set: Animated Complex Plane Beautyintermediate

Julia Set: Animated Complex Plane Beauty

The Julia set is the Mandelbrot's sibling — same iteration, but the constant C sweeps over time. Watch the fractal morph through an infinite family of shapes.

December 28, 20255m
Simple Fractal Tree: Branching Foreverintermediate

Simple Fractal Tree: Branching Forever

Each branch splits into two smaller ones at an angle. Change the angle and the tree transforms from a bare winter silhouette to a lush summer canopy.

December 23, 20253m
Times Table Animation: From 2 to Infinityintermediate

Times Table Animation: From 2 to Infinity

What if you smoothly increased the multiplication factor on the cardioid from 2 to 200? Watch the circle's string art morph through every known times table curve.

December 20, 20253m
Nephroid: The Three Times Table Curveintermediate

Nephroid: The Three Times Table Curve

The same circle trick as the cardioid, but multiply by 3 instead of 2. The resulting curve — a kidney-shaped nephroid — appears in reflected light inside a coffee cup.

December 20, 20254m
Cardioid: Uncovering Beauty with the Times Tableintermediate

Cardioid: Uncovering Beauty with the Times Table

Multiply each point on a circle by 2 and connect them with lines. At enough resolution the curve that emerges is a perfect heart shape — a cardioid.

December 20, 20254m
Koch Snowflake: Three Curves, One Crystalintermediate

Koch Snowflake: Three Curves, One Crystal

Apply the Koch curve to all three sides of an equilateral triangle and you get a snowflake. Infinite perimeter, finite area, endlessly satisfying.

December 12, 20254m
Koch Curve: Infinite Length, Finite Areaintermediate

Koch Curve: Infinite Length, Finite Area

Replace every line segment with four smaller ones. Repeat. The Koch curve has infinite perimeter but encloses a finite area — one of the earliest known fractals.

December 12, 20256m
Sierpiński Triangle: Recursive Fractals in Codeintermediate

Sierpiński Triangle: Recursive Fractals in Code

Visualise the Sierpiński triangle through recursive geometry. A simple rule — divide, remove the centre — repeated until you can't see the individual pieces anymore.

December 8, 20254m
Sierpiński Carpet: Infinite Holesintermediate

Sierpiński Carpet: Infinite Holes

Divide a square into nine parts, remove the centre, and repeat on the eight remaining squares. The Sierpiński carpet has zero area but a well-defined fractal structure.

December 8, 20254m
Toothpick Sequence: Self-Similar Growthintermediate

Toothpick Sequence: Self-Similar Growth

Start with a single toothpick. Add new ones at every exposed endpoint. What emerges is a fractal structure that doubles in complexity each generation.

December 5, 20254m
10 PRINT: One-Line Infinite Mazeintermediate

10 PRINT: One-Line Infinite Maze

A single random decision — slash or backslash — repeated across a grid produces an endlessly varied maze. Originally a one-line Commodore 64 BASIC program.

December 4, 20254m