Recently, Google labs introduced their new "Code Search" tool. This got me to start looking for similar search engines on the web. One of the nice one's I've used is "Programming is hard" which has some nice formating, but limited languages. While many of the examples are way over my head as a new coder, these snippets have a lot to teach. I't is mind blowing just how efficient an experienced programmer can make a routine.
It's been awhile since I posted about my journey into Objective C and Cocoa programming. It's going a lot slower than I had hoped, but I up to page 260 in "Programming in Objective C" so at least I'm not a complete slacker. It doesn't help that most of the really basic material is as exciting as a wet shoelace. But today on my commute to work I read about Functions and Structures.
I’m still working through “Programming in Objective-C” (Stephen Kochan). Since I commute on the train, I have plenty of time during the day to read. I’m about a third done. I hope to finish in a couple of weeks. So keep in mind this is all still really new to me. I’m not trying to create a tutorial, but rather share my experience learning the language. This one is very closely related to the previous post.
Recently I began to teach myself Objective C. My final goal is to program in Cocoa for the Mac. The process is slow going, but really interesting. I’m adding a regular section to highlight some of my thoughts about learning a programming language. The first post is about “Return Values”
-(void) setNumerator;
This expression declares a new method that is not expected to return anything (i.e. void)
-(double) myNumber;
declares a method that should be returning a double precision number