Right!
If you don't have child and still be young, it's up to you to decide.
If you are not over 30, don't be apart for a long time. But 1 or 2 years should be OK if you have married several years.
If you are over 35, have child, either way is OK to choose.
If you don't have enough money to survive, you have no choice. 如果老公在这找不到工作,非常失落,就是两个人在一起又能怎么样? That's the answer.
I'm also a IT guy. I'm lucky to find a job, but my husband can't find job for one year, he is very 失落, and our family is not so happy. We often quarrel, both of us know the only reason is he doesn't have a job yet.