I can't express properly how awesome it is, really.
I can't express properly how awesome it is, really.
In practice, how big a problem is that?
That may have changed tough because I dropped the xib as I didn't really needed it.
I would liken it to not using HTML when you're making a web app and you can only use javascript to generate (by hand) all of the UI.
In both cases, there are border cases that need to be handled in code (or markup).
I bet they are working on it, though...
i.e. [obj method: param second: param2]; vs obj.method(param, second: param2) which is exactly two characters shorter in ruby.
And what would be the point of having something that looks like Objective-C?
UIColor.colorWithRed(red/100.0, green:green/100.0, blue:blue/100.0, alpha:1.0)
vs [UIColor colorWithRed:red/100.0 green:green/100.0 blue:blue/100.0 alpha:1.0];
>And what would be the point of having something that looks like Objective-C?Because the name of the function is not colorWithRed(), it is colorWithRed:blue:green:alpha:.
In the Ruby version I wouldn't use that selector with any parens. The resulting line would be one character longer than the ObjC version but use the Shift key one less time and would avoid two pinky trips out to the square brackets. (unless I am miscounting)
All other things being equal between the two options, and of course they aren't but let's just keep splitting hairs for a moment, it sounds like a typing win for the Ruby option. Readability is of course in the eye of the beholder.