fullpin

fullpin

Hey there, this is my first post on the forum! Been following elixir for the last probably 3 years, but never really ‘dove in’ other than exercism/reading/podcasts/following the community growth. And I have to say it seems like amazing growth, even from an outsider.

I am exploring using Elixir, and specifically Ash for some core stuff in a future whitelabeled production application. For me, something just never clicked with the way phoenix generates/handles the ‘core’ of your application.

I think the web side is amazing, but I’ve bounced off ‘how to model/structure x thing?’ many times.

I really resonate with the abstractions of Ash, they just kind of ‘click’ to me, even though there’s a lot of terminology.

ANYWAY

I am wondering: who (in your opinion) should be using Ash for future production work?

And more importantly: do you think it’s for newcomers to elixir (but with extensive programming experience in other languages and domain modelling)? Or those who have already cut their teeth on elixir and the broader ecosystem for a bit?

Thanks for any replies!

Most Liked

barnabasJ

barnabasJ

Ash Core Team

First of all, welcome to the community. :tada:

I started using Ash about 2.5 years ago without doing anything substantial in elixir before.
I mainly worked with Typescript before, with a bit of Java and Python mixed in.

When we evaluated Elixir, we also considered how we would create the Application layer. The Phoenix generators felt a bit too bare-bones, leaving many questions open.

There is also the phrase Phoenix is not your Application. Phoenix’s primary concern is not how you structure your application layer. Ash fits nicely into that slot.

After doing Ash for 2.5 years, I have a hard time seeing myself creating an elixir application without it. It solves so many problems you would otherwise have to solve yourself, one example being authorization. There are also common places to put your files and logic, which reduces bikeshedding on less impactful decisions and lets you concentrate on the things that add value for the end user.

Another important thing is that Ash doesn’t try to replace commonly used libraries like phoenix and ecto but rather builds on top of what is already there. In that way, I feel like even if I would need to build something without it, I still learned things about those technologies and not just specific Ash knowledge that might not be transferable to other projects.

I would give it a try if I were you :wink:

sodapopcan

sodapopcan

I just wanted to add that the way Ash does this isn’t too different than how you might say Phoenix’s context are “supposed” (very heavy quotes) to be used, it just abstracts a lot away (with many additional benefits, of course). Ash resources bundled in an Ash domain exposed by an Ash code interface is very generally the idea behind the DDD concept of Bounded Contexts which is where Phoenix contexts get their name. If you aren’t already familiar, reading up on them can help a lot in vanilla Phoenix and Ash (especially if you get a job where you have to use vanilla Phoenix). A very short intro is available here.

I’m just finally getting into Ash myself and can already tell I will not be looking back—except for every day at work when I’m forced to :sweat_smile: So ya, I have nothing to add to what @barnabasJ has said other than to reinforce that the target audience of Ash is everyone :slight_smile:

And welcome to the forum!

fullpin

fullpin OP

Obligatory disclaimer: I am NOT dissing phoenix in ANY way. I think both Elixir and Phoenix are the most sane, pragmatic, but also wonderful to work with languages/web frameworks I have ever encountered. So many powerful things exist – and I just really want to understand them at depth, just takes some time ^^.

And yeah I am very familiar with DDD and bounded contexts!

Where I bounced in phoenix contexts was like:

  • use context generator to generate some context
  • now what?

Especially when I don’t really need phoenix itself because I am doing domain modelling without UI, which is usually how I like to work for the ‘core’ stuff.

Whereas, with Ash my feeling after even walking through some tutorials is like: make a resource, define an action, go from there.

Last Post!

sodapopcan

sodapopcan

Ha, I’ve come to think of it as a cross between a like and an up vote depending on context (no pun intended).

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 94592 917
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
heathen
Quite interesting article Google brought me. Didn’t find any mentions about it here. What do you think in general? Would you use togethe...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
AstonJ
Since we have deprecated our Erlang sections (as we have dedicated Erlang Forums now) let’s add this thread for those who’d like to post ...
New
Null-logic-0
What IDE or editor are you using for Elixir development? Personally, I use Zed, and I really like it, but sometimes I wish there were a ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews