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.
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.