Crépuscule des idoles
Nietzsche claims that the task of all higher education is "to turn men into machines". The way to turn men into machines is to teach them to tolerate boredom. This is accomplished, Nietzsche says, by means of the concept of duty. ("Twilight of the Idols", “Skirmishes of an untimely man” § 9.29)