A programmer refactors the practise of magic.

Please add books where a programmer is transported to another work where he uses his knowledge of programming or mathematics to revolutionise the practise or magic.