It is only a black art if you believe in the Plumbing theory of electricity, i.e. "Electricity flows down wires, like water in a pipe".
In fact there are associated electric, magnetic and electromagnetic fields, with different effects. At power frequencies you can get away ignoring them most of the time; for electronics you can't !
With experience one can visualise what is happening and go straight to the best way, which looks like magic.