Just finished "Wizard's Bane" by Rick Cook, which I bought many years ago from Baen.
A computer programmer from California is transported to a world where two great powers are at war using magic. He uses his computer programming skills to invent a new form of magic that nobody's ever seen before. A fun read, but you need to be a programmer to understand all the jokes

.
This is the first book in a series. All worth reading.