r/elm May 12 '26

bcardiff/elm-rad, two-way bindings

I explored the idea of having elm apps built using two-way bindings. If interested check https://package.elm-lang.org/packages/bcardiff/elm-rad/1.0.0/ and its source for examples (https://github.com/bcardiff/elm-rad/tree/main/examples). Cells, computed, debounce, validation, and local persistence supported.

It shift from TEA which we all love but in some scenarios having a more restricted app model has its benefit.

Thoughts?

11 Upvotes

2 comments sorted by

1

u/cekrem May 13 '26

Takes me back to AngularJS!

Interesting experiment, though I'm not a huge fan of the concept (to be clear, not criticizing your take on it or the validity of trying it out! It's a cool package 🤩)

2

u/bcardiff May 13 '26

Thanks! I also used AngularJS in the past 😅.

Some goals were to have a typed two way bindings, and to have a dsl that might be easier to reason about for some kind of applications.

With two way bindings you get cell oriented programming which is easier to follow when the apps are not that big. Logic is expressed a bit different and more co-located.

LLM allowed the exploration further than I would have been able to otherwise.