2013/2/18 Leif Middelschulte <[email protected]>

> Hello everyone,
>
> Every few days I come across some functionality that isn't usable
> 'straight forward' but isn't explicitly documented either. After asking on
> IRC I usually go back to read the library's C code, which sometimes is
> quite a bit time consuming.
>
> Since I strongly believe that many problems and their respective solutions
> are reoccurring, I'd like to have some sort of searchable snippets for EFL
> usage.
>
> I'm referring to short snippets, not to full fledged examples that could
> be added to examples/ or deserve a blog entry/whatever.
>
> Let me give you an example:
> Problem: Change an edje part's rel1 value via message using embryo
> Straight forward solution I assumed:
> set_state_val(…)
> Real solution:
> custom_state(…)
> set_state_val(…)
> set_state(…)
>

exactly this is explained in the example:
efl/src/examples/edje/embryo_custom_state.edc


>
> Now I'd go and create a snippet that contains only the few correct lines +
> comments and tag it with e.g.: "edje part geometry change rel1 embryo
> message"
>
> I imagine a dedicated git repository (e.g. 'snippets') that contains
> tagged code snippets (first commit line) and a web interface to eventually
> add/edit/browse/search entries. Luckily we have phabricator, which already
> provides all of this :-) Now we'd just need to add such a repository.
>
> What do you guys think?
>

I don't think a new place to put example is a good idea, will make the
search of resources
more difficult. We have example/test/snippets too much sparse around: in
sources, in the wiki, in examples, in tests... I think we need a sort of
"contentrator" for all that info around.
Maybe a well done wiki page can be enough, I'm thinking of a sort of "big
index" of
resources grouped by libs.



>
> --
> Leif
>
>
> ------------------------------------------------------------------------------
> The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
> is your hub for all things parallel software development, from weekly
> thought
> leadership blogs to news, videos, case studies, tutorials, tech docs,
> whitepapers, evaluation guides, and opinion stories. Check out the most
> recent posts - join the conversation now.
> http://goparallel.sourceforge.net/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to