For textbooks at least, it refers to a hypothetical person, where you can use either, but they seems to better get across that they're a hypothetical person and not anyone definite. Also, it's a fucking textbook, those aren't written by people who give a shit about things like writing...