Readit News logoReadit News
ahmaman commented on Patterns for Building Realtime Features   zknill.io/posts/patterns-... · Posted by u/zknill
rozap · a year ago
I've been writing elixir for years (i think since 0.14?) and have been writing liveview for years. I'm all in on elixir in general, but I'm not sure I'd use liveview for another big project. Maybe it's just rose colored glasses because the TS/React world certainly has its own issues, but I think TS/react and regular old phoenix is a sweet spot. The composability of live view components still has a number of footguns (duplicate IDs, etc) and I think it has higher coupling than a nicely structured react app. You also have to treat liveviews and components fairly differently. All these design choices are for good reason, but it ends up being annoying in a large app. Also in deeply nested trees with lots of component reuse, static typing from TS really helps with refactors. As the projects grew to be large, I think I'm more productive with phoenix/TS than I am with phoenix/liveview.

I think there's a certain class of small to medium sized application (I'm building several) where liveview can be a good fit, but after writing it professionally and in hobby projects for several years, I'm less convinced that it's a great solution everywhere.

ahmaman · a year ago
Curious to hear if anyone have experience using Svelte together with LiveSvelte [0], as described in this blog post [1]?

In theory, it sounds like this could be the sweet-spot for using the Javascript ecosystem where its required where LiveView fall short.

[0]: https://github.com/woutdp/live_svelte

[1]: https://dockyard.com/blog/2024/03/14/harnessing-liveview-and...

ahmaman commented on Ask HN: What web stack would you use for startup, and why?    · Posted by u/capl
ahmaman · 2 years ago
I would use Elixir (Phoenix + liveView), to me its the most productive stack for web apps at the moment.

You can have SPA like user experience without building a separate frontend & backend. That simplifies things ALOT!

For data persistence, I would consider SQLite otherwise go with Postgres.

u/ahmaman

KarmaCake day169February 2, 2019
About
Freelance fullstack software engineer based in Finland.

Email: hello@mansour.fi

Twitter: @ahmaman_

Blog: mansour.blog

View Original