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(…)

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?  

--  
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
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to