Hacker News new | ask | show | jobs
by manchmalscott 613 days ago
That last point about dropping HTMX as a dependency but keeping the benefits is why I personally find Phoenix liveview so compelling.
2 comments

I really like elixir, but I don't think i like live view.

Handling events by writing functions that need to match unchecked strings feels _super_ clumsy to me.

I know elixir processes are very very cheap, but I still don't like the idea of maintaining a stateful connection for each live view page, especially with the lack of typing.

Jumping between my markup and the 10s of different handlers in my live view is annoying too. I like the locality of behavior principal a lot.

Again, I really like elixir, but untyped languages kind of suck for dealing with the string based world of web frontends. That's why so many javascript shops take on the complexity of typescript.

Given that the event names are passed as attributes on the html elements themselves, they’re pretty limited to being strings. I don’t know how else it would be done.
I don’t know how either, but it still feels clumsy.
Yes, I'm all in on Phoenix and LiveView because of this.