I spend half my time teaching programming and half my time doing programming. I have to constantly remind myself that teaching is valid work too, even if it doesn't feel as "productive" because I'm not making progress on an "actual project." It takes time and energy. I forget that almost every day and then feel frustrated when I'm burned out from it.