Paths as code