On 5/19/10 15:28, Andrej Mitrovic wrote:
I often find non-working samples in other languages/tools. For example, the Python source
code comes with a sample folder. And there's a script called ss1.py, which raises an
exception with the message "This code is not secure in Python 2.2 and later".
Python 2.2 was released in 2001, so I assume the samples directory is not really
maintained anymore. There are many more examples like this, and in other languages/tools
as well.
But how many people generally know of or would check the samples directory?
Personally, I tend to get my examples from either the documentation or from a
google search, tutorials found on the internet, etc. The internet is probably
the best place to store the samples to (e.g. a wiki), it can be maintained,
which means people could always get the most up-to-date samples.
Compare this with having a sample file in the zipped DMD archive that you later
realize has some code that is not really safe. You will end up having to
re-pack and redistribute the entire archive. So imo, if there are any samples
in the archive they have to be kept simple and clean.
Thoughts?
How about http://www.dsource.org/projects/tutorials/wiki ?