Firstly, it’s fairly rude to both make generalisations about a whole programming ecosystem; yes, documentation does vary from the minimal to the excellent.
Secondly, you should try to create new posts if you are adding a new question to an old thread.
To your question, the link to the code example is in the first reply. You can see a similar follow up here too: