For the 19th century version, see "Catechism of the Locomotive", from 1877.
https://archive.org/details/cu31924031173549