Sometime ago I was put in some sort of teamlead role in our programmers part of team. And so I got two new programmers under my responsobility. Both of them have little previous job experience, but one of them are better prepared in terms of knowledge and experience from home projects. He is somewhere between middle and junior category, while the other one is clearly junior.
So, the problem is that more experienced programmer constantly interrupt junior work. Sometimes he even take his keyboard and just write code and this is not a pair programming, because junior quickly loose what happens and why.
I do not want this to happen, because I want to junior develop by himself, of course with our help, but more in terms how he could solve this, where he can find examples of solving similar code tasks and so on. Not to agressively interrupt him in process of thinking, even if he thinks slowly than more experienced college.
Also I do not like this, because more experience programmer quickly loose focus on his tasks in project, his zone of responsobility in project. I want that he put more energy in his part of project. So I tryed to find more interesting tasks for him, so he wont loose interest in his work . We discussed what tasks he could take to get more interested in work and so I gave him more complex and bigger tasks, in which he showed more interest.
But still, that did not help and he continues to constatly interrupt junior work. Last time he even took junior task on the weekeend and made his own solution. I do not know how to react to these, because I can not gave all of the project meat to the one person and he is already have big part of the project in his zone of responsobility. I want him to more focus on his part of the project, because there is still plenty of problems to be solved, and I have a feeling that he just dont want to miss every interesting task in the project.
It also hurts project quality, because he wants to quickly end "boring" task and get new one.
What steps should I take to make new employee more focused on his tasks in project than tasks of other people? Escpecially when current task is boring, but still it's need to be done.
My goal is to help the new programmer focus on their own work.
Last time when I tried to talk about this problem, he took my words too personal and of course I was trying to be polite as could.