On 12/29/2012 5:47 AM, Chris wrote:
As regards PHP I have to admit that I hardly ever use the code examples in the comment section - too basic and too messy. The best real world PHP code is still either on Stackoverflow or on webprogrammers' homepages, articles etc. But that is because PHP is used by amateurs and professionals alike, I think, (cf. http://w3techs.com/technologies/details/pl-php/all/all). In the case of D, I trust that the code samples will be of high quality given that the D community consists mainly of programming and computer science experts (and I exclude myself here!) or at least people with a keen interest in the subject. D could definitely do with more code samples especially those showing clever and optimal ways of doing things (commenting on the pros and cons like on Stackoverflow).
The interesting thing is I am always trying to write the canonical great example, yet I am always unhappy with it later because I've run into a better way of doing things.
