[Kde-pim] Code examples

Kevin Krammer krammer at kde.org
Sat Oct 20 13:32:27 BST 2012


Hi,

On Saturday, 2012-10-20, Sérgio Martins wrote:
> Hi,
> 
> 
> From time to time, users ask about how to do foo or bar in code, and we
> spend time explaining them.
> 
> For example, "How do I insert an event into Akonadi ?".
> 
> Would be more productive to write a 5 line .cpp file and commit that to the
> repo. Will save time the next time a user asks.
> 
> 
> Should we have a kdepimlibs/examples directory then?

There is a kdeexamples repository, I'd say we should use that.

> If yes, then we should normalize the existing kdepim/examples directory.
> Doesn't seem to have a hierarchy, it's more like a dumping ground.

Might make sense to triage that and check for obsolete or outdated stuff and 
then move the rest to a pim folder in kdexamples.

> An maybe some examples could be moved to kdepimlibs, etm_usage for example,
> should be in kdepimlibs/examples/akonadi/ (if it doesn't have any kdepim
> deps )

We can probably create an akonadi and a kdepim tree in kdeexamples. Other 
modules also seem to have their own top level dir in there, e.g. kdegames

I guess it would also help to have a couple more tutorials on 
http://techbase.kde.org/Development/Tutorials and to update the existing ones.

My plan regarding the latter was to commit the "final" code for each of those 
to the example repository but I keep forgetting about it :(

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20121020/e59e862b/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list