---
title: "How to be an effective code coach"
url: "https://www.5whys.com/articles/how-to-be-an-effective-code-coach.md"
canonical: "https://www.5whys.com/articles/how-to-be-an-effective-code-coach.html"
published: "2011-12-12T11:59:02+00:00"
updated: "2012-04-29T20:41:11.062000+00:00"
tags: ["Learning Phase", "Pair Programming"]
author: "Roy Osherove"
description: "How a technical team leader can coach developers through pair programming, writing less code, asking leading questions and letting them solve problems."
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# How to be an effective code coach

As a technical team leader, you might expect others to become better coders. You can also be a coach for them by pairing with each person for a few hours each week.

Being an effective code coach means that you pair with someone, but you write less code. You mainly sit there next to them and help them out as they struggle out writing the code on their own. You might jump in, but most of the time, you should restrain yourself, and let them solve their own problems to completion. Additional techniques include asking them leading questions and jointly planning effective implementations. Remember to always be an overall coach and mentor.

It's all too easy to jump in and take the reigns from a coder with less experience than you. It's much more effective to not do that - but intend give them sense that you trust them, and that it's ok to go slower, but you expect them to challenge themselves and to ask tough questions, even if they seem silly.

You may find that being a code coach, you struggle just as much as your pair - but you struggle at learning to lead and coach. they struggle with learning to 'get' code.

## Read next

- [Two Techniques to Avoid the Bus Factor In your Teams: Push and Pull](https://www.5whys.com/articles/two-techniques-to-avoid-the-bus-factor-in-your-teams-push-an.html): How push based and pull based learning help a team remove bus factors, told through an architect who fixed a search server without learning anything.
- [The architect as a leader, and other specialists](https://www.5whys.com/articles/the-architect-as-a-leader-and-other-specialists.html): Why an architect or any specialist on a team is a bottleneck, and should act as a coaching leader who spreads knowledge until they are no longer needed.
- [The Bus Factor - Why your ‘best’ developer is your biggest problem](https://www.5whys.com/articles/the-bus-factor-why-your-best-developer-is-your-biggest-probl.html): How to spot a bus factor of one in your team and reduce it with standups, pairing, code reviews and knowledge sharing, including the team leader as one.

## Topic

- [Learning Mode](https://www.5whys.com/topics/learning-mode)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
