While the first ever vending machine looked very different from today's soda and snack dispensers, the basic principle was pretty much the same as it is now.