I totally agree with you. Giving up alcohol is hard. If a bit of cake or chocolate gives me comfort, I'm going to have some. At some point, I'll work on eating healthy but I can't manage it just yet and I'm not going to feel bad about it.
I work in a restaurant. A few nights ago, I got a really strong craving for a glass of wine so I asked the chef for some chocolate cake. It totally got rid of my craving. Fine, I don't want to be stuffing myself with chocolate cake every night but for the moment, it's ok.
Re caffeine - cups of tea are saving my life at the moment!