Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

paul.b.davis

macrumors 6502
Original poster
Oct 24, 2007
370
0
Over the hills and far away...
So I am wanting to take the plunge and start learning how to program, mainly for a hobby (and a way to pass the time at work) and possibly write a few apps to sell off (in the distant future).

I am looking right now at the e-Book version of Programming in Objective-C by Stephen Kochan. I have heard this book recommended before by other sites, and I was just wondering what everyone here's opinion was.

I have almost no experience programming with the exception of what I remember (very little) from a high school C class and doing BASIC on my TI-83 in high school while I was supposed to be doing calculus.

So any thoughts on this book would be helpful.

Thanks in advance.
 

mduser63

macrumors 68040
Nov 9, 2004
3,042
31
Salt Lake City, UT
It's the best book on any programming language that I've ever read. If you want to learn Objective-C, buy it.

(As an aside, I greatly prefer paper over e-books, but of course that's just a personal opinion. If you like e-books better, go with the e-book. It's probably cheaper anyway.)
 

garethlewis2

macrumors 6502
Dec 6, 2006
277
1
That book is pretty old now. It is a good introduction to Objective-C 1.0, but unless there have been some significant editorial changes over the past 2 weeks there will be zip in there about GC or using GC instead of retain-release for memory handling.
 

Eraserhead

macrumors G4
Nov 3, 2005
10,434
12,250
UK
That book is pretty old now. It is a good introduction to Objective-C 1.0, but unless there have been some significant editorial changes over the past 2 weeks there will be zip in there about GC or using GC instead of retain-release for memory handling.

I think it'll take a bit of time, but I'd expect new books to be released soon which cover Objective C 2.0.
 

garethlewis2

macrumors 6502
Dec 6, 2006
277
1
Yes retain/release will still work in Objective-C 2.0. GC is a complete and total hack job in Objective-C 2.0. You have to enable it in your project, it is disabled by default in XCode 3.0, this is leading some developers to question Objective-Cs future in the Apple development roadmap. Some are speculating that something like Ruby will become more common. It is easier to program in, and it's only real downside being that it is interpreted.
 

Nutter

macrumors 6502
Mar 31, 2005
432
0
London, England
I wouldn't say it's a hack job! It works well, and it's fast. It has to be opt-in, otherwise it would seriously break backwards compatibility with existing Objective-C code. What's the problem?
 

garethlewis2

macrumors 6502
Dec 6, 2006
277
1
I personally don't have a problem with it, but after using a language with Ruby for a while to solve some very simple and complex problems, it startles me at how old Objective-C 2.0 is. The GC is fantastic, it should have been there from the start rather than tacked on, but being spoiled by Ruby and Pyhon, it makes you wonder why you have to jump through hoops just to produce output from an array, etc.
 

Soulstorm

macrumors 68000
Feb 1, 2005
1,887
1
ObjC is old, but still top-notch. I come from a strong C++ background, and Objective C is a bit of fresh air, if you ask me. The only thing I really miss is operator overloading.

As for Objective C 1.0 and 2.0, I think it will be a useful knowledge to firstly learn ObjC 1.0 and then move on to 2.0. It may prove valuable to know how some things work under the hood and why the need for garbage collection was so great in Objective C from the start.
 

Gelfin

macrumors 68020
Sep 18, 2001
2,165
5
Denver, CO
Objective-C 1.0 texts will be just fine for starting out. All 1.0 code should be valid 2.0 code. Once you're comfortable with 1.0, you can get "The Objective-C 2.0 Programming Language" in PDF form for free from Apple and catch up on the new features.
 

psingh01

macrumors 68000
Apr 19, 2004
1,571
598
Objective-C is one of those languages that I think you can just use the free Apple docs to learn. Anything else a good C/C++ would do.
 

tienkhoanguyen

macrumors newbie
Apr 27, 2011
1
0
Hollister Place
I am all for free!

I bought the book, "Objective-C for Absolute Beginners: iPhone, iPad, and Mac Programming Made Easy". So far it does a good job of explaining things. I am only up to page 78 so I cannot verify the entire content! The good thing is that the examples in the book are still valid and works for Xcode 3.2.6. I have tried the free docs from Apple and they are too complicated for me. I guess that is why I have to pay someone to teach me how to program through this book. I hope I can write whatever I want for any device I want soon. I pray whether it be for the iPhone, iPad, or Mac, I can program anything! I hope to have the most joy in the process. Amen....
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.