My wife and I are both devs. It's, for the most part, no different than any other relationship; you get out of it what you put into it. One thing I did (am still trying to?) learn is that sometimes she wants me to be a rubber duck instead of actually helping her solve a problem. I try to anticipate a point in the conversation when I can ask which I'm supposed to be.