This article walks through the code used to animate a tree fractal.
Check out codegolf.stackexchange.com if you want to solve programming puzzles, but with a twist.