• Shinohara

    It might be a more effective demonstration if one of the Objective-C samples wasn’t poorly written, and the other two were actually Objective-C instead of C and CoreFoundation.

  • http://www.emadibrahim.com eibrahim

    Well that shows you that I am ignorant when it comes to obj-c and my experience with obj-c is no more than 2 or 3 weeks. I just know that the more I use it the more I hate it :)…

    BTW, I got the code samples from http://xamarin.com/how-it-works

  • Shinohara

    Yeah, unfortunately those are all horribly written examples that seem to have been created just to make Objective-C look bad, I rewrote the first two to be proper Objective-C here: https://gist.github.com/XeresRazor

  • Guy G

    I really, really hate to tell you this, but at one point or another you’re gonna say that about just about any language or platform. Lisp? wtf with the damn ((()()(()(())(())) Java? really, static void main() ?? Perl? well I love perl but does it have any sort of GUI yet? Does that even make sense? If it compiles it’s a pain in the butt to cycle thru and if it’s interpreted then anyone can steal the script and screw you getting paid for your trouble. Sigh! yet we all still keep trying like mad fools.

  • Objective-C

    Emad Ibrahim is a piece of shit.

  • http://www.emadibrahim.com eibrahim

    lol

  • kgelner

    You need to google “modern objective C”. Most of those examples could be significantly shorter.

  • Steve

    Bad programmers hate languages instead of understanding pros & cons and doing proper research before reaching opinions. I hope I never need a product you’ve coded.

  • http://blog.mostof.it/ Ochronus

    Assembly is a piece of shit. O wait.

  • http://superlogical.io/ Jake Scott

    Hey well if you want to pay money for Xamarin and spend the majority of you time trying to port Objective-C code to C#/Xamarin go for it. I would rather use Cocoa Pods and be happy knowing that any OSS libs I use will be maintained by the thousands of smarter people in the Objective-C community and to a larger extent bug free.

    C# static typing means you will have to write your own classes just to implement delegates which means you’ll have to write more C# code in those cases. For example to populate a table view you have to write another class, which is usually nested. The other downside of this is that it is not a 1-1 mapping between the Xamarin API’s and the iOS API’s.
    http://docs.xamarin.com/recipes/ios/content_controls/tables/populate_a_table

    Instead of saying “the more I use Objective-C, the more I hate it”, you should be saying “the more I use Objective-C the more I realise it’s similarity’s to C#.

    You don’t stand a chance if you think Objective-C is a piece of shit.