Actually, a bunch of them probably don't even check for response code.
Edit: If dataaccessd is really the iOS native CALDAV integration, that's a bit annoying. Of all people, they should be able to handle that correctly.
Actually, a bunch of them probably don't even check for response code.
Edit: If dataaccessd is really the iOS native CALDAV integration, that's a bit annoying. Of all people, they should be able to handle that correctly.
if(200) { // Do stuff } else { // Try again later }
That's like an "idiot-filter" interview question. "Is the following code valid?"Then "where do you draw the line?". Sometimes if(200){}else{} is plenty.
if(200){...}else{retry} is never plenty.
What else would you do then? These are not crazy expectations. Exponential backoff might be reasonable, but I'd argue that's part of "else{retry}" since it's inherently retrying.
Sure they are. Choosing to communicate over HTTP means allowing for the presence of proxies between "your" client and "your" server. In HTTP, you don't control the whole path, even if you control both sides.
VPNs can also exist, but they sometimes send custom error status codes[1]. How do you handle those? Retry if `code % 3 == 1`? Will your program even be informed if the VPN connection is restored, or will you have to just blindly retry until it works?
[1]: http://compnetworking.about.com/od/vpnsetup/tp/common-vpn-er...
[1]: It just struck me as one of those "low bar" technical interview questions.
// ==== Section 1: Code ==== {{{
BLAH
// ========================= }}}
Granted, since this is Vim-specific, you usually only see it used in Vim plugins, because you're unlikely to have someone editing with another editor.