The book The Pragmatic Programmer recommends that as part of a programmers ongoing learning that we should learn a new language every year. So this year i thought I would actually follow through on this and learn Objective-C.
The reasoning was pretty simple. I love my iPhone, so messing round with writing apps for it in my own time kind of appeals. Also i own a still shiny late 2009 MacBook Pro, so i can just download the SDK and start having a poke around. Finally i have always wanted to learn C in some way shape or form, (in fact Joel Spolsky has quite a strong opinion on this) and as Objective-C is classed as being a "Strict superset of C" i thought this would be an ideal way to knock off two goals of mine.
Now as a Java/C# developer by study and then professional life I'm not quite used to the different syntax or degree of flexibility that a lower level language live Objective-C offers. For example an Interface is not what i understand an Interface to be, for that you need a Protocol (or are they more abstract classes?) Good times!!
Fortunately in my potting around i've found some good links/resources which i've included below. I'll continue to update this list so please feel free to drop me any of your tips or hints.
- This is a great post by Scott C Reynolds who also gave me the inspiration for this post as well.
- Very useful article on going from C# to Objective-C and some of the pitfalls encountered. Also a nice reminder of some very helpful design patterns.
- Great blog by Chris Small with heaps of detailed code examples comparing C# to Objective-C
- A useful question raised by someone in a similar situation on StackOverflow
Let me know what works for you
No comments:
Post a Comment