If you are getting fleeting moments of satisfaction managing people - that’s good. You have to give yourself a chance. Being a manager means getting things done through other people.You have to try to increase those moments as the manager where you feel your team is becoming more productive and happier. At the same time, you will also have to learn to give more constructive feedback to those who are not achieving. That’s not an easy job. But clearly, you have to give yourself more time to become more proficient at utilizing management skills. It can be extremely rewarding knowing that you have an impact on others’ lives. However, having said all this, there will come a point in time when you will have to be true to yourself. Managing people is not for everyone. You may decide that you absolutely truly love coding and go back to it. I want to make this very clear that this does not make you are a good or bad person. It simply is what it is. You have to decide ultimately in the short and intermediate term what truly makes you happy and where you can make the greatest contribution.
Sometimes getting a coach can help you learn the right skills or just be a good sounding board. Someone else offered a free coaching session which you should definitely try out, but if you want a long term solution, we offer unlimited coaching for new managers here: https://leadingup.co