2 ms·
In The Good Ol' Times, I would have replied "let's check the TLD", but now that list is basically trending to include the entire English dictionary... so I gues
by toyg 5y ago
In The Good Ol' Times, I would have replied "let's check the TLD", but now that list is basically trending to include the entire English dictionary... so I guess the only response these days is "ask DNS". So we've already gone from "pattern-match a string" to "pattern-match then make network calls", which (as anyone who's done any network work knows) also requires managing a bunch of possible/likely error states (offline, timeout, partial response, response format, etc etc). So yeah, nothing is as easy as it looks.
- AstralStorm 5y agoCan't quite do this most of the time due to privacy concerns. Leaking random URL-looking text to the network is a big no.
- toyg 5y agoSo now we have to ask for user consent (installation time? first run?) and respond accordingly, adding another piece of UI... but it will only take an hour, right...?
- dkdbejwi383 5y agoYou probably also want a setting to detect slow networks and disable it there in case the user is tethering etc.