Brendan Brazier (former professional Ironman triathlete) talks about coffee in his book "Thrive" and explains that you're basically "borrowing energy" that you eventually have to pay off at some point. Coffee in itself is not bad but one should use it wisely.