Live data from Hacker News

iOS Libraries

appdevmag.com

71–78 of 78 posts

Re: iOS Libraries

#71
post #55

People forget that you can just use C for the simple stuff. Many of these Objective-C classes are slow, verbose, buggy, and poorly documented compared to the equivalent open source C libraries. In many cases the C API is just as nice - maybe slightly less fancy, but polished from years of actual use. Why use ASIHTTPRequest or NSHTTPRequest when libcurl is mature and fast and cross-platform? What do you really gain by…

If you want to talk about tested and battle-hardened code, make sure that you really have the older API :)

Foundation (and, by extension, NSHTTPRequest and NSURLConnection and such) is a few years older than cURL is. Foundation is really an implementation of the OpenStep API designed by Sun and NeXT. in 1993. cURL was released in 1997.

What do you lose by having a higher level of abstraction that is more flexible? Do you have raw profile data that shows that libcurl is significantly faster and performs better?

Newcomers to anything should be aware that old biases die hard and people on the internet should be taken with a grain of salt.

Re: iOS Libraries

#73
post #47

Earlier quoted context omitted.

I can't recommend it, because I haven't used it yet, but OpenFeint works on iOS and Android, if that's important to you. http://www.openfeint.com/

I've used OpenFeint. Integration is a breeze, and their staff are really responsive and friendly. Plus you get a the benefit of their Free Game of the Day promotion.

I like OpenFeint too, but there are some things to keep in mind. First, integrating OpenFeint adds a few MB to your app size if you support both landscape and portrait modes (I'm not sure what the exact size is - sorry). This can be an important consideration if you're close to the over-the-air limit. Second, Free Game of the Day is a great program, but it is something you need to apply to. Not every game gets accepted.

Re: iOS Libraries

#74

Earlier quoted context omitted.

I'm not sure what you found heavy about it; it's feature-full, yes. (I'm a bit familiar with the code because I used it in a project of my own and have my own fork of it at GitHub.)

well, for one thing, one of its modes is to launch a background thread to perform a user-specified operation while it is being displayed. not something a control should be doing.

That is just one of it's modes, and while in theory I agree with the separation of concerns, the cognitive overhead of coordinating the control with the worker thread vs letting MBProgressHUD manage both is substantial.

It's a fairly small addition for how much poet it gives. I agree that it's not for everyone.

Re: iOS Libraries

#75

The list is quite crappy. E.g. :GData client" doesn't help you unless you really need it. If you search for the little things, like weak-linked yet self deleting delegates, or good image crunching stuff, check out PSFoundation. https://github.com/steipete/PSFoundation And if you wanna have it set up for you, just clone the app template: https://github.com/steipete/PSiOSAppTemplate

I just spent some time looking over PSFoundation and it's a great aggregation of useful classes from all over the place.

AND there's some great original code. E.g., PSActionSheet, that let's you assign a block to each button. I hate coding up the action sheet delegate and blocks make this typically ugly thing quite shiny.

PSFoundation is definitely worth a look.

Re: iOS Libraries

#76
post #73

Earlier quoted context omitted.

I've used OpenFeint. Integration is a breeze, and their staff are really responsive and friendly. Plus you get a the benefit of their Free Game of the Day promotion.

I like OpenFeint too, but there are some things to keep in mind. First, integrating OpenFeint adds a few MB to your app size if you support both landscape and portrait modes (I'm not sure what the exact size is - sorry). This can be an important consideration if you're close to the over-the-air limit. Second, Free Game of the Day is a great program, but it is something you need to apply to. Not every game gets accept…

As far as FGOTD: OpenFeint contacted us to use our game for FGOTD - we didn't really apply or anything like that. However, word of caution - any time your game is free, you will get bottom-feeders expecting everything (this is a different discussion altogether)

Back to the point, we only use our game in landscape mode, and we went from 70+ source files to 900+ source files after we added OF. So yeah, good point about OTA limit. :)

Re: iOS Libraries

#77
post #55

People forget that you can just use C for the simple stuff. Many of these Objective-C classes are slow, verbose, buggy, and poorly documented compared to the equivalent open source C libraries. In many cases the C API is just as nice - maybe slightly less fancy, but polished from years of actual use. Why use ASIHTTPRequest or NSHTTPRequest when libcurl is mature and fast and cross-platform? What do you really gain by…

What do you gain by wrapping Objective-C around your regex?

Me being vastly more productive. Extract all the http like URL's from a string and print them:

  for(id match in [searchString componentsMatchedByRegex:@"\\bhttps?://[a-zA-Z0-9\\-.]+(?:(?:/[a-zA-Z0-9\\-._?,'+\\&%$=~*!():@\\\\]*)+)?"]) {
    printf("URL: %s\n", [match UTF8String]);
  }
I dare you, I double dog dare you to do the same thing in three lines of code with C and PCRE.

Re: iOS Libraries

#78

Tapku - a few light-weight, handy classes: Coverflow, Graph, Month Calendar View, EmptyView, Shake Window, Label Table View Cells, Alert Center, Circle View https://github.com/devinross/tapkulibrary

Great little framework. The Month Calendar View is very similar to Apple's Mobile Calendar.

Kal is another great Calendar Clone. https://github.com/klazuka/Kal

Post reply on HN