Readit News logoReadit News
baskind commented on LiveView Is Best with Svelte   blog.sequin.io/liveview-i... · Posted by u/keturakis
sph · 2 years ago
Yeah I use Stimulus and Live View together as well. It is the right level of complexity, while I feel Svelte deals with a lot of stuff which is not even an issue when paired with LV. All you need is vanilla JS or a thin layer on top of it, not an entire framework. You will not have to write a lot of JS after all.

My production app has no more than 200 lines of JS, and I could probably get rid of a couple Stimulus controllers. Live View is that good. I also made a very hacky Stimulus-Live View hook adapter, so my Stimulus controller can send events directly to the LV process.

EDIT: Live View does not require you to run geo-distributed servers at all, unless you have bought into the fly.io kool aid a little too much. And it deals with disconnections beautifully. I didn't even have to do anything to support zero-downtime updates. The client loses connection to the WebSocket and reconnects to the new version, restores the state, all that out of the box automatically. What more do you need?

baskind · 2 years ago
I have the same view of an app implemented with Rails+Turbo and a duplicate in Elixir+LiveView.

Performance is comparable when I am close to the server (elixir is slightly faster), but when on another continent any content changes/navigation over websockets suddenly feel very laggy, while navigation over HTTP in the supposedly slower Ruby+Rails is actually consistently fast.

I’ve only recently discovered this as I went travelling to another continent, so will do more perf testing.

But the nature of the always-connected websockets hasn’t been a pleasurable one for me: for instance, a LiveView process crashes and you lose all the data in a big form, unless you write glue code for it to restore. And the experience of seeing the topbar getting stuck in the loading state the second your internet connection is spotty or if you are offline just gives me anxiety as a user.

baskind commented on LiveView Is Best with Svelte   blog.sequin.io/liveview-i... · Posted by u/keturakis
baskind · 2 years ago
Nice solution!

In my app, I use reusable Stimulus controllers alongside LiveView, and it works seamlessly as well.

On a general note, while it's a pleasure to build with LiveView, the more I use it in real-life scenarios, the more I realize the benefits of stateless HTTP frameworks like Hotwire, which feel more performant and resilient to reconnections, and avoid the need to place more servers close to users for stability.

baskind commented on TikTok is changing the way books are recommended and sold   economist.com/culture/202... · Posted by u/sohkamyung
Eumenes · 2 years ago
interesting, I didn't think users of tiktok read books.
baskind · 2 years ago
Buying books doesn’t imply reading them (talking from personal experience)
baskind commented on Belarus has temporarily banned most of its citizens from leaving   bbc.com/news/world-europe... · Posted by u/hheikinh
1270018080 · 5 years ago
What do you think Belarus will be like in 2 years? Civil war? Coup? Lukashenko exiled or still in power? Democracy? Russia invading?
baskind · 5 years ago
Civil war is impossible, the nation is united and doesn't want violence (all protests so far have been peaceful).

Coup would've already happened if it could, there is very little chance for it now. Lukashenko has spent decades surrounding himself with loyalist.

With silence and little pressure from Europe and the US towards both Belarus and Russia (apart from symbolic "concerns"), things are unlikely to change.

As long as Putin is in power, Lukashenko will remain in power.

There are many political points for Putin to gain within Russia by annexing Belarus, so that's something that could very well happen in the next few months.

Putin and Lukashenko have had several meetings in regards to Belarus integration over the last few months, with Lukashenko getting $1.5B in donations to support his regime after these meetings. So this seems like the likely scenario. And the time frame is much shorter <12mo.

baskind commented on Belarus has temporarily banned most of its citizens from leaving   bbc.com/news/world-europe... · Posted by u/hheikinh
ehsankia · 5 years ago
I find it funny how every time a dissident angers a dictator, suddenly a bunch of contextless statements like that start circulating all over the internet, like clockwork.
baskind · 5 years ago
Indeed, Kremlin propaganda runs like clockwork.

u/baskind

KarmaCake day143April 27, 2013
About
Founder and CEO @ campusboard.org

We are fundraising: https://www.linkedin.com/feed/update/urn:li:activity:6803638196388290560/

Reach out: seva [at] campusboard.org Twitter: @baskind

View Original