Ever tried to debug JavaScript errors in IE?
M$ should have kept IE in the lab if it ever detoured there on its way from Ballmer's evil lair....
I'm a noob at Obj-C but I'm an Apple fan boy from a while back, ex Windoze engineer.
I've just finished my first iPhone app for a client and encountered lots of problems along the way. Most of them would have been solved with a better understanding of all the API calls/classes, but a few were down to deficiencies in the language and terrible lack of debugging.
When I was reading through dev books as a beginner, I remember seeing warnings about "sending to nil" all the time, but never thought it would happen to me... eek!
That said, I'm about to get back to work doing some PHP programming and even though I can do a lot more functionally with PHP, nothing gives me as much satisfaction as seeing something I programmed running on such an awesome device as the iPhone!
Soon as I can make it financially viable, I will throw a few more eggs into the Cocoa development basket, I love it!
Quote:
Originally Posted by NearChaos
Memory management in general tends to be inconsistent. I'm trying to remember the exact calls I used (not on Mac now) but one specific example was collecting HTTP data in an NSData and converting it to a string with NSString stringFromData (or something like that). See what happens when you free the NSData and try to use the string. Then check the documentation to see if there's any mention of the crash you're about to get.
Most of the examples I can think of have to do with either memory management or trying to integrate C++ into Objective-C, or using the C library for functionality that's not in Objective-C.
But other issues I've had: XCode seems to die about once a day; Interface Builder really, really needs Save All; the context sensitive editors is light years behind, well, everybody, and frankly being someone who jumps between C++, C#, Java, PHP, Objective C and sometimes even assembly on a weekly basis, Objective C really should have stayed in the lab.
Don't get me wrong, I don't love Microsoft, or Java, or anything. I've been developing for 22 years, still make a very good living at it, and do it by following the money. I detest Apple's editorial policies but, you know, people rob banks because that's where the money is.
Eric
|