make it work, make it right, make it fast
expressionprogramming
Kent Beck's ordering of concerns: first correctness, then design, then - and only then - speed.
The discipline is in the sequence: resisting cleverness before the thing works, and resisting optimization before the design is honest. Most premature-optimization sins are a violation of step three's position in the queue.