writing as code