Replying to @cablelounger
Very interesting!
I suspect we'll look back at this point in history and marvel at our lack of ability to communicate empathetically. It's worse in political discourse - tribalistic, polarised, lacking nuance and any effort to understand "the other side" when there's often more in common than not.
Things are rarely black & white (even tech or political opinions), and platforms like this don't usually help encourage civil discourse.
1
1
9
Replying to @ben_codez @cablelounger
Thanks for putting that together - it is a much neater solution, admittedly.
You should suggest it to the X maintainers! 😉
I also concede around the terminology.. in my mind that type of behaviour is in the same vein/bracket as "optimistic UI" although it's not giving you a success result as such, and therefore makes sense to be called something else.
Also, I was never "dying on the hill" with this particular example, it was just the first thing that came to mind when the mention of "All optimistic updates are bad!!!" came up in the OP.
If I were to implement it in a utopian scenario, I wouldn't object to my original approach but with a "promise" of a sync when connectivity is available once more.
There's some interesting stuff going on in the whole "offline first" world, but it's also still an unresolved problem.
Also, thanks for discussing it civilly, it makes for more interesting, intelligent conversation than hurling insults around - even if we might disagree.
And as a final note, another thing that makes me definitely not like a flat earther, is that I'm completely open to changing my mind or being proven wrong.
1
1
17
Replying to @ben_codez @cablelounger
Just looking at it now - but one correction - I didn't say posting something was the same thing.
2
1
22
Replying to @cablelounger
Also, a proper "local first" type scenario would queue up the event and sync it properly when back online.
That's the bar we should be aspiring to.
11
Replying to @cablelounger
How would you deal with the "like" UX issue?
You press the heart, then what does the user see?
Both online (fast connection), slow (3G, Edge, or barely any signal at all), and offline?
1
23
Replying to @Maximumatheist
We could theoretically hate the concept of god, I guess (due to all the harm it brings).
2
26
Replying to @ben_codez @cablelounger
And I'm not saying the X engineers are the best in the world necessarily, but that's literally how it works on here now.
1
27
Replying to @cablelounger
Not far off, yes. It's a matter of importance, on a case by case basis.
Is it negligent and wrong to say a bank transaction or drone strike has completed successfully before confirmed? Of course.
If I close my browser after liking a post and it doesn't sync to the server, is that the end of the world?
No. The user experience gains override the potential infrequent loss.
2
29
Replying to @aerojeyenth @DelaneyGillilan
Fair. And it's on my todo list to check it out in more detail!
1
1
11
Replying to @DelaneyGillilan @aerojeyenth
Why the aggression? FFS, it's X - we're just having a technical discussion.
Be respectful or keep quiet!
1
13
Replying to @DelaneyGillilan @aerojeyenth
Neither am I. I’m an atheist, humanist and loathe the anti vax movement.
1
13
Replying to @aerojeyenth @DelaneyGillilan
I just don't think "one size fits all" is a solution to the problem of web front/backend integration.
Datastar claims to solve it, but I'm not sold.
It's still an unsolved problem IMO.
"Optimistic UI" is an ambiguous term, and this thread has been tricky as it's not been tech focussed or civil (as usual with @DelaneyGillilan ) and the devil is in the details depending on the exact use case/implementation and what is actually meant.
3
19
Replying to @aerojeyenth @DelaneyGillilan
It's not a flaw, of course.
Everything belongs in a certain place, depending on what the task is.
But trying to force everything into one side or the other is a mistake.
1
18
Hey @jullerino @t3dotcodes any plans to make this panel "widenable"? 🙂
Loving T3 code btw!
21
Replying to @DelaneyGillilan @aerojeyenth
Of course it matters, but if the weakest link is the connection speed then it makes no difference anyway.
I shouldn’t have to explain this.. I think you know I’m right but you’re just ruffled because it’s a clear flaw in the whole datastar, server first philosophy.
2
29
Replying to @DelaneyGillilan @aerojeyenth
Really?! 🤣
It doesn’t matter how “fast the backend is” if the connection is slow. Are you really taking this tack?
You’ve previously said that “spinners are a solved problem”. Yet now you’re advocating for them? Or do you mean some other “indicator”?
2
17

