4 ms·
From my conversations with iOS developers, those libraries don't come close to the robustness and simplicity of equivalent java/android libraries like retrofit,
by makeramen 12y ago
From my conversations with iOS developers, those libraries don't come close to the robustness and simplicity of equivalent java/android libraries like retrofit, gson/jackson, coupled with RxJava... Etc.
I do think a large part of that is due to lack of generics that allow the code to recursively deserialize nested classes and collections without any extra boilerplate other than the class definitions.
I know for a fact that mantle just can't do that with obj c in its current form.
- mpweiher 12y ago>I do think a large part of that is due to lack of generics that allow the code to recursively deserialize nested classes and collections without any extra boilerplate other than the class definitions. Huh? Completely automatic serialization (called activation/passivation) was in the original Stepstone Objective-C, described in Brad Cox's book[1]. No generics required at all, just a modicum of introspection. [1] http://www.amazon.com/Object-Oriented-Programming-An-Evolutionary-Approach/dp/0201548348 http://www.amazon.com/Object-Oriented-Programming-An-Evoluti...
- cageface 12y agoCame here to post a similar comment. Two of his bullet points: Automated RESTful APIs Expressive Triggers & Responses are actually already addressed very nicely by some of the third party libraries available for Java. You're exactly right that the combination of typed collections and annotations makes this much easier in Java. If you lay out your model classes properly then JSON serialization/deserialization is a one-liner. And his third point, the complexity of auto layout, is much less of an issue with Android's layout system, which is much saner for the typical kinds of grid layouts you encounter in real apps. This is why I've always had a hard time understanding why people say building Android apps is harder than iOS. Sure you have to support a wider variety of devices and dealing with low-level stuff like GL shaders or the camera can be painful. But for typical apps that are basically just list views into some kind of backend data store Android is way easier, IMO. And with the recent proliferation of iOS device sizes and aspect ratios the days of drag & drop UI in iOS are long gone.
- thewarrior 12y agoI'm just a beginner iOS developer and I'm trying to learn Android. Could you give the names of these Android Libraries ?
- cageface 12y agoStart with the stuff from Square: http://square.github.io http://square.github.io And also GSON from Google.
- gress 12y ago"with the recent proliferation of iOS device sizes and aspect ratios the days of drag & drop UI in iOS are long gone" This casual false statement makes the rest of your comment seem very questionable.
- cageface 12y agoI take it you're not an iOS developer? If you're not building responsive UIs with auto layout you're doing it wrong and doing it right is way harder than it was back in the golden era of photoshop-based pixel perfect designs.
- gress 12y agoActually I am an iOS developer, and it's much easier to make a responsive UI using autolayout than it ever was to translate someone's photoshop into a pixel-perfect UI, especially if your product is being developed iteratively and is actually subject to change. Development for iOS has become much easier over time.
- cageface 12y agoYou're the first person I've heard say that. It's much better than it was but it's still the most write-only layout system I've encountered in many many years of building UIs on all kinds of platforms. I'm finding all kinds of broken UI in published iOS apps now. iOS apps used to be easier because they didn't need to be responsive. Android used to get a lot of jeers because Android devs had to deal with these issues from day one.