People, when they write technical articles, commonly want to author the examples in the language they're most familiar with at the moment. If I'd been working primarily in Python for the last 6 months, I'd tend to write any coding examples in Python because it would allow me to focus on the article's content rather spending a couple hours refreshing myself in C to make sure I didn't make any embarrassing mistakes that might shoot through my credibility when read by somebody who spent the last 6 months writing C or C++. There's nothing wrong with it. In fact, I usually think of it as an opportunity to rehone my skills on the langage in the examples (or take a look at the language for the first time in some examples).