how many confirmations would this wait for before dispensing? i.e. how long does it take from me paying for the coffee before I get it?
Seriously though, this is a really cool fun hack, but I doubt it is meant to be actually useful, or that bitcoins will be ready for vending machines any time soon.
The risk of accepting on 0 confirmations is probably lower than that of accepting fake currency or the cost of processing a credit card.