News for hackers. Stuff that matters.
Re:Using RubyMotion to Build JavaScript Based iOS Apps by programminggeek on Thursday August 23, 2012 @10:40AM (#4422599)
I like PhoneGap, but I am not really sure why you would do this with RubyMotion when for most PhoneGap apps, you really don't need to go much outside of what there are already plugins for. In my experience, getting a plugin working in Obj-C is not terrible.
Re:Using RubyMotion to Build JavaScript Based iOS Apps by wprater on Thursday August 23, 2012 @10:52AM (#4422677)
A few reasons:

There is no build system in PhoneGap, just instructions on how to get it build with Xcode. Using the RubyMotion build tools will allow you to work around this, all you'd really need is the Rakefile in this case, no extra Ruby files.

It's agreed, that most may not need to write (or alter) Plugins for PhoneGap, but if you did, and if you'd prefer to write in Ruby, this article may be helpful!

Or maybe you just want to tinker around.

Re:Using RubyMotion to Build JavaScript Based iOS Apps by endemic on Thursday August 23, 2012 @04:47PM (#4424754)
Hmm, I thought that v.2 shipped with some build scripts, so theoretically you wouldn't have to open Xcode, just do everything via command line.
Re:Using RubyMotion to Build JavaScript Based iOS Apps by apendleton on Thursday August 23, 2012 @11:22AM (#4422840)
> when for most PhoneGap apps, you really don't need to go much outside of what there are already plugins for

The operative word here being "most." You're right that for apps that meet those constraints, this is not especially compelling; the target here is for apps that are exceptions. We have produced cross-platform apps that require additional capabilities beyond what Phonegap includes, and have ended up writing a cross-platform UI, plus some native ObjC and Java glue for iOS and Android, respectively, to provide that capacity. The combination presented here would mean that at least on iOS, you could have a slightly more-pleasant glue-writing experience, particularly since anecdotally, ObjC is the hardest of the pieces of that kind of project for non-experts to get started with.

Re:Using RubyMotion to Build JavaScript Based iOS Apps by jcromartie on Thursday August 23, 2012 @11:59AM (#4423075)
But RubyMotion still requires you to at least read Objective-C. Surely the little bit of glue code would look pretty much the same in Ruby as in ObjC, especially when it's mostly calling classes in the iOS and PhoneGap APIs anyway.