When it comes to write code you don't need to learn magic spells.
All you need is to take a look outside the window and solve your problem with patterns from the real world.
It's the magic moment in which you realise you can use your knowledge to make some money.