Think back to the best lead you've worked with. Odds are they didn't hand you only the easy tickets, and they didn't rescue you every time you got stuck. They gave you something a bit too big, stayed close enough to catch you, and let you work it out. A few months later you noticed you'd grown a level, and you couldn't say exactly when it happened.
That's mentoring. It's a skill like any other: it has techniques, it has classic mistakes, and you get better with practice. This post is for the senior engineer who was just told "you're mentoring the new hire," and for the tech lead building a team. We'll cover how to size a challenge, what to teach in pairing and review, how to hand over control one step at a time, and how to help a mid-level engineer reach senior.
Why it's worth your hours
If you came up as an individual contributor, mentoring can feel like a tax. Every hour spent explaining is an hour not spent shipping. That math only holds if you look at this week alone.
Google once tried to measure what its best managers actually do. Project Oxygen went through more than 10,000 data points from performance reviews and feedback surveys, plus hundreds of pages of interview notes, and the first behavior on the list it produced is "be a good coach." Teams with highly effective managers tended to get better results, be happier and have lower turnover (Google re:Work). That research is about managers, but the lesson carries over to any senior engineer: helping people grow is part of the job.
There's a simpler, local argument too. A team where only two people can handle the hard problems moves at the speed of those two people. Every engineer you help take on hard work alone removes one queue in front of you. Teams get fast when the floor rises, and a couple of stars can't raise it for everyone.
When I took over an 11-person team (8 developers and 3 QC) after a CTO handover, I started with a 1:1 with each person and spent time watching how each of them worked. Then I wrote a 3, 6 and 12-month growth plan for every one of them. It sounds like paperwork. The useful part is that a plan like that makes you answer one question per person: what are they almost ready for? The rest of this post is about answering it well.
Find the task that's one step too big
The most common mentoring mistake is getting the size of the challenge wrong. Too easy, and people get bored and coast. Too hard, and they flounder, lose confidence and start hiding problems.
The psychologist Lev Vygotsky named the middle ground the zone of proximal development: the distance between what a learner can do alone and what they can do with guidance from someone more capable (Simply Psychology). In 1976, Wood, Bruner and Ross called the support inside that gap "scaffolding." Like a real scaffold, it's meant to come down as the learner gets stronger.
For a mentor, this becomes a practical question: what is one step past what this person has already done? A junior who has shipped a few simple API endpoints is ready to own a medium-sized feature, probably not a system redesign. A mid-level engineer who has shipped features solo is ready to lead one that needs another team's help, probably not to become tech lead overnight.
How do you find someone's zone? Ask, and watch. Ask which parts of a task feel clear and which feel fuzzy. Watch where they slow down when you pair. Listen to the questions they bring: "which of these two designs?" usually means they're near the edge of their zone, while "what's the syntax for this?" usually doesn't. You'll misjudge it at first. Adjust as you go.
Five ways to teach on the job
In 1991, Allan Collins, John Seely Brown and Ann Holum described a teaching method they called cognitive apprenticeship (American Educator). It borrows from the old trades, where an apprentice watches the master work, tries parts of the job with support and takes on more as the support is removed. Their twist was about thinking. In school, they wrote, "the processes of thinking are often invisible to both the students and the teacher," so a good teacher has to bring that thinking to the surface on purpose. Senior engineers have exactly the same problem. Their moves (modeling, coaching, scaffolding and fading) map neatly onto everyday engineering work.
Pair, and let them hold the keyboard
Pairing is the fastest way to pass on the stuff that never makes it into docs: where bugs usually hide, which shortcut will hurt in three months, when to stop polishing. It only teaches if the less experienced person is typing. If you grab the keyboard and they watch, you've shown that you're good at this. They haven't practiced anything.
So slide the keyboard over and talk about what you notice. "I'd check the edge cases here first. What happens if this list is empty?" Then wait. Let them think, and let them be wrong for a minute. Not jumping in feels awkward. That awkwardness is the price of actually teaching.
Use review to teach the reasoning
Most review comments are about the code. A mentor's comments are about the thinking behind it. Instead of "this function is too long," say what gets hard: "This parses and saves, so a bug in either half means reading both." Review is one of the few places where you see someone's reasoning in writing, so you can nudge it before it hardens into a habit. The mechanics of writing comments people can act on are in How to Review Code Kindly.
Questions help here, as long as they're real. "What happens if two requests hit this at the same time?" lets them find the race condition themselves. "This isn't thread-safe" just hands over the answer. Ask the question when finding the problem is worth more than the fix.
Say your reasoning out loud
This is the modeling part: an expert does the work while saying what they're thinking and why. Seniors carry a lot of compressed judgment they've stopped noticing. So when you make a call, narrate it: "I'm using a plain in-memory map here instead of Redis. At this traffic, another service costs more to run than it saves." That takes you five seconds. Working it out alone through trial and error takes a lot longer.
You don't have to narrate everything. Focus on the forks in the road, the decisions where a reasonable engineer could have gone the other way.
Give stretch work with a safety net
This is scaffolding in practice. Hand over something a bit too big, then stay close. Don't hover, because they need room to struggle. Check in at natural milestones and let them bring blockers to you instead of clearing every one in advance. The goal is that they feel like they're doing it on their own while you stay within reach.
Match the stretch to how much can safely go wrong. A real deadline and real users make the work matter. A task where one slip can take production down over the weekend mostly teaches fear. Pick work where a mistake costs a day of rework, and save the dangerous paths until they've banked a few smaller wins.
Don't solve it for them
This one is the hardest. They're stuck, you know the answer, and saying it would take ten seconds. Once you do, though, you've switched from teaching to doing, and next time they'll come to you before trying anything themselves.
Give them the next step in their own thinking instead. "What does the error actually say?" "How did we handle the same case in the payments module?" Save straight answers for when they've run out of ideas and the blocker is holding up everything else. Even then, explain how you got there.
When someone brings you a problem, count to thirty before you answer. Pretty often they solve it while explaining it to you. If they don't, make your first reply a question.
Hand over control one rung at a time
Fading, the last move in cognitive apprenticeship, means "slowly removing the support, giving the apprentice more and more responsibility." It helps to picture that as a ladder. The rung someone stands on tells you how much context to give, how often to check in and what kind of work to hand over. Your job is to keep them climbing, one rung at a time.
| Rung | How they work | What you do |
|---|---|---|
| 1. Directed | Needs step-by-step instructions and is unsure about most decisions. Asks before acting on almost anything. | You spell out the task, review every PR closely, check in daily and explain the reasoning behind every call. |
| 2. Guided | Handles familiar work alone and needs input on anything new. Brings blockers to you instead of guessing. | You set the goal and the scope and review the key decisions. You check in every few days. |
| 3. Collaborative | Proposes their own approach, weighs trade-offs and flags risks early. Brings you options along with problems. | You're a sounding board. You review the approach before they start, then trust the execution. |
| 4. Delegated | Owns a whole problem: scope, delivery and talking to stakeholders. Escalates only when it really matters. | You check in at milestones and give a second opinion when asked. They drive. |
| 5. Trusted | You'd hand them any problem on the team, including ones you're not sure you could solve yourself. | You work as peers and learn from each other. You give them scope and get out of the way. |
New graduates often start on rung one, and people with a couple of years of experience often land on rung two. Treat that as a first guess, then watch.
The mistake I see most goes the other way: managing someone a rung below where they actually are. If they work at rung three and you still read every line and ask for daily updates, you're slowing them down. Trust is something you extend a little ahead of the evidence.
If you wait for a perfect track record before handing someone hard work, they never get the hard work that builds a track record. Extend trust one rung past what you're sure of, and stay close enough to help if it wobbles.
From mid-level to senior
Juniors get most of the mentoring attention, which makes sense: the jump to mid-level is steep and the need is obvious. The loss people miss is the mid-level engineer who settles into closing tickets and stays there for years.
By mid-level, most people can write the code. What they often lack is the judgment that comes from owning something big enough to force real trade-offs. So give them:
- A problem to own instead of a queue of tickets. "Keep checkout working when the payment provider goes down" makes them break the work down, sequence it and pick trade-offs. Ten tickets about the same thing don't.
- A seat where decisions get made. Let them present their approach, take the hard questions and defend it. The first few times are uncomfortable, and that's where the growth comes from.
- Someone to mentor. Explaining a decision to a junior makes them put their gut feelings into words, and that's a big part of what senior engineers do all day.
- Influence beyond their own tickets: writing an ADR, running a postmortem, driving a standards decision for the team.
One warning comes from Tanya Reilly's talk Being Glue. She describes an engineer who onboards new hires, mentors, reviews designs and keeps the project on course, then hears at promotion time that she lacks a technical contribution. Reilly calls that work technical leadership, and she's blunt about the trap: "If you only do glue, you will only get better at glue." When you give someone a mentoring role, make sure they still ship technical work people can see, and say out loud whose leadership made the project work. Speaking up for them in the rooms where promotions get decided is sponsorship, a different job from mentoring, covered in the difference between mentorship and sponsorship.
Mistakes worth naming
Most of these come from good intentions.
- Rescuing too early. Jumping in at the first sign of struggle feels helpful, and it takes away the struggle that does the teaching. Step in when someone has been stuck for a long time with no path forward.
- Vague feedback. "This could be cleaner" gives them nothing to do. "This function parses, validates and saves, so its name only describes a third of it and it's hard to test" gives them a next step.
- Handing over only the boring work. If juniors only ever get the lowest-stakes, least visible tasks, you're keeping all the learning for yourself. People notice. Stretch work has to include some of the interesting stuff.
- Mentoring "when there's time." "Ping me if you have questions" isn't mentoring. Put a recurring 1:1 with a growth agenda on the calendar, separate from status updates, and plan pairing sessions instead of waiting for them to happen.
- Making it about you. The goal is their growth. Sometimes that means pointing them at an opportunity on another team, or admitting that your codebase is what's making their learning hard.
How it changes with company size
The principles stay the same. What changes is the structure around them.
| Company stage | How mentoring usually works | Watch out for |
|---|---|---|
| Startup (<30 eng) | Informal and built on relationships. It happens inside the work: pairing, review, sitting next to each other every day. There's no program, but it's often intense because the work itself is a stretch task. | Seniors so buried in delivery that nobody has time to teach. Urgent work always wins. |
| Scale-up (30–150 eng) | Big enough for a career ladder, usually too young for a real mentoring structure. Quality depends on the team: some seniors are great at it, some have never thought about it. | Uneven outcomes. A junior on one team grows fast while a junior on another stalls for two years. Fairness becomes a real issue. |
| Enterprise (150+ eng) | Formal programs: mentor pairings, career frameworks, learning budgets, protected time. More process, which sometimes helps and sometimes becomes paperwork that crowds out the relationship. | Process standing in for real investment. A pairing that exists on paper and amounts to a monthly coffee with no real challenge. |
Say a startup has three seniors and no mentoring program at all. They agree on one rule: every junior owns at least one real feature end to end within their first six months. The seniors size each feature so it's doable with help, pair on the tricky parts and review closely, and the junior drives. That's almost no process, and it can work very well.
Now say a bigger company runs an elaborate program, with official pairings, quarterly check-ins and a goals template. It can still fail if the template becomes the mentoring and nobody checks whether juniors are getting better work or just better paperwork. The relationship and the deliberate challenge do the real work. Everything else is scaffolding, and scaffolding is supposed to come down.
Try this week
- Pick one person and write down the next thing they're almost ready for.
- In your next pairing session, keep your hands off the keyboard from start to finish.
- Narrate one real decision out loud, including the option you turned down.
- The next time someone brings you a bug, answer with a question first.
- Find one thing you still review line by line that they could own, and hand it over.
Mentoring and code review are the same skill at different zoom levels. For the PR-sized version, read How to Review Code Kindly.