Re:Show HN: Rust Library to check your Internet connectivity
by spuz on Tuesday May 28, 2019 @05:03AM
(#20028394)
Way back in the dial-up days, I wrote a program to measure the periods of time that a user was online and the corresponding phone call charges which varied depending on the time of day. This meant I had to know to the second whether or not the user was 'online'. Since the days of per-minute charges for internet are long gone, I find it hard to imagine other reasons you would need to know if the user is online rather than able to access a specific server.
Re:Show HN: Rust Library to check your Internet connectivity
by jesusprubio on Tuesday May 28, 2019 @05:59AM
(#20028637)
It's only my first crate I made to learn about the environment.
But I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)
Re:Show HN: Rust Library to check your Internet connectivity
by jesusprubio on Tuesday May 28, 2019 @06:01AM
(#20028642)
Agree, answered in other comments but the idea is I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)
Just attempt to perform the operation you want, and if it fails, give the feedback to the user that it failed. Why does it have to be more complicated than that ? (It is not a rhetorical question)