The Blog

Creating convenience queries on Ecto models

Posted 06 Jan 2016

These days most of my free time coding is taking place in elixir, and as anyone who knows anything knows, that means Phoenix. Phoenix is trying to win grounds by being Rails, but with less loading everything all the time, less magic, and much better performance. In many ways I’m loving it, but one of the first things I got really tired of was working with my database in a console. In Rails, my console sessions will often look something like this:

Let's transpile!

Posted 27 Jan 2015

Or compile? I’m not sure anymore. A lot of effort is going into writing ruby and ending up with javascript, these days. Opal, providing the baseline, have inspired a variety of projects, but people I’ve talked to were a bit split the issue of what kind of code would end up being produced this way. I think it’s brilliant.