jkwchui

jkwchui

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?

Showing Posts 1 to 6

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.

jkwchui

jkwchui OP

Thanks Zach for the kind words and the pointer re: sort/filter. I’ve updated the writing / code accordingly.

I wrote up [2-4] Relationships and the article is for the most part complete. I’ll let it sit for some days, to see if there are suggestions / amendments, after which I’ll polish up the LiveBooks, and record the companion videos.

jkwchui

jkwchui OP

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 OP

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).

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.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

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
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
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
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews