/r/nootropics, common thread is as follows:
OP: "Help, I have bad anxiety every day, what should I take for it?"
re: "Do you drink coffee?"
OP: "Yes, about 4 cups a day."
re: "Stop drinking coffee and come back in a week and tell us how you are doing."
1 week later.
OP: "My anxiety is gone!!"
Caffeine has negative side effects. For some people those side effects are really bad.
Also caffeine messes up sleep cycles. After seeing sleep study results, I won't touch the stuff after 10am or so, if even that late.
Alcohol is even worse in this regard, it will just ruin your sleep cycles at night.
Edit: Let me emphasis this for anyone reading:
YOU WILL NOT GET DEEP SLEEP IF YOU HAVE A NIGHTCAP.
Yes, you will get drowsy, drink enough and you will pass out. The restorative quality of the sleep you get that night will NOT be good. I've seen first hand the sleep study results from this. The effect is so obvious that even the questionable sleep quality results that wrist based wearables give you can easily and consistently show this effect.