passive:
He was told by a doctor to take a pill
active:
The doctor told him to take a pill
He was told by a doctor to take a pill
active:
The doctor told him to take a pill
What I also say in the talk is that this analogy is a stretch, but at least advice from writers about writing can inspire us to think about how we write code.