The latest Code and Stuff video is here!
Learn about Server-Side Request Forgery (SSRF) attacks and mitigations, complete with a working webhook demo application!
#ElixirLang
youtu.be/EWdphas_OP4
The latest Code and Stuff video is here!
Learn about Server-Side Request Forgery (SSRF) attacks and mitigations, complete with a working webhook demo application!
#ElixirLang
youtu.be/EWdphas_OP4
Elixir Radar issue 490 is out! π£
You can read it here: buff.ly/eBGmbTd
This issue comes with content from @juanazam.bsky.social @yellowduck.be @bartblast.com @noelworden.bsky.social @phx.dev and Daniil Popov. Thank you!
#ElixirLang
Oof I forgot to add the hashtag in my copy/paste haste
The latest Code and Stuff video is here!
This time, a walkthrough of @mikehostetler.bsky.socialβs new ReqLLM package, which provides a unified interface to many model providersβall in Elixir!
youtu.be/-U2sQ3e3R-0
It's finally here: the Code and Stuff walkthrough of Ash TypeScript!
Learn how to build an Ash project from scratch, use LiveView to begin, and eject to React without much fuss!
It also fits into @tanstack.com really nicely.
#ElixirLang @ash-hq.org
youtu.be/t-hori2Io14
Elixir Radar issue 480 is out! π£
You can read it here: buff.ly/Xo2thcs
This issue comes with content from @zachdaniel.dev @steffend.me @josevalim.bsky.social , Chris McCord and Christian Alexander . Thank you!
#ElixirLang
The latest Code and Stuff is here:
Auto-Select Timezones in Phoenix Apps
It's a quick one, showing a pattern I use all the time.
#MyElixirStatus
youtu.be/q6Kd5C7O-F8
An example resource with a circuit breaker defined. If 10 failures are hit within 10 seconds, the action will fast fail for a minute to let the circuit reset.
I made an Ash extension!
Elixir is capable of hitting services hard; great for throughput but harsh when those services are trying to recover from an outage.
The circuit breaker pattern addresses this issue and is now available in Ash!
#MyElixirStatus
hex.pm/packages/ash...
Phoenix #LiveView 1.1 is out now! (Actually already yesterday, but we were only able to release the blog post now) #MyElixirStatus
phoenixframework.org/blog/phoenix...
Phoenix LiveView 1.1 is out!
Colocated JavaScript (and hooks), list comprehension improvements, and an igniter-based script that makes updating easier than ever.
What an incredible releaseβcheck it out!
#MyElixirStatus
youtu.be/EV6DSqTOXM0
My next video is live! This time, I explore the ash_state_machine extension.
Along the way, you'll learn about policies, pubsub, and Oban integration in the demo app!
#ElixirLang #AshFramework
youtu.be/_x6TE7hbE1k
hexdocs.pm/usage_rules now includes powerful docs-search tasks, and instructs agents to use them for research. Please, if you are working with LLMs and Elixir, try it out. It helps even when packages haven't written usage-rules files, thanks to the new docs tools!
#ElixirLang
Yay, new extensions! Each one makes the rest of the system more powerful.
Excited to see what yβall are cooking up soon!
LLMs don't do a great job of cleaning up after themselves.
The result: developers include way too much of this AI slop in their commits.
Did nobody teach them about git add --patch?
Coming soon: learn how to model payment states with ash_state_machine!
The demo also includes background job processing to simulate payments, auth policies, and real time updates. All made easy with Ash!
Which part are you interested in learning?
#ElixirLang #AshFramework
Calling multiple services doesn't have to be a nightmare.
My latest video explores Reactor for workflow orchestration. Concurrent execution, automatic rollbacks on failure, and of course: it works with Ash AI.
#MyElixirStatus #AshFramework
youtu.be/0Dvn039qD8I
As promised, a new Phoenix App from Scratch video:
Embedded schemas and an intro to Ecto Multi, all in the context of the demo budget tracker app!
There's even some animations to describe Multi, if you're into that sort of thing.
#MyElixirStatus
youtu.be/Vx69evZOEAE
Oban is probably the greatest library I have ever used, especially with Oban.Pro on top. The value you get for free - or for a very reasonable amount - is mind-blowing.
An example of an Ecto embedded schema, containing a full budget object and an additional decimal field called `period_funding_amount`. embedded_schema do field :period_funding_amount, :decimal embeds_one(:budget, Budget) end
An Elixir function called `construct_multi`, which inserts a budget and funds it if necessary. defp construct_multi(data) do Ecto.Multi.new() |> Ecto.Multi.insert(:budget, data.budget) |> Ecto.Multi.run(:fund_budget, fn repo, %{budget: budget} -> fund_budget_if_necessary(repo, budget, data) end) end
Embedded Ecto schemas in forms and a brief intro to Multi?
Coming soon in the Budgie series on Code and Stuff!
#MyElixirStatus
Ash isn't just for new apps, with the ash_postgres.gen.resources mix task!
hexdocs.pm/ash_postgres...
Did you know @ash-hq.org can import existing database tables as resources automatically?
It can even generate relationships and constraints!
#AshFramework #ElixirLang