Well that is a good approach which I had it too in my life, but then one day I went to a food truck and I was so hungry. They told me they only accept cash :(
And I was like nooooo
Then I learned that I should carry at least 20 dollar with me all the time.