How would you handle a situation where you have to choose between perfect code and meeting a deadline?

Situational