With rails when i'm writing some new code quite often i'll open pry and experiment. %w!bob tom harry!.<tab><tab> gives me all the things I can do on this array. So maybe I'd do %w!bob tom harry!.sort
If i'm in iex (the elixir equivalent REPL) I have no such help! first, I can't use %w! to define an array, and secondly You can't call things like that. The equivalent is
['bob', 'tim', 'atom'] |> Enum.sort
which isn't discoverable in the same wayThe second part is a pretty fundamental language difference but you can use sigils to handle the first part. E.g., to generate word lists use ~w like so:
~w(bob tom harry)
If you don't want to use parens, you could use pointy brackets, braces, pipes or a few other delimiters instead.1) I generally prefer Ruby's syntax over Python's (I would miss blocks for sure) 2) Rail's ecosystem seems larger than Django's, but that could just me being more familiar with it 3) There seem to be a lot more Rails jobs than Django ones
Django would make more sense for a business that uses python for other things, though.
I have know django developers who were great in django but never got their heads around python beyond the framework.
Maybe things have changed since the last time i poked at it.