In the 100th episode of Three Devs and a Maybe I decided to generate some stats relating to the previous 99 episodes and formed a small quiz out of these findings.
All information relating to each podcast is stored in separate Markdown files within YAML front-matter, which makes it easy to pull out and process.
I thought it would be interesting to go over the code I used to achieve this.
Parsing the YAML front-matter
The first job we need to do is to parse each of the podcasts front-matter into a format that we can processed in PHP.
Stats, stats, stats
With the podcast meta-data now in a format with can process, we can now go about generating some stats.