Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

21
  • 5
    \$\begingroup\$ Instead of true and false, I recommend allowing any of our defaults for truthy and falsiness. Also, by internet, do you mean the network outside your local network? Do programs still have to work if say google is down or any other large site? \$\endgroup\$ Commented Jan 13, 2017 at 13:34
  • 5
    \$\begingroup\$ Byte count is usually done in the language's native or most convenient encoding, which is not always UTF-8. Unless you a have a good reason to enforce UTF-8, I think the encoding should be left at the programmer's choice \$\endgroup\$ Commented Jan 13, 2017 at 14:04
  • 5
    \$\begingroup\$ I see almost everyone is using g.gl / http://g.gl/, but to. / http://to./ seems to be one byte shorter (not all languages see it as a valid url through). \$\endgroup\$ Commented Jan 13, 2017 at 14:28
  • 12
    \$\begingroup\$ Commodore Basic: PRINT "0" \$\endgroup\$ Commented Jan 13, 2017 at 19:24
  • 3
    \$\begingroup\$ The very machine I'm typing this at, is technically a part of the "Internet", as it can be accessed from the outside (via NAT and port forwarding). So, if you think of it, the "internet detection" script can probably be reduced to "true" :) \$\endgroup\$ Commented Jan 13, 2017 at 19:55