3 ms·
Generators are more or less useless to me. They are useful to create some tutorial code to see how some stuff should be idiomatically written, but for anything
by spapas82 4y ago
Generators are more or less useless to me. They are useful to create some tutorial code to see how some stuff should be idiomatically written, but for anything else I just ignore em and just write the code myself.
About the fragment. I agree it is useful but it's usefulness relies on the fact that most non basic sql is not implemented in ecto so you need to be able to use it somehow... Consider that the Django ORM implements almost anything that your gonna need (thing like Case, SQL functions, subqueries, whatever) so you only write ORM code!