Hacker News new | past | comments | ask | show | jobs | submit | baskind's comments login

Here you go. Opens end of the week and over the weekend: https://maps.app.goo.gl/v3HFoRTtUPoug8yq8?g_st=com.google.ma...


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.


When Stimulus/Turbo was first announced, I was really hoping it would help with the problems that the author describes.

Unfortunately, Stimulus doesn’t actually provide an elegant way to keep state on the client. “A stimulus application’s state lives as attributes in the DOM.” This means that it’s not better than vanilla JS or jQuery.

Edit: I haven’t used Stimulus for a real project; it’s possible their values and change callbacks are a better experience than I originally imagined.


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?


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.


Buying books doesn’t imply reading them (talking from personal experience)


Not buying books doesn't imply not reading them (libraries!)


I too have a "living" library haha


As someone from Belarus, this is not true at all.

While Lukashenko had some support prior to Aug 2020 election, it dropped to <5% at very best following his ruthless attack and torture of citizens and peaceful protestors.

The only people supporting him now are siloviki, i.e. military and police heads who directly benefit from him remaining in power. Although many within the police elites wish him out as well.


It is generally hard to reason about public support in an authoritarian state, because such states largely control the access to information. So yes, people do hold opinions, but how do they go about forming these opinions? How many are in a position to make an informed decision?


This is an interesting topic btw. As someone who grew up in USSR I would have to note that nobody took soviet propaganda seriously. People knew media is lying and took all information with a HUGE grain of salt. Meanwhile information is interpreted, silenced and manipulated in (at least mainstream) media all around the world. But people there often take that information for granted because they have trust in there media and believe they live in a free world. And cmon I watch western news a lot and it's full of NLP stamps and very strong opinions which you wouldn't expect from professional journalism but it's just there. The sad truth is that we all live in dystopia. Especially with modern technologies. No KGB or stasi ever dreamed of such having information about peoples lives as some facebook(or government agencies) now have. The scary thing is not surveillance it's mass surveillance. When some opposition can be detected until even they did something wrong just by some patterns like books they read or visiting hackers news.


> How many are in a position to make an informed decision?

State TV was not very popular even when I lived there some 20ish years ago, and now everyone and their grandma gets their news from Telegram. Telegram usage dropped a bit because many are afraid of having it on their devices, but it is still by far the most popular way of getting news.

It's really hard to estimate the number of those who continue watching state TV. The least educated and people with disabilities watch easy-to-reach Russian propaganda channels as much if not more. Those are at least captivating ;-).


I do wonder, and apologies if this is naive, but with Russian being the de facto official language in Belarus, is it clear that the siloviki are even Belarusian, not Russian? Would you know if the row of riot police were Russian?

I heard this narrative before, and it strikes me as odd that you would find enough people to bully its own nation into submission - physically in the streets.

But of course that happened in Poland too, where Russian was never a widely spoken language, so clearly it’s possible.


Oh yes, it's totally possible, and happened in Ukraine as well. Generally, a person is not inclined to think what they're doing is wrong, if their paycheck depends on it.


What do you think Belarus will be like in 2 years? Civil war? Coup? Lukashenko exiled or still in power? Democracy? Russia invading?


Russia won't have to invade, it's more likely Belarus will be willingly annexed.


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.


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

But it won't happen until Lukashenko thinks there is benefit for Lukashenko. On the bottom line, he doesn't care if it benefits Putin or not.


Where do you get that number? 5%? From Belsat tv? I'm not from Belarus but I think you are detached from reality. Go to some village or factory where people drink CHERNILA. They all would support Lukashenko. And for a good reason - many would lose their jobs. Because their factory producing some military electronics for Russian tanks would close after losing access to Russian market.


Please don't spread Kremlin misinformation. Roman is a journalist and never was part of Azov neo-nazi group: http://euromaidanpress.com/2021/05/26/protasevich-is-a-dissi...


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.


Indeed, Kremlin propaganda runs like clockwork.


Would be equally interesting to know how much it cost them to recover that much gold from that many devices.


it is a profitable venture there are companies that recover precious metals from computer equipment



but at the scale he is doing it, he looses money


That's what a "hobby" is: a money-losing activity.

A "business" is a money-making hobby.


Sort of. Those businesses have externalities in worker unsafety and pollution.


Really great idea. Reminds me of Ember app by Realmac, except this is for the whole filesystem. A very useful addition would be ability to add tags and sort files/notes by tags.


Can anyone share screenshots?



Velocity.js http://julian.com/research/velocity/ is pretty damn good already and just 12kb Gzipped.


Competition is healthy. :) https://www.npmjs.com/package/tweenr

Besides, different authors will tackle the problem a little differently.


This is under 4kb.


Not saying it's doesn't look nice, but certainly waaay behind Google's Material Design in terms of solidness and clarity IMHO. IBM is just trying to stay 'trendy' IMHO.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: