Idiomatic, no (agreed). Very readable, yes (I think the style was intentional). For tutorials, I generally implement everything myself as part of the learning process and avoid source copy-pasting. So I wasn't irked but YMMV depending on learning style.