Re:Why Elixir? A Rebuttal to Common Misconceptions
by pmarreck on Wednesday July 23, 2025 @10:07PM
(#44666125)
Ah. Looks like I'll have to get the Ash book...
[ Parent
| on HN ]
Re:Why Elixir? A Rebuttal to Common Misconceptions
by going_north on Thursday July 24, 2025 @03:42AM
(#44668047)
Chiming in to recommend it too! The policies are really good too, for instance this is one from our code base:
policy action(:invite_user) do
forbid_unless actor_attribute_equals(:role, :admin)
authorize_if {App.Checks.OnlyAllowedRoles, roles: [:student, :parent]}
end
And what's nice is that these policies apply for both the API and the frontend code without having to do anything extra :)