- Advocate to allow an archive format in the forum attachments, or
- Advocate to publish the complete code samples through [your?] git and put a link in the wiki?
- Something else?
Something else ! This came out a discussion about the existing collection of examples that are shipped with Lazarus. The feeling was that they are, in many cases, poorly documented, some are dated, some don't work and, as such, are not very useful to end users, especially new users.
On the other hand, there is a lot of valuable content in there and there could be a lot more if people like yourself, wanting to write a short tutorial had a easy place to put the sample code.
So, no, forum or wiki attachments are not the solution and shipping all the examples with Lazarus may not be a good idea either. Trev I think suggested an online repo and I suggested a metadata model to both classify and allow sensible searching. So, the idea is that the repo you see will eventually end up in the FPC github site and a replacement Examples Window in Lazarus allows an end user to find and download just the example they want to play with.
There are already a number of examples in the 'kit' that relate to wiki based tutorials. That sounds just like what you were asking for.
So far, I have classified about 50 examples, maybe 20% of the total. Its enough for me to get a feel of the quality there and I think my current category list needs some revision. For example, the "Techniques" category is too big, maybe needs to separate out "Drawing" At present, its just a proof of concept and a spare time activity for me.
But clearly, soon, it will need more people classifying and contributing and we need an indication from the Lazarus developers that we are on the right track still.
Davo