Often the room itself gives you reason to prefer one direction or another. If the door is in a corner you want the open door to be against the wall (unless you don't - I can't think of why, but...). If there are other doors on the same wall you need to consider them - sometimes hinges all the same for symmetry; sometimes opposite so the the doors don't bang into each other (when they are right next to each other.