Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Elixir for a crud app? Really?


If given the choice between Rails (Ruby) and Phoenix (Elixir) for a low-traffic CRUD app I might have the same sort of question as you - really?

But if the choice is between Elixir and Rust for that same CRUD app, it doesn’t seem strange; Elixir would be a far better choice.

I would presume the commenter is more familiar with ecosystems like Elixir, even though it wouldn’t be the most optimal choice. But certainly more optimal than Rust in that case.


Yes, really. The Phoenix framework is one of the most productive web frameworks around, and Elixir is a very pragmatic functional language that is easier to adopt than others.

Creating a CRUD module, with schema, migration, controller, view, template and data validation is literally one command away with `mix phx.gen.html/phx.gen.json`

https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Html.html


Elixir offers a lot of the great protections of rust.

If you haven’t tried it, I 100% recommend.


Really! The flagship web framework for Elixir, “Phoenix” is pretty well made

https://www.phoenixframework.org/


I haven't written Elixir in years, but Elixir with Phoenix was a quite similar experience to writing a CRUD app in RoR.


As a fan of Elixir it seems like a good fit. Why do you think otherwise?


I'd probably go with Rails, but Elixir would work out ok for a lot of use cases. Either one seems a significantly better fit than Rust.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: