Wednesday, April 14, 2010

Objective C

I have to write a paper on a programming language for a course I am taking. I wanted to do Ruby, but alas someone else beat me to the punch. The professor wants no repeats, but I was able to petition for Objective C. Now I have been curious about Objective C for a long time. Not just because it happens to be the language used to write iPhone applications, but also because I have heard some interesting comments about Objective C. Comments like it is horrible and one of the worst languages to code in.

I installed GNUStep on my Windows laptop last night and gave objective C a try. My gosh! it is a weird language, especially if you are used to C based languages. It has this concept of message passing to objects, so instead of $object->foo(), you would write [object foo]. It also has some other weird mechanisms like forwarding which works a lot like php's magic methods.

However after a whole night to sleep on it and a couple more little apps under my belt. I find that I don't mind the syntax any more. I am looking forward to delving more into the special features of the language. I wonder now if I will have so much fun working with Objective C that I forget to write my paper.

No comments: