Live data from Hacker News

RubyMotion - Ruby for iOS

rubymotion.com

241–250 of 250 posts

Re: RubyMotion - Ruby for iOS

#241

Earlier quoted context omitted.

You're describing a sub-group of young Valley-centric developers (and the occasional outspoken charismatic CEO), drawn to Rails because of its prominence in the start-up environment. It's simple numbers: since Rails is arguably the most popular for ambitious SV companies, then sure, it's going to reflect that culture to some extent. But the community runs deeper than that, and the "Matz Is Nice So We Are Nice" world…

I strongly disagree with your statement that Ruby excels and metaprogramming and DSLs. Other languages (Scala, C#, F#, etc) with coherent type systems have demonstrated an ability to define equivalently useful DSLs with the added property of validating correctness of a declarative language at compile time. You mention LINQ as somehow deriving from Ruby -- it doesn't, it derives from set theory, relational algebra, an…

Since I have gone to Ruby and adopted the Religion of Testing First (ok, sometimes Testing In The Middle), I have never missed any sort of type checking whatsoever.

I'm afraid this might come down to a philosophical difference for you.

Re: RubyMotion - Ruby for iOS

#242

My thoughts: "Hey! This looks pretty neat. Oh it's $150 on sale, forget this. Oh it's only for macs, glad I never bought this piece of garbage." That being said, it could be great, I have no idea.

Maybe that's because Macs don't generally deal with pieces of garbage. Whether that's tools, or users.

Re: RubyMotion - Ruby for iOS

#243

There's a reasonably new language called HTML that is a good development platform too. Works on all devices.

"Good" and "Works" being relative terms, of course. YMMV, especially amongst devices in the installed base where web views aren't GPU-backed (e.g, on one common platform, that being the vast majority).

Re: RubyMotion - Ruby for iOS

#245
post #220

Earlier quoted context omitted.

Are normal ruby regex expressions not available in macruby/Rubymotion? If so, why would you bother to use the above code using cocoa regex when the idiomatic ruby version is so much shorter and simpler? The example was supposed to illustrate that some things are easier and more concise in ruby, and thus also presumably in something like Rubymotion. The relevance to your posts is that you are ignoring some very good r…

I really feel like you believe I'm arguing that you shouldn't use Ruby or RubyMotion. I'm not! Ruby has been my go-to language for half a decade now. Heck, I even follow both the MacRuby mailing list and Twitter list. To reiterate, this is the entirety of my argument: > "I don't want to go to the trouble of learning Objective-C" is a weak reason to use RubyMotion, because you'll have to do 99.95% of the same work any…

> The fact that Ruby can express things very concisely has nothing to do with whether or not learning Objective-C adds an appreciable amount to time to the process of learning Cocoa.

Here's the disconnect. That was never my point.

Please re-read my initial comment. You responded to that comment, hence you're responding to my initial point, which has nothing to do with your argument.

Do you get it?

The problem is your just not able to express your point, clearly, in relation to the context of this topic. Maybe face-to-face, verbally, you'd do a brilliant job of it. But in the written form, well... Not so good.

A little humility on your part would go a long way. Just saying ;)

Re: RubyMotion - Ruby for iOS

#246
post #89

Earlier quoted context omitted.

Compared to learning Cocoa (Touch), Objective-C is really nothing — especially since to use MacRuby you have to learn a bunch of kinda-awkward hacks they've stuck on top of Ruby to make it compatible with Objective-C (e.g. the "def foo(bar, baz:quux)" syntax and Pointers). It's a very simple language. Unless you are exceptionally bad at learning syntax, you're really not saving yourself a whole lot of time.

You're missing something here. I understand Objective-C, I can write Objective-C code. But it doesn't come as naturally to me as Ruby does, there are certain nuances that I stil don't understand intuitively. Ruby is the complete opposite, coding it is almost instinctive for me. RubyMotion doesn't just slap on a Ruby syntax, its objects inherit from both Ruby and Objective-C classes with some mixed in Ruby modules. Th…

I couldn't agree more, and I'm glad to see you picked up on this.

I feel the same way. I'm far more comfortable, and have far more trigger time on one language over another, and those inherent nuances make me far more productive.

Of course it's easy enough to learn a new language/library, but that's not the point. The point is what do I know now, and what can I be productive in, the quickest.

Kudos.

Re: RubyMotion - Ruby for iOS

#247

> RubyMotion is built on top of iOS. You have access to the entire set of public iOS APIs and can also use 3rd-party Objective-C libraries or Gems So this should be compatible with cocos2d right?

There is already an example project on Github using Cocos2d in a RubyMotion app. https://github.com/anydiem/cocosmotion

Re: RubyMotion - Ruby for iOS

#248
I don't remember the last time I was excited about some new technology, but rubymotion is a thing I was looking for since the release of iOS SDK. I was doing ruby for 5 years, and switched to iOS/ObjC half a year ago, and I still can't stand the Objective-C syntax.

Re: RubyMotion - Ruby for iOS

#249
Ruby :

"The limits of my language define the limits of my world" if string =~ /foobar(\d\w)/#

Objective-C :

  NSError *error = NULL;
  NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"foobar(\\d*\\w)"
  options:NSRegularExpressionCaseInsensitive error:&error];
  NSTextCheckingResult *match = [regex firstMatchInString:string
                                                options:0
                                                   range:NSMakeRange(0, [string length])];
  if (match) {
    NSLog(@"The limits of my language define the limits of my world - Wittgenstein")
  }
Enough said?

Re: RubyMotion - Ruby for iOS

#250

My thoughts: "Hey! This looks pretty neat. Oh it's $150 on sale, forget this. Oh it's only for macs, glad I never bought this piece of garbage." That being said, it could be great, I have no idea.

Maybe that's because Macs don't generally deal with pieces of garbage. Whether that's tools, or users.

If you really think one platform is so superior to another, you're missing the point entirely.
Post reply on HN