to discover what you need to know through experience or by making mistakes:
- He doesn’t want to take my advice, so I guess he'll have to learn the hard way.
I was wondering whether the expression means: **"learning through trial and error"? If no, how they differ?