Whenever possible why not code, but the manager side of the role has to come first. By this I mean that if someone in the team has a problem or a question, you have to deal with that first, because by resolving that problem you are freeing them up to do their work. And that is where the difficulty lies, because if as a manager you are working on a critical coding task, you have to leave that to deal with the problem or questions or help that is needed by team members. I therefore find it best when I am working on non critical coding tasks that are of lower priority of that than team members are working on. This way I keep my coding skills up to date and am able to put the coding task on hold when a team member needs help.
C
Caprica1
@Caprica1