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.
This book opened my eyes and helped me building up new relationships after my first marriage ended. You will get a list of simple principles to deal with people.