There was a post on HN few months back where the author listed atleast 30 tasks that a manager should be doing. The list included planning, mentorship, motivating team, hiring, communicating to higher management etc. It was a long list. I don't thing any person doing those task can also be a competent programmer.