To prepare: to plan the details beforehand.
It is so linked to discipline. What is discipline? It is following through on what you have pre-decided is best for you despite your emotional state at the time. You can’t talk about discipline without talking about planning and preparation.
Why don’t you plan the details beforehand, so you don’t get taken off guard and suffer the consequences?