{"id":7526,"date":"2013-06-15T16:26:22","date_gmt":"2013-06-15T21:26:22","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=7526"},"modified":"2013-06-15T16:26:24","modified_gmt":"2013-06-15T21:26:24","slug":"reachability","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2013\/06\/15\/reachability\/","title":{"rendered":"Reachability"},"content":{"rendered":"<p><a href=\"http:\/\/www.mikeash.com\/pyblog\/friday-qa-2013-06-14-reachability.html\">Mike Ash<\/a>:<\/p>\n<blockquote cite=\"http:\/\/www.mikeash.com\/pyblog\/friday-qa-2013-06-14-reachability.html\"><p>All of this is to say that your code must be <em>correct<\/em> in the absence of reachability, but adopting reachability can greatly enhance usability.<\/p><\/blockquote>\n<p>It&rsquo;s interesting that several commenters suggest only using the reachability API if the actual network request fails. As I recall, originally we were supposed to use reachability first, because some requests aren&rsquo;t worth causing the modem to start dialing the phone.<\/p>","protected":false},"excerpt":{"rendered":"<p>Mike Ash: All of this is to say that your code must be correct in the absence of reachability, but adopting reachability can greatly enhance usability. It&rsquo;s interesting that several commenters suggest only using the reachability API if the actual network request fails. As I recall, originally we were supposed to use reachability first, because [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[31,30,476,71],"class_list":["post-7526","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-mac","tag-networking","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=7526"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7526\/revisions"}],"predecessor-version":[{"id":7527,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/7526\/revisions\/7527"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=7526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=7526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=7526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}