by untog · 14y ago · 0 comments
I've been making web sites for years, so the idea of a server running a database and a back-end platform that works over HTTP is anything but alien. I'm working on an app right now and got the backend stuff working very quickly.
The client-side was an entirely different matter, however- synchronising local data with remote was a challenge, but easily doable. Coping with zero network connectivity, patchy geolocation, creating a touch-based UI.... that is the stuff we haven't faced before, and that's the stuff that is the most challenging.
I've written a number of non-trivial IOS apps that are heavily server based. I've done both the server side (Ruby Sinatra API App, MongoDB, Varnish) and the client side (Obj-C naturally) and consider myself equally proficient in both.
The client generally takes much longer to write and debug than the server due to all the little issues with having a smooth, non blocking UI, network availability, juggling data and managing resources that you have with the client app. Not to mention any custom UI controls you make.
If you have a crappy server API this pushes a lot more complexity onto the client, or it just makes for more ways to have different failures. A well designed server API works best with a well designed client, but being messy on either means more work on the other.
How was it both a challenge and easy? Do you mean once you discovered the correct method the implementation was easy?
The actual implementation was relatively simple though, and worked well. That said, I'll admit the sync functionality my app needs is about as simple as it gets. I'm sure there are more complex scenarios out there.