광고

The idea of mobile units accessing the Web is the one which Ruby on Rails builders ought to bear in mind these days. Making your utility accessible and user-friendly for smartphones and pockets PCs turns into a superb alternative to create an interesting product and acquire a notable market share. Ruby on Rails, with its well-defined RESTful conventions, is a perfect backend for mobile functions. Mobile utility builders could make use of each mobile and Web applied sciences, since it’s pretty simple to leverage mobile development SDKs and frameworks with expertise in Ruby.

For a fast and efficient begin, each Ruby builders and mobile utility builders might want to familiarize themselves with instruments for Ruby development and smartphone assist. On this article, I attempted to provide a quick overview of the preferred instruments that assist create Ruby apps for mobile units, together with Rhodes for cross-platform apps, Ruboto for Android, IronRuby for Home windows Mobile, and MacRuby for Apple iOS.

Constructing cross-platform mobile apps with Rhodes

Essentially the most Rails-like tool that Ruby on Rails builders can use to construct Ruby apps for all main mobile working programs is Rhodes. It’s primarily based on Web applied sciences and is geared toward Web builders and mobile utility builders that wish to apply their abilities in Ruby development to the mobile apps world. Rhodes is an open-source framework that permits constructing native but cross-platform apps for iPhone, BlackBerry, Android, Home windows Mobile, and Symbian smartphones utilizing HTML, CSS, and JavaScript. Rhodes functions present the efficiency and richness of native apps, whereas enabling mobile utility builders to have the productiveness of Web interfaces in HTML.

The tool additionally allows Ruby builders to create apps that use built-in smartphone options, similar to geo positioning info, camera entry, and personal info management. Ruby on Rails builders can have a fast begin with Rhodes and can be capable to get productive in a matter of days. Following the development of accessing the development atmosphere within the Cloud, the creators of Rhodes launched RhoHub, the following era of Development-as-a-Service for mobile platforms. RhoHub allows mobile utility builders to construct cross-platform Ruby functions online with out putting in SDKs for varied smartphones regionally.

Ruboto: JRuby for Android

The Android mobile platform had solely supported Java up till just lately. Now Ruby builders may reap the benefits of it by utilizing Ruboto, a development package deal for Android that permits creating functions utilizing JRuby. Ruboto leverages the power of JRuby to open up the Android API. Mobile utility builders can edit, save, and run scripts on the phone; entry Preferences, SQLite, Media, Phone State, Sensors, UI, and far more.

Ruboto options the appliance era command-line tool, which is mainly a Ruby utility generator for Ruboto apps. Although not totally useful to create sophisticated Ruby apps, this development package deal is nice for testing, prototyping, and debugging.

IronRuby for Home windows Mobile

IronRuby brings Ruby natively to the Dynamic Language Runtime (DLR) that runs on prime of.NET. IronRuby helps all of the options of the Ruby language. It additionally gives for integration of Ruby code and.NET Framework. Iron Ruby permits operating Ruby on Rails development eventualities, similar to migrating a database, producing a model, and so forth. Ruby builders can browse Rails documentation page on the IronRuby Web website to see the varied eventualities in motion 폰테크.

The mix of IronRuby and the brand new Home windows Phone 7 platform brings many prospects to.NET Framework builders, mobile utility builders, and to Ruby builders. You may count on that.NET builders will profit from the unimaginable capability of the Ruby language and Ruby on Rails builders, of their flip, can write mobile functions for Window Mobile extra conveniently.

MacRuby

Apple’s raise of restrictions on growing apps for iPhone utilizing languages different, than Goal-C, is a big leap ahead for the mobile development industry. Mobile utility builders and Ruby builders fascinated about creating apps for iPhone ought to get acquainted with MacRuby. It’s a totally fledged Ruby atmosphere that can be utilized to construct and run your Ruby and Ruby on Rails functions. The present launch passes 90% of complete RubySpecs. Ruby courses in MacRuby are in truth Goal-C courses and Ruby objects are literally Goal-C objects. Since it’s not but doable to fully specific the Ruby semantics with the Goal-C runtime, MacRuby’s group has nonetheless a variety of work to do. Whereas this work is in progress, it’s the purpose of MacRuby to allow the mobile utility builders to create options that won’t sacrifice the efficiency with a view to get pleasure from the advantages of utilizing Ruby.

As you’ll be able to see, there are many instruments that assist Ruby on Rails builders implement their abilities to construct mobile functions for varied platforms. With a bit time and endurance to check the peculiarities of assorted platforms and frameworks, mobile utility builders would be capable to create useful functions utilizing their current data of Ruby.

At current, Ruby for mobile nonetheless has a variety of limitations, nevertheless it’s very promising. In lots of circumstances, it might be very helpful to mobile utility builders who need to implement richer capabilities into their mobile Web functions.

By admin