In an interesting article on the practice of tipping, Aaron Stern described the origins of the practice.
Tipping dates all the way back to the eighteenth century, when patrons would give a few coins to their waiter/struggling scrimshaw artist “to insure promptness.” It’s worth noting that the concept of “promptness” back then was quite different from what it is now. In 1760, if your server took more than twenty minutes to bring your food, you were within your legal rights to “wallop him smartly on his person with a blackjack or billy club.” Whereas today you really need to be waiting for at least a goddam hour before you can administer a wallop in good conscience.
