One of the things I like about programming is it feels like legit magic. You infuse a lightning stone with words of power that bend its mind to your will.
One must be cautious. The stone will do what is asked of it. Exactly what is asked of it. Ask carefully.
Computers and tech in general often feels like magic. The first computer I ever used was a ZX Spectrum, now I have something vastly more computationally powerful, and constantly connected to a worldwide communication network and knowledge repository in my pocket!
It's amazing any of it actually works, especially as we don't always seem to know how it works.
Well, it's not quite fantasy, but the Laundry Files novels by Charles Stross merge the concept of "math/algorithms is magic" with lovecraftian horror and satire.
There is something similar in Daemon (or maybe in the sequel Freedom™) in which
extremely minor spoiler
they enchant an invisibility ring, and the ritual is a sequence of steps involving a physical object. In the end, the ring is "tracked" by the AI so that who wears it is automatically removed from surveillance videos