19 Aug 2019
4 min read
Mentoring is one of the best ways to help junior developers grow their skills. As a mid-level or senior developer, it's up to you to decide what kind of mentor you want to be. The most important thing to keep in mind as a mentor is that it's not about you. It's not about your experience or how eloquently you can write code.
Your goal as a mentor should be to help the junior dev understand more than code. They can read about that. You need to show them the other things that you only get from experience. Here are a few things you can do to be a good web developer mentor.
Writing code usually isn't the hard part. The hard part can be understanding what the business side wants. When you have a meeting with clients or product managers, have your junior dev sit in or take a few minutes afterwards to explain what happened. They need to know where their tasks come from and how they get created. Helping them understand the business side gives them more context as they work through tasks.
Also make sure you cover the business logic as they dive into their tasks. Explain how the application currently works with a quick demo. That way they know how to get to certain screens or why we handle user input particular ways. A brief overview of the decisions that went into the functionality of the app will always help junior devs learn how to understand applications as a whole instead of just the code.
A good code review covers best practices regardless of the developer's experience level. With junior developers in particular, you never want to skip this. If you see something they did that works but it's written poorly, walk them through the best practices so they know how to write better code next time. Also explain to them some of the code decisions made by the team. It helps give them perspective on how applications grow and reach their current states.
This is a great time to decode the jargon we use. As you talk through best practices and code stuff in general, define the jargon you use. It takes a while to pick up on all the terms and a lot of junior devs try to pick up meanings from context clues. Skip all of the confused looks and half-hearted "oks" by telling them what an interface is or how a repository works. It'll give them a much deeper understanding of the core concepts instead of language specific stuff.
Over the years, you've probably had different roles as a developer. You know what it takes to do things like DevOps or front-end development. When you're working with your junior dev, highlight some of these things. If you see your junior dev is picking up SQL queries faster than anything else, introduce them to database administration and tell them what all they would need to learn. Show them as many opportunities as you can because it will help them navigate through their careers.
When you show them all the options they have and tell them how to approach those opportunities, you set them up for a more successful career in the long run. They can start to think about where they want to specialize and how they can go about doing so. This gives them motivation to keep trying new things. As they try new things, they become a well-rounded developer which increases the quality of everything they do.
When you get close to the end of a sprint and you know you need to finish in a hurry, resist the urge to block out the junior developer. This is one of the best teaching moments because it forces them to think fast and critically and it teaches them how to commit to decisions. Even if it's a difficult problem you aren't sure of, let them take a stab at it. It helps them to think past the surface level of code and deeper into the core of the application.
Give them a chance to tell you what they're thinking before you jump in and save the day. When you cut them off, it makes them feel like you don't care what they have to say or what they have been thinking about. While that may be true, it doesn't help them grow if you take over every time things get hard. Let them know that you listen to them and if they don't get it quite right, explain to them why and what you're going to do instead.
At some point in your career, you've sat are someone's desk and watched them code. To make this useful (and not completely boring) for your junior dev, talk through your thought process. Watching you write code in silence might help a little, but when you give them insight to your thought process behind the code you write you really teach them something. They start to see how you connect the pieces and why you write code the way you do.
Once you've done this a few times, switch roles and have them do the same. If you notice they aren't using a concept like inheritance correctly, let them know. By listening to their thought process you can help steer them in the right direction. Getting junior devs to talk out loud also makes them more aware of what they're thinking about so they don't mindlessly write code.
Being a good mentor doesn't have to take a lot of time either. If you can spend even 30 minutes a day doing one of these things, you've just helped your junior dev in five different ways in a week. As you do this you'll start to see their skills grow and their confidence increase. I'm sure you remember finding out how much you didn't know as a junior dev. Be that resource you wish you knew about.
One of the best things about the web development community is how willing most people are to share their knowledge. Let's keep that going! I've never met a group of people online who are so supportive! Is there anything you would add to this list?
You can stay in the loop with what's happening in the web development world when you sign up for my emails. You can click here to do that. There's hundreds of people who already get the updates, so why not you too?
Ground Floor, Verse Building, 18 Brunswick Place, London, N1 6DZ
108 E 16th Street, New York, NY 10003
Join over 111,000 others and get access to exclusive content, job opportunities and more!