The things you cited were real life "tricks" before they were programming tricks. (Military strategy, general problem I suppose, Ronald Reagan and any book on manners, respectively.)
Programming is the way to sharpen your wits in this respect and the way we codify algorithms means that it is much more formalized and allows for algorithms of increasing complexity.