I will leave the medical advice to others far more well informed than me; but I will offer some things I learned along the way with my own hip surgery.
If you smoke, stop now and get it out of your system, you will heal faster later on.
If you have the ability, get at least one second opinion. It's not that you may not have a great doctor, but hearing about the same diagnosis from two different and unaffiliated ones tend to have a calming effect on your nerves, as we all get nervous about this so-called "elective" procedure.
Think ahead. Make arrangements for care the week or two after returning home; trying to do too much all on your own too soon can have negative results. Sleeping in a bed can be a bit uncomfortable, so think of an alternative, I bought a nice soft Lazy-Boy recliner for my bedroom, best investment I ever made as it gave me options when I got tired of just laying flat on my back or sitting upright in a chair. Find out what equipment the hospital will issue and what it won't, and get it ahead of time, i.e., raised toilet stand (I preferred the whole frame type with handles over the donut thing), walker, cane, etc.
Sign up for any pre-surgery education or orientation classes that your facility may offer; these answer alot of your questions about how the hospital stay will go, what equipmnet will be used in your care, etc.
If your hospital isn't really close to your home, research alternatives to out-patient physical therapy so you won't have to travel as far during your initial rehab.
As soon as the doctor said i could get into a swimming pool, I did. It is great low impact exercise. Research to find one near you and see where they may offer classes in some form of water arobics or stretching. I actually began with a water arthritis class (I'm 52, and I was the "kid" in the class. I had several "grandma" and "great-grandma" types ask to see if I was single because they had a divorced or widowed daughter looking for a husband...). Most water exercise classes are ideal for people to work at their own pace.
Check back in with us on a regular basis; sharing what's going on with you and reading how others have dealt with issues ranging from "first bowel movement" "sleeping on your side" "weaning off of pain meds" we've all been there and are here to help!