Magic, like any other power, is neither good nor evil in itself. It is the purpose to which it is put that determines its nature.
The best way to write a program is to write it.