News for hackers. Stuff that matters.
Re:A Real World React – Htmx Port by mediumdeviation on Saturday October 15, 2022 @08:51PM (#33220094)
For a real world example of this, GitHub uses server-side rendered fragments. Working with low latency and fast internet in the office, the experience is excellent. Trying to do the same outside with mobile internet, and even with a 5G connection, the increased latency makes the application frustrating to use. Every click is delayed, even for simple actions like opening menus on comments, filtering files or expanding collapsed code sections.

I'm actually worried about developers in developing countries where mobile internet is the dominant way to access the Internet and GitHub is now the de facto way to participate in open source, that this is creating an invisible barrier to access.

Re:A Real World React – Htmx Port by qwertyzxcvmnbvw on Saturday October 15, 2022 @09:12PM (#33220214)
Side note: in Thailand and the Philippines, at least, mobile internet is blazing fast and not more expensive.
Re:A Real World React – Htmx Port by hungryforcodes on Saturday October 15, 2022 @11:39PM (#33220848)
That's not universally true in all areas for both countries though.
Re:A Real World React – Htmx Port by runald on Saturday October 15, 2022 @11:49PM (#33220897)
As someone living in one of those countries, I beg to differ. Cheap maybe, but mobile internet is neither fast nor stable.
Re:A Real World React – Htmx Port by kaetemi on Sunday October 16, 2022 @04:17AM (#33222027)
It's mostly the metal roofs everywhere blocking the signal.
Re:A Real World React – Htmx Port by qwertyzxcvmnbvw on Wednesday October 19, 2022 @10:33AM (#33262818)
I'm guessing that's Philippines :-] It's still been good enough for me to get work done, video calls, etc. And mostly better than hotel/coffee shop WiFi.
Re:A Real World React – Htmx Port by germandiago on Sunday October 16, 2022 @08:00AM (#33222921)
In Vietnam it is also fast.
Re:A Real World React – Htmx Port by singularity2001 on Sunday October 16, 2022 @02:18AM (#33221475)
Github does? Maybe that's the reason why I often get the error message: "page took too long to render" after ten seconds of waiting.

example: https://github.com/pannous/hieros/wiki/%F0%93%83%80 this is admittedly a complicated markdown file, however it often fails on much simpler files.

Re:A Real World React – Htmx Port by jpe90 on Sunday October 16, 2022 @03:33AM (#33221865)
that's a good reason to invest in self hosting! https://git.jeskin.net/hiero-wiki/file/%F0%93%83%80.md.html
Re:A Real World React – Htmx Port by singularity2001 on Sunday October 16, 2022 @02:57PM (#33226193)
oh, thanks for cloning! but [[links]] dont work and other (internal)[links] don't link to markdown.md.
Re:A Real World React – Htmx Port by jpe90 on Monday October 17, 2022 @01:30PM (#33236925)
gah, you're right. perhaps that could be fixed with a few clever grep/sed incantations. very interesting repo project if you're the author, by the way.
Re:A Real World React – Htmx Port by withinboredom on Sunday October 16, 2022 @04:19AM (#33222037)
I hate it when devs implement their own timeouts. That’s handled at the network level, and the socket knows if progress is being made. I was stuck using 2G data speeds for a couple of years and I loathed this behavior.
Re:A Real World React – Htmx Port by ahungry on Monday October 17, 2022 @06:31PM (#33240353)
Sometimes the infrastructure causes this. For a long time (and now?) AWS Api Gateway has a hard cap of 30 seconds, so the sum of all hops along the way need to remain under that.
Re:A Real World React – Htmx Port by withinboredom on Tuesday October 18, 2022 @03:55AM (#33244282)
A timeout at that level should mean “no progress” for 30s, not that a request/response needs to finish in 30s. An naive timeout that a dev randomly implements might be the latter and would be the source of my past frustration.
Re:A Real World React – Htmx Port by cyco130 on Sunday October 16, 2022 @02:42AM (#33221572)
I love HTMX and similar technologies but I think GitHub is a particularly telling example of what can go wrong with these techs. The frontend is so full of consistency bugs that it's appalling: https://youtu.be/860d8usGC0o?t=693