to find out how to do or understand something by facing a lot of problems or challenges
I learned the hard way that rushing my work led to more mistakes.
急いで作業をするともっと多くのミスが発生することを、私は苦い経験で学びました。