3 ms·
>Part of the offender is terrible UX of iex (like, why the heck can't I cancel multi-line command and not loose all my context?). #iex:break? But I do agree t
by dqv 6y ago
>Part of the offender is terrible UX of iex (like, why the heck can't I cancel multi-line command and not loose all my context?).
#iex:break?
But I do agree that it would help if there were just a default helper module that collected Ecto.Query and all the app schemas. It can be pretty annoying to have to re-alias schemas.
- methyl 6y ago> #iex:break? TIL. Does that differ from CTRL+G, i, c as in won't loose the context?
- d3ckard 6y agoYou actually can do that. Your project can define IIRC ".iex.exs" file that gets executed before you enter iex, so you can have all utility aliases and imports there.
- davidw 6y agoOne of the things I like about Elixir compared to Erlang is that it has a lot more beginner-friendly stuff as opposed to "oh, that's trivial to code up" that I have occasionally seen in the Erlang world. If it is, do it and make it available so that someone getting their feet wet has it available!