Hacker News new | ask | show | jobs
by jad 5152 days ago

  >> - Objective-C Is Tedious
  >
  > Matter of opinion. One person's tedium is another being explicit and reaping the
  > benefits during refactoring, code completion and compilation speed.
This is not a matter of opinion.

Objective-C:

NSDictionary *d = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInteger:1], @"foo", [NSNumber numberWithBool:YES], @"bar", nil];

Ruby:

d = {foo: 1, bar: true}

Objective-C's "explicitness" provides no advantage to the programmer here whatsoever.

I write code all day every day in Objective-C. It is an extremely tedious language that requires large amounts of boilerplate to perform even simple tasks. (Yes, I know about the new literal syntax available in Mountain Lion, but that doesn't change the broader point.)

Your programming language is the most powerful tool in your toolbox. Ruby is clearly more powerful than Objective-C in terms of how much code one has to write to accomplish a given task.