It seems you did not get the very meaning of this expression. To learn something ( or to figure it out) the "hard way" means learning something by experience, especially by an unpleasant experience. " - when talking about personal preferences ( to be taught a lesson by brute force or by consensual agreement, let`s say) Read this and I will get back to you.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.