ThinkingElixir Discussion: Mental models for your Elixir and LiveView code

Yes, it did sound like Chris McCord liked the approaches being explored by Surface and they might get incorporated into LiveView. That’s super cool!

I have used Surface on a significant project. At the time, surface was very new. It was even pre-release. So after some time (a month or so), I switched it out for regular LiveView and components. Mainly the issues I had were around dependency conflicts. Surface would require master branch of LiveView and that would break things on our production app as it wasn’t fully ready.

I like Surface, but personally I don’t have a need for it at this time. A lot of my “small, granular components” are simple helper functions that render an ~E block with a static component. I use TailwindCSS for styling so that’s handled there too. There aren’t that many actual “live” components, but when there are, that API works well enough.

1 Like