Hagakure is possibly the most iconic writing on Samurai philosophy, compiled by Tsuramoto Tashimo from the wisdom of Yamamoto Tsunetomo at the turn of the eighteenth century. This is my favourite quote:

There is something to be learned from a rainstorm. When meeting with a sudden shower, you try not to get wet and run quickly along the road. But doing such things as passing under the eaves of houses, you still get wet. When you are resolved from the beginning, you will not be perplexed, though you still get the same soaking.
— Yamamoto Tsunetomo

Science Fiction vs. Education

Warhammer 40,000