Meh. I do not program in Objective-C but I think I can provide more reasons for liking the language than the linked article contains :) Reason 1: When you need what C provides, it is right there for you (being a superset of C) Reason 2: When you need what C does not provide (basic reflection, generics, polymorphism, whatever) it is in the "bracket" part of Objective-C. Reason 3: The two above do work quite well toget…
I loved C. But it always fell short for me. Objective-C fixed that.
41–50 of 82 posts
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#42I like C. I really like Smalltalk. But Objective-C really doesn't do OO well enough for me to enjoy dealing with it.
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#43Am I the only one who thinks Objective-C is complete crap compared to Scala, Haskell and the likes? Hell, even C++ is way faster to code in and provides a better experience. Obj C is just immensely verbose. I'd love to be able to use Qt + C++ to program iOS instead..
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#44Meh. I do not program in Objective-C but I think I can provide more reasons for liking the language than the linked article contains :) Reason 1: When you need what C provides, it is right there for you (being a superset of C) Reason 2: When you need what C does not provide (basic reflection, generics, polymorphism, whatever) it is in the "bracket" part of Objective-C. Reason 3: The two above do work quite well toget…
This is where I get to promote my favorite page of documentation ever: http://developer.apple.com/library/mac/#documentation/Cocoa/...
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#45>Objective-C was Apple’s response to object-oriented programming Apple's response? At its inception it had nothing to do with Apple and for a long time was the language of NeXT. It's only since OSX that Apple has adopted Objective-C.
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#46Earlier quoted context omitted.
NeXT bought Apple for minus US$400 million and renamed itself Apple ;-) Apple's CEO came from NeXT, as did their lead software architect. OSX is NeXT (ever wonder why so many things extend NSObject?).
FYI, NeXTs' CEO was Apple's CEO first. The parents point is correct.
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#47Earlier quoted context omitted.
I get the impression most developers use Objective-C because they have to, rather than because they want to. Take a look at the Tiobe graph for Objective-C: http://www.tiobe.com/index.php/paperinfo/tpci/Objective-C.ht... I have a feeling it would see a distinct dropoff in usage if Apple were to change their focus to, say, Java or C++.
It's my favorite C variant (including C itself).
I wouldn't say the same thing about Cocoa though. Cocoa is good, but not great.
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#48Meh. I do not program in Objective-C but I think I can provide more reasons for liking the language than the linked article contains :) Reason 1: When you need what C provides, it is right there for you (being a superset of C) Reason 2: When you need what C does not provide (basic reflection, generics, polymorphism, whatever) it is in the "bracket" part of Objective-C. Reason 3: The two above do work quite well toget…
Or you could pick a well thought out OO language like Java or C#, maybe even Python. Unfortunately you're trapped using the abomination for iPhone development unless you pick Monotouch.
Not even Java's fans would defend it as a "well thought out OO" language.
Since this is Hacker News, it maybe appropriate to point out that nothing prevents you from building whatever specific flavour of OO you want on top of the Objective C runtime, if you want it badly enough.
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#49Meh. I do not program in Objective-C but I think I can provide more reasons for liking the language than the linked article contains :) Reason 1: When you need what C provides, it is right there for you (being a superset of C) Reason 2: When you need what C does not provide (basic reflection, generics, polymorphism, whatever) it is in the "bracket" part of Objective-C. Reason 3: The two above do work quite well toget…
You can actually go one step further with your "Reason 2". Many may not realize this, but everything that you can do with the "bracket" part of Objective-C you can also do with straight-up C and the Objective-C Runtime methods. This is where I get to promote my favorite page of documentation ever: http://developer.apple.com/library/mac/#documentation/Cocoa/...
This actually makes me wonder... how much overhead is in each objective c object over a similar struct in c?
Re: I loved C. But it always fell short for me. Objective-C fixed that.
#50The only thing I really don't like about Objective C is that message passing is considerably slower than function calling. You just can not manipulate an image using the `setPixelX:Y:` method in anything close to real time. Using functions in C, this is no problem. So, there you go: Write your algorithms in C, write your program logic in Objective C. Oh, and I love how the OpenGL C API interacts so nicely with Object…
I think the nature of OpenGL's API (internal state, very simple C-style functions - contrast with DX) means it is very portable. Java also interacts nicely with it, as does C++, and I've not worked with WebGL but the very fact it exists says something about it. OpenGL is great. Really well designed :)
The notion of internal state is fine and well for only the most trivial of programs--once you start doing something requiring multithreading nothing but sadness awaits.