Skip to content
0:00 / 0:00

#elixir#ashframework#statemachines

What are state machines? (feat. Ash Framework)

Code and Stuff

6.6K subscribers • 20 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

8.6K views1 year ago1 recommendation

Software designProgramming languagesElixir and ErlangDesign patternsSoftware architecture

An introduction to state machines and a tutorial on refactoring Elixir code to use the Ash State Machine package.

State machines are important data models to be used in situations with a series of known states and well-defined transition rules. From light switches to cars, vim, and even payment processing—these come up more often than you might think. Elixir's Ash Framework has a package that makes managing state machines easy, consistent, and well-documented. Links: Screen recording software I use (affiliate): screen.studio/@Yy75o Project Repo: github.com/ChristianAlexander/money_pit (look at git tags for pre- and post-refactor) Ash Framework: ash-hq.org/ Ash State Machine: hexdocs.pm/ash_state_machine Ash Oban: hexdocs.pm/ash_oban Timestamps: State machines? - Demo - What's Ash? - Demo code walkthrough - Refactoring to ash_state_machine - State permissions in one line - Other Ash niceties - YouTube Academy Competition: #TeamHailey

Why it's here

1 person recommends this

u/GiraffeFireAlchemistin r/elixir • Recommends

What are state machines? (feat. Ash Framework)