News for hackers. Stuff that matters.
Re:RubyMotion Goes 2.0 And Gets OSX Support, Templates and P... by sandoze on Thursday May 09, 2013 @04:46PM (#5682846)
Your header file is your interface and documentation to anyone using your code/class. Why wouldn't you want to declare your public interface there?

As for readability. Ruby is getting there but currently:

   - (void)employersWithCarrierID:(uint)carrierID withMaxReturnCount:(uint)count;

   [self employersWithCarrierID:123 withMaxReturnCount:10];
is a lot more readable and verbose than

   def employers (id, count)

   employer 123 10
Re:RubyMotion Goes 2.0 And Gets OSX Support, Templates and P... by bjeanes on Thursday May 09, 2013 @10:22PM (#5684182)
Except in Ruby, you'd just as likely see named arguments too.

`employer carrier_id: 123, max_return_count: 10` is very much valid ruby.

Re:RubyMotion Goes 2.0 And Gets OSX Support, Templates and P... by kemiller on Friday May 10, 2013 @10:48AM (#5686459)
Beyond that, RM has "real" named arguments based on the objective-C core.