I've gone over to the dark-side and am starting to do Android development, and with it I'm back to coding in Java.
I've just coded the following line of Java.
It made be realise just how the Objective-C style of method naming really makes code so much less enigmatic. If Android used Objective-C, the equivalent would be:
(I have to change init to start because init implies something in Objective-C that the Java code doesn't).
I know a lot of new comers to Objective-C complain about the strange Objective-C syntax. But I hope this example highlights its advantage.
I've just coded the following line of Java.
Code:
getLoaderManager().initLoader(0, null, this);
It made be realise just how the Objective-C style of method naming really makes code so much less enigmatic. If Android used Objective-C, the equivalent would be:
Code:
[self.loadManager startLoaderWithId:0 args:nil delegate:self];
I know a lot of new comers to Objective-C complain about the strange Objective-C syntax. But I hope this example highlights its advantage.