4 ms·
Elixir for a crud app? Really?
by dabeeeenster 4y ago
Elixir for a crud app? Really?
- lawn 4y agoAs a fan of Elixir it seems like a good fit. Why do you think otherwise?
- sph 4y agoYes, 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 https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Html.html
- ajmurmann 4y agoI haven't written Elixir in years, but Elixir with Phoenix was a quite similar experience to writing a CRUD app in RoR.
- jcpst 4y agoReally! The flagship web framework for Elixir, “Phoenix” is pretty well made https://www.phoenixframework.org/ https://www.phoenixframework.org/
- drewbug01 4y agoIf 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.
- cjglo 4y agoElixir offers a lot of the great protections of rust. If you haven’t tried it, I 100% recommend.
- davidw 4y agoI'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.