I always coped with my husband being gone by staying as busy as I could with my own life. Diving into hobbies and just trying to enjoy life. I missed him and I wrote letters (emails when I could, but the nature of his jobs didn't always allow for it) and when he was deployed I never let the cell phone out of my sight in case he called, but...life goes on, it has to.
Time passed much more quickly for me when I was kept busy and had fun.
I had a lot of fun with care packages when he was gone for deployments. Candy is good! My hubs wasn't on a sub though so I could send a lot more, he asked for books, magazines, new socks/boxers, snacks, and toiletries...but I often sent themed boxes just for fun and to give the guys a laugh.
I never really made a lot of fuss when he came home, I let him decide how much he wanted to do because I was never sure if it would be overwhelming. If he was only gone a few weeks, it was more like, "Oh, hey, you're home!" haha...but really, at least for my husband, it didn't matter how long he was gone, a good meal and me in his bed was all he ever wanted (and to see his children once we had them, of course!).