as short as possible. as long as necessary for comfortable routing. Avoid coils and loops.
these are rules of thumb that are based on physics. that said. you probably won't hear a differnce between 5' and 10' if both are good quality heavy gauge (10 awg) cable.