It is ok to be grumpy. We are all human beings after all. What is
not ok is when you start using your grumpiness against the people you work with. If team morale is down because of your grumpiness, no one really gives a shit how good of a developer you are. It is that simple.
I remember one of those project management training sessions where we were taught
T E A M = Together Everyone Achieves More