I've written code a lot longer than I've written legal text. But the longer I've written both, the less "proximate" they've seemed. Drawing parallels pleases the mind, but it's more trouble than helpful, most of the time.
If you want to make legal texts even worse to read and write, throw in a heavy dose of CS-esque structuralism.