I unintentionally did this recently on the hardware side by messing up crimping my internet cable and not pushing it all the way. Some things like Teams were surprisingly resilient even with 8% packet loss, probably due to its realtime nature
> Discord will sometimes just kick you to a loading screen if it thinks your internet isn’t working. If it doesn’t do that, it works pretty okay.
On Android, falling back to EDGE/EGPRS makes Discord just not work at all. I get it - downloading profile pictures and media is something you cannot realistically expect, but being able to receive notifications and text content on currently selected channel is a problem that should have been solved way before $current_year.
From the article:
> If you want to test services running on localhost, replace enp3s0 with lo. Though some other programs on your system may Not Like It if localhost is slow, so do that at your own risk :3 (Be sure to replace enp3s0 with lo on the undo script!)
In reality, lo will hate to be slow, esp. any application working through local network sockets (cough X11 cough). I experienced this in the olden times of Fedora 4. Somehow I (or a bug) managed to route local network sockets through my eth0. The more load the card has, the slower the X11 applications were. Esp. during launch.
I had to add another card and use it for external traffic, leaving eth0 free.
> and a complete 15-second connectivity dropout every few minutes?
> I can’t seem to emulate the connection dropout, but the 10% packet loss should be harsh enough. ... Still, it’s Bad Enough.)
The total dropout is surprisingly bad, probably because it kills a lot of "are we alive?" checks... then when things come back, they all hammer the crappy link and everything just dies in a way that all too often doesn't recover.
Seriously, more developers need to eat their own dogfood on the subway, or in the back of a grocery store that's surprisingly well RF-shielded, or in a modern steel-reinforced-concrete building but without WiFi (so you're on cellular data which can't quite make it through the building skin), or....
Or on Inmarsat BGAN, where data costs $6/MB (yes, six dollars per megabyte).
The design considerations for systems used on a $6/MB network, where you don't want to transmit anything unless you really have to, will be different from the ones on a patchy cellular network, where you want to keep sending packets to see if you're online yet. It's impossible to make an app that works well on both types of networks without knowing which one it's on - unless it's a fully offline app.
Applications designed to work well over satellite or narrowband radio networks (which are inherently patchy) work just as well on cellular networks.
It's an extremely common requirement for public safety applications, such as blue force tracking and PTT voice for the application to be able to use either depending on what's available at that moment.
I'm not sure if the author will be reading this, but I was just curious after reading it's pronoun page, it says it prefers to refer to itself in the third person inanimate, but uses first person pronouns in this article. Are the pronoun choices new, or was there some other choice made specifically for this article?
That pronoun page is very hard to follow so who knows.
As I understand it, generally it prefers being referred to in the third person with inanimate it/its pronouns, including by itself, but in a professional setting they and she can be acceptable. And to clarify, I'm not trying to "call it out" on its mistake or something, I'm just trying to understand
Is there a html standard thingy to tell the browser "This resource is optional, don't load it if the connection is already slow"? I'm thinking of optional fonts, JS or maybe changing the quality of images. You could probably do this in JS, but it'd be pretty helpful if there was a standard for this
I often experience this sort of connection in Germany, either because of our outdated infrastructure or because my data plan ran out and I’m on the almost-no-internet speed.
I test for these things. Developer Tools lets you see how your website performs on such connections, and how long it takes to get a usable page.
I always dread the moment we cross the French German border by train when visiting my family. The internet cuts out basically immediately, it's really impressive, especially on the Saarbrücken route.
Second that. The state of internet in Germany is what always gets me thinking about how things will work when speed is slow, connections are spotty or you get offline. So many problems with Spotify in particular, as even when it detects that it is offline, it still insists to try fetching assets related to content that was already downloaded.
It was really weird going back to Europe and have my phone on 3g half the time. I just never see that in Japan. It’s either 4/5g or nothing at all.
It's very different on location in Europe. Where I live I have realized we are a bit spoiled. I was biking through the (small) forest outside Bonn in Germany. This used to be the capital during the east germany thing. It was impossible to access internet for the GPS game I'm playing (turfgame.com) so I had to turn off GPS and get back to the road to be able to take the zones. This keeps happening the whole time even driving around on smaller roads.
South sweden this almost never happens, here in north Sweden in can happen that you drop down to 2G and can only do SMS but then you really have to go deep into the forests. Up in the mountains you will lose connection completely though. Especially now when they shut down the older networks that has longer reach.
On macOS, there is (was?) "Network Link Conditioner", used to be part of XCode.
It still exists and is a part of the “Additional Tools for Xcode.”
It is also builtin on iOS when the developer mode is active.
Side node: It’s Xcode (lowercase c).
(Edited to put the Xcode note last.)
You put the most interesting part of your comment the last.
BTW, it's "Additional Tools for Xcode", without the final dot (sorry I couldn't resist) :-)
No, the dot was inside the quotes on purpose. If you want to go the typographic way, you have the wrong kind of single quotes in your message (' vs. ’) and of course the wrong kind of double quotes. Having the comma outside the quotes is considered ok-ish, especially in the programming world, but it should usually be inside.
Regarding the missing dot for your final sentence it’s alright; the smiley can sometimes be considered a replacement for it.
Depending on your typographic conventions, it's customary to include final punctuation inside of parens and quotations.
It irks computer programmers, I guess, but people used to do this for aesthetic reasons for books.
Yup. That’s why I put it inside the quotes.
> Having the comma outside the quotes is considered ok-ish, especially in the programming world, but it should usually be inside.
I wouldn't go so far with the 'should'. The recommendation only really applies when you are typesetting a book (specifically a novel) or something like that. Text on the web is still so ugly, that isolated demands for aesthetics seem a bit misguided.
netem is especially useful when paired with network namespaces, that way you can selectively apply different profiles to different process trees.
Impressive that this same person has 2 front page HN articles in one day. I don't think I've seen that before.
I've noticed this effect pretty often, as one high-profile article leads people to go looking at the author's other work and then submit it.
I guess it was quite common in the olden days?
This reminds my of 'chaos engineering' and the approach that Shopify took with 'Toxiproxy.' Toxyproxy is this elegant system that provides a REST API for spawn proxy servers. The proxy instances can have 'toxics' added to them that change the connections properties. E.g. you can add latency, packet drops, even experiment with slicing up packets. It allows for something like writing deterministic tests that test whether your software works under many different network conditions. I think its honestly a really smart design.
Not only should developers design for slow internet, they should design for no internet. Shockingly, many parts of the US don't have solid cell phone coverage. Even more cell phone towers have broken uplinks or broken configurations; your phone connects to the cell, but no data flows. Cells get overloaded - at fun things like sports events and concerts. They also get overloaded at very not-fun events like natural disasters where everyone is standing around the (very overloaded) Cell On Wheels tower, trying to get a message out to their loved ones that they're OK or need help, or trying to reach their insurance company, or access a government website to get info about disaster relief, etc.
It's infuriating how many smartphone apps will show you a screen full of the information you need while online, and then when they lose internet connectivity due to a dead spot in cell coverage, yank it away leaving you staring at a blank screen with a spinning progress indicator.
It's also infuriating how so many apps are completely, totally non-functional if they don't have internet, if only because they're not actually a native smartphone app, but a website being run in gussied up web browser instance.
Even modern desktop and mobile browsers are bad at this.
Me: I’m on a plane (with no data), good opportunity to go through all my open tabs of articles I haven’t read yet.
I remember in the 00s Firefox or Opera had an nice feature to load pages exclusively from cache. I used this feature a lot to check all pages I had surfed through when my parents blocked the internet access to encourage me to get back in reality. Ohh sweet times..
Yeah like WTF. It's even teasing you by momentarily showing the already rendered page but then goes "hey wait let me try to reload the page just for shits and giggles" only to show you that "hey can't reach the server, are you offline?" a second later.
I recently had to rely on the wifi hotspot from my mobile phone for a few days, because of an ill-timed switch of home broadband providers.
I found many things that I wanted to do infinitely more frustrating on a spotty connection, then on no connection.
Government and public services have to design for it yes. Not sure if WCAG covers it but seems not.
Private companies issue is that people with slow internet or no internet are not customers for them. It costs loads of money to implement decent offline experience for a web app and there is no one to pay for it.
I unintentionally did this recently on the hardware side by messing up crimping my internet cable and not pushing it all the way. Some things like Teams were surprisingly resilient even with 8% packet loss, probably due to its realtime nature
> Discord will sometimes just kick you to a loading screen if it thinks your internet isn’t working. If it doesn’t do that, it works pretty okay.
On Android, falling back to EDGE/EGPRS makes Discord just not work at all. I get it - downloading profile pictures and media is something you cannot realistically expect, but being able to receive notifications and text content on currently selected channel is a problem that should have been solved way before $current_year.
From the article:
> If you want to test services running on localhost, replace enp3s0 with lo. Though some other programs on your system may Not Like It if localhost is slow, so do that at your own risk :3 (Be sure to replace enp3s0 with lo on the undo script!)
In reality, lo will hate to be slow, esp. any application working through local network sockets (cough X11 cough). I experienced this in the olden times of Fedora 4. Somehow I (or a bug) managed to route local network sockets through my eth0. The more load the card has, the slower the X11 applications were. Esp. during launch.
I had to add another card and use it for external traffic, leaving eth0 free.
> and a complete 15-second connectivity dropout every few minutes?
> I can’t seem to emulate the connection dropout, but the 10% packet loss should be harsh enough. ... Still, it’s Bad Enough.)
The total dropout is surprisingly bad, probably because it kills a lot of "are we alive?" checks... then when things come back, they all hammer the crappy link and everything just dies in a way that all too often doesn't recover.
Seriously, more developers need to eat their own dogfood on the subway, or in the back of a grocery store that's surprisingly well RF-shielded, or in a modern steel-reinforced-concrete building but without WiFi (so you're on cellular data which can't quite make it through the building skin), or....
Or on Inmarsat BGAN, where data costs $6/MB (yes, six dollars per megabyte).
The design considerations for systems used on a $6/MB network, where you don't want to transmit anything unless you really have to, will be different from the ones on a patchy cellular network, where you want to keep sending packets to see if you're online yet. It's impossible to make an app that works well on both types of networks without knowing which one it's on - unless it's a fully offline app.
Applications designed to work well over satellite or narrowband radio networks (which are inherently patchy) work just as well on cellular networks.
It's an extremely common requirement for public safety applications, such as blue force tracking and PTT voice for the application to be able to use either depending on what's available at that moment.
I'm not sure if the author will be reading this, but I was just curious after reading it's pronoun page, it says it prefers to refer to itself in the third person inanimate, but uses first person pronouns in this article. Are the pronoun choices new, or was there some other choice made specifically for this article?
That pronoun page is very hard to follow so who knows.
As I understand it, generally it prefers being referred to in the third person with inanimate it/its pronouns, including by itself, but in a professional setting they and she can be acceptable. And to clarify, I'm not trying to "call it out" on its mistake or something, I'm just trying to understand
Is there a html standard thingy to tell the browser "This resource is optional, don't load it if the connection is already slow"? I'm thinking of optional fonts, JS or maybe changing the quality of images. You could probably do this in JS, but it'd be pretty helpful if there was a standard for this
I often experience this sort of connection in Germany, either because of our outdated infrastructure or because my data plan ran out and I’m on the almost-no-internet speed.
I test for these things. Developer Tools lets you see how your website performs on such connections, and how long it takes to get a usable page.
I always dread the moment we cross the French German border by train when visiting my family. The internet cuts out basically immediately, it's really impressive, especially on the Saarbrücken route.
Second that. The state of internet in Germany is what always gets me thinking about how things will work when speed is slow, connections are spotty or you get offline. So many problems with Spotify in particular, as even when it detects that it is offline, it still insists to try fetching assets related to content that was already downloaded.
It was really weird going back to Europe and have my phone on 3g half the time. I just never see that in Japan. It’s either 4/5g or nothing at all.
It's very different on location in Europe. Where I live I have realized we are a bit spoiled. I was biking through the (small) forest outside Bonn in Germany. This used to be the capital during the east germany thing. It was impossible to access internet for the GPS game I'm playing (turfgame.com) so I had to turn off GPS and get back to the road to be able to take the zones. This keeps happening the whole time even driving around on smaller roads.
South sweden this almost never happens, here in north Sweden in can happen that you drop down to 2G and can only do SMS but then you really have to go deep into the forests. Up in the mountains you will lose connection completely though. Especially now when they shut down the older networks that has longer reach.
On macOS, there is (was?) "Network Link Conditioner", used to be part of XCode.
It still exists and is a part of the “Additional Tools for Xcode.” It is also builtin on iOS when the developer mode is active.
Side node: It’s Xcode (lowercase c).
(Edited to put the Xcode note last.)
You put the most interesting part of your comment the last.
BTW, it's "Additional Tools for Xcode", without the final dot (sorry I couldn't resist) :-)
No, the dot was inside the quotes on purpose. If you want to go the typographic way, you have the wrong kind of single quotes in your message (' vs. ’) and of course the wrong kind of double quotes. Having the comma outside the quotes is considered ok-ish, especially in the programming world, but it should usually be inside.
Regarding the missing dot for your final sentence it’s alright; the smiley can sometimes be considered a replacement for it.
Depending on your typographic conventions, it's customary to include final punctuation inside of parens and quotations.
It irks computer programmers, I guess, but people used to do this for aesthetic reasons for books.
Yup. That’s why I put it inside the quotes.
> Having the comma outside the quotes is considered ok-ish, especially in the programming world, but it should usually be inside.
I wouldn't go so far with the 'should'. The recommendation only really applies when you are typesetting a book (specifically a novel) or something like that. Text on the web is still so ugly, that isolated demands for aesthetics seem a bit misguided.
netem is especially useful when paired with network namespaces, that way you can selectively apply different profiles to different process trees.
Sounds useful for some tests that I have to do this week for a bug at $work. And looks like `tc` works with Docker too, to avoid messing with my local wnv, e.g. https://medium.com/@kazushi/simulate-high-latency-network-us...
Impressive that this same person has 2 front page HN articles in one day. I don't think I've seen that before.
I've noticed this effect pretty often, as one high-profile article leads people to go looking at the author's other work and then submit it.
I guess it was quite common in the olden days?
This reminds my of 'chaos engineering' and the approach that Shopify took with 'Toxiproxy.' Toxyproxy is this elegant system that provides a REST API for spawn proxy servers. The proxy instances can have 'toxics' added to them that change the connections properties. E.g. you can add latency, packet drops, even experiment with slicing up packets. It allows for something like writing deterministic tests that test whether your software works under many different network conditions. I think its honestly a really smart design.
Very cool.
For future me: https://github.com/Shopify/toxiproxy
Not only should developers design for slow internet, they should design for no internet. Shockingly, many parts of the US don't have solid cell phone coverage. Even more cell phone towers have broken uplinks or broken configurations; your phone connects to the cell, but no data flows. Cells get overloaded - at fun things like sports events and concerts. They also get overloaded at very not-fun events like natural disasters where everyone is standing around the (very overloaded) Cell On Wheels tower, trying to get a message out to their loved ones that they're OK or need help, or trying to reach their insurance company, or access a government website to get info about disaster relief, etc.
It's infuriating how many smartphone apps will show you a screen full of the information you need while online, and then when they lose internet connectivity due to a dead spot in cell coverage, yank it away leaving you staring at a blank screen with a spinning progress indicator.
It's also infuriating how so many apps are completely, totally non-functional if they don't have internet, if only because they're not actually a native smartphone app, but a website being run in gussied up web browser instance.
Even modern desktop and mobile browsers are bad at this.
Me: I’m on a plane (with no data), good opportunity to go through all my open tabs of articles I haven’t read yet.
Browser: great time to try refreshing the page!
Firefox has an option to set it offline
https://superuser.com/questions/214132/simple-way-for-browsi...
I remember in the 00s Firefox or Opera had an nice feature to load pages exclusively from cache. I used this feature a lot to check all pages I had surfed through when my parents blocked the internet access to encourage me to get back in reality. Ohh sweet times..
Yeah like WTF. It's even teasing you by momentarily showing the already rendered page but then goes "hey wait let me try to reload the page just for shits and giggles" only to show you that "hey can't reach the server, are you offline?" a second later.
I recently had to rely on the wifi hotspot from my mobile phone for a few days, because of an ill-timed switch of home broadband providers.
I found many things that I wanted to do infinitely more frustrating on a spotty connection, then on no connection.
Government and public services have to design for it yes. Not sure if WCAG covers it but seems not.
Private companies issue is that people with slow internet or no internet are not customers for them. It costs loads of money to implement decent offline experience for a web app and there is no one to pay for it.