Hacker News new | ask | show | jobs
by inferno0069 5970 days ago
Perhaps learning Objective-C would make me a better Java coder. Alternately, maybe all the ObjC practices that would translate have already been written up as standard Java patterns or included in the standard Java books and all I'd get from it would be frustration because I can't apply anything neat I see.
3 comments

I'm playing with some Objective-C at the moment. For me the most interesting thing is how blurred the line between ObjC/OOP/message passing and straight C is. It's the first language I've used where you can treat the high level part as not much more than a library with custom syntax. I'm sure the lispers live in this world all the time ;)
Yes we do.
One of my favorite things Objective-C has over Java is no NullPointerExceptions (it's legal to send a message to nil).

One of my least favorite things Objective-C has is EXC_BAD_ACCESS (usually caused by memory mismanagement).

Learning another programming language will almost always make you a better coder. It gives you perspective on the language you spend most of your time in, and lets you see patterns that are non-obvious is your 'main' language.

To really benefit from learning another programming language, make sure that you actually learn the language, not just hack around in it for the weekend and say you know it.