News for hackers. Stuff that matters.
Re:Ash: A Gentle Primer by sph on Saturday October 07, 2023 @04:03AM (#37799940)
I have been writing Elixir full time since 2018, and I quite like Phoenix, warts and all.

Can a willing reader pitch Ash Framework in a few lines for me please? What is its killer feature vs Phoenix? Also, is it compatible, or does it have an alternative to LiveView?

Re:Ash: A Gentle Primer by spiderice on Saturday October 07, 2023 @04:35AM (#37800063)
Ash isn’t an alternative to Phoenix. It’s an alternative to Ecto. It’s a data layer that uses Ecto under the hood.

If you read the first few paragraphs of the linked tutorial, I think you’ll have a pretty decent understanding of what it does.

You can use Ash with Phoenix and Liveview.

Re:Ash: A Gentle Primer by sph on Saturday October 07, 2023 @04:37AM (#37800074)
Well, today I learned, thanks.
Re:Ash: A Gentle Primer by DylanSp on Sunday October 08, 2023 @12:06PM (#37811686)
I really wish the Ash website made this more immediately clear; the initial description makes it sound like Ash has a broader scope than it actually does (as far as I can tell).
Re:Ash: A Gentle Primer by zachdaniel on Monday October 09, 2023 @03:15PM (#37824132)
We tried to make it a bit clearer recently with the section on "Compatibility". "Works great with Phoenix, Ecto and all the other first rate tools in the Elixir ecosystem."But you aren't the first person to say this. It's complex because we do build your APIs for you, and it's not a requirement to use Phoenix to make this work. But Ash also can (and usually does) act as something you use alongside Phoenix. It makes it difficult to message :(
Re:Ash: A Gentle Primer by jkwchui on Saturday October 07, 2023 @09:23AM (#37801511)
Hi, the tutorial writer here. The first few paragraphs in the tut would give you a sense of what Ash does, but thank you for the comment that its role in comparison with Phoenix should be spelt out at some point. Ash helps provide a thoughtful underpinning to structure your data, and Phoenix / LiveView presents it to the world. If you are a poetry person:

Phoenix rise from Ash.

Re:Ash: A Gentle Primer by victorbjorklund on Saturday October 07, 2023 @09:26AM (#37801535)
It doesnt replace phoenix. Think of it as ecto schemas but with superpowers. Instead of "just" getting changesets etc from a schema you get json api, admin, calcuations etc.