
🧙♂️ Conjurer of interfaces and abstractions 👨💻 Crafter of tooling to ease the burden of mundanity 🐭 Man of Vim 🥷 Full Stack Ninja ⌨️ Web Tech Enthusiast
Joined November 2018
- Tweets193
- Following2.6K
- Followers209
- Likes1.1K
Here's a short and sweet one going into case insensitivity in #sqlite
youtu.be/oqPUZKTSJgE
Hope you enjoy!
46
A brilliant read from James Harton
harton.nz/blog/you-probably-…
Event Sourcing always sounded so attractive on the face of it, but he highlights concisely just how the tradeoffs of that architecture are complex and costly.
Well worth a read!
1
15
There's also a mention in there of Ash Workflow, and I think his framing of the library is spot on:
> Some processes take days and involve people. An application might validate a request automatically, wait for approval, remind the reviewer and eventually escalate it. A background job alone doesn't describe that process particularly well.
>
> AshWorkflow wires together ash_state_machine states and transitions, ash_oban triggers for automatic work, and Ash actions for manual transitions. Its DSL also expresses deadlines and recurring reminders.
4
AshGrant is awesome! It adds flexible authorisation on top of Ash's rock-solid policies.
Every permission is a string like document:42:read:own that compiles into an Ash policy and a read filter.
Here's a video where I show just how easy it is to the lib to build document sharing with it:
youtu.be/RL0g5wzf3UY
Conor retweeted
Last video from #AshConf is out! Torkild Kjevik, Ash core team member and author of AshTypescript and AshEvents shares the awesomeness that is AshTypescript with us 🎉
youtu.be/T1K-RC6fcjo
#ElixirLang #AshFramework
I just released a new video: Adding Time to Your Ash Resources ⏲︎
Invitations, reviews, approvals, expiry, deletion. All state machines with a time dimension.
Ash Workflow now has a mix generator for 10 of them. Run one on an existing Ash Resource and the workflow is right there in your codebase, ready to tweak to your desires.
youtu.be/9eeKUQBKBZo
1
3
154
Interested in getting started? Each generator has its own page in the docs:
hexdocs.pm/ash_workflow/reci…
1
9
This is such a cool idea!
I haven't considered how well calculations would fit for UI rendering.
I've gotta try this!
We also love the Ash Framework @ZachSDaniel1 @joshprice - and we kept asking ourselves why use a completely different programming model as soon as we step outside the business domain? In any nontrivial application, the UI is about half of the complexity and for largely reasons it is in an isolated world of its own.
It turns out that Ash is already 'UI complete' - we can represent arbitrary screens as UI resources and their render trees as calculations. Data loading comes through relationships and reactivity from notifiers. We support full differential rendering and Phoenix wire compatibility (Datastar is also supported).
With this design, you can directly expose your UI to embedded agents via ash_ai (and soon, ash_hyperlang). Link to the repo in the replies.
It turns out AshTypedSql views can already read at any point in time. It took literally zero effort, thanks to the awesome new as_of option that came with Ash’s new Temporal resources.
@ZachSDaniel1 really cooked with that one!
May I present an interesting project I've been working on recently 🥁
It called Ash Typed SQL: A library for going from SQL→Ash 🧵
This means you can have:
- Queries: reads or writes, with arguments and their types worked out for you
- Views: the fields on the resource are autogenerated for you
- Functions: these are converted into Ash.Exprs
This gives us the best of both worlds, SQL for views into data at whatever level of complexity, and typed Ash resources sitting on top.
1
3
121
How it works is outlined in the README: github.com/C-Sinclair/ash_ty…
It's not quite ready for primetime, but definitely proves that it can work!
Feedback very welcome.
3
99


