jkwchui

jkwchui

Soliciting feedback on an Ash primer tutorial

Hello all. I am drafting a tutorial for Ash, using AshCsv as a transparent datalayer, and contrasting the imperative-declarative ways of going about things. It’ll have some LiveBooks / source CSV, so it’s minimal setup to get started; and some accompanying videos for those who like to see it in action.

Before doing those, I want to make sure the content is alright. I am writing as someone relatively new to both Elixir and Ash, so your critical eyes would be helpful. I’ve published the draft here: A Gentle Primer to Ash – jon.hk

If you can let me know what should be changed (and probably how), then I’ll try to work it in. I anticipate one criticism being too much redundancy; that is intentional, as I think making minimal changes between steps, and showing each of these minimal changes explicitly, helps people who are new.

(I’m thinking about what is the right scenario extension for [2-4] relationship… ideas are welcome!)

Edit: I am also looking to disable code-formatting in LiveBooks, as they messes up the Ash DSL. Is that possible?

First Post! Switch mode

zachdaniel

zachdaniel

Creator of Ash

Very cool! Definitely a fresh take, and was engaging the whole way through! It’s hard for me to evaluate beginner content because I’m so deep in the weeds so I’ll leave that to others :joy:. One small note: you shouldn’t have to load calculations to filter and sort on them, the data layer should take care of that. If you do have to load them, it is likely something to be fixed by the data layer. In short, filtering/sorting is a separate concern from viewing the data.

Most Liked

jkwchui

jkwchui

The LiveBooks / CSVs are here! :partying_face: I personally love tutorials that come with LiveBooks (and enjoyed @woutdp 's Ash set), and hope this self-contained/transparent setup can be an inviting start for everyone that was intimidated by the sheer Bigness of Ash.

…the sad thing is that I wrote [2-4] from a different browser window and somehow that got overwrote :crying_cat: Will add that back in the next day or two.

TwistingTwists

TwistingTwists

This is great as an introductory material.

Would love to have a deeper guide on relationships. :slight_smile:

jkwchui

jkwchui

Hello all.

The prose and LiveBooks are now done, with a new section on Code Interface inserted after calculations/queries, and the Relationship section is re-written to assume knowledge of code interface. I think this is as much as I can stretch “a Gentle Primer” :slight_smile:

Different strokes for different folks: there are also (low production) video walkthrough accompanying the article, that is parallel to the prose and the LiveBooks. I will keep coming back to this thread for your comments, but I consider this complete (and if you find it helpful, you’re welcome to share with the world).

Last Post!

tellesleandro

tellesleandro

This is awesome, @jkwchui.

I’ve already downloaded the livebook and made it available to my internal team.

I’m pretty sure this will help them (us) to understand Ash’s core concepts.

I went throught all 5 books and it worked perfectly.

Thanks.

Where Next?

Trending in Questions Top

jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
saveman71
Hello ! We want new/edit form pages to POST/PUT to their own URL rather than the resources REST defaults (post /things, put /things/:id)...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement