medium-blog

Build IOS apps with RubyMotion

Linda Haviv

The Web as we know it is being replaced, slowly but surely, by mobile apps. Ruby is a beautiful programming language used for web development, but what if I told you that you can use Ruby to write mobile apps?!

WHAT IS RUBYMOTION?

RubyMotion is a toolchain to create native IOS, OSX, and Android apps with Ruby.

In this article, I will cover how RubyMotion works and show you how easy it is to write an app with it. I will be focusing specifically on RubyMotion and IOS.

WHY USE RUBYMOTION?

There are many reasons to use RubyMotion but here are the top three:

  1. Write Real Native Apps

Apps written in RubyMotion call into the native platform api’s and function in the same manner as they would if they were written in Swift, Objective C, or Java. For a web developer who doesn’t know the other languages as well, this can be a huge plus. The best part about it is that it’s on par with Swift.

2. Cross-platform Support

Wouldn’t it be amazing to write an app for an iphone and android in the same language? oh wait! You can do that with RubyMotion!

To me, this is one of the biggest selling points.

3. It’s Ruby!

Ruby is known as a beautiful language and values beautiful code. It is a great language to write in and RubyMotion allows you to use the same beloved language used on the web for mobile development.

WHO CREATED IT?

Laurent Sansonetti created RubyMotion. He is the founder of Hipbyte and worked for Apple for 7 years as a senior software engineer on both iLige & OSX. He also created the MacRuby project.

WHAT WILL YOU NEED TO CREATE YOUR MASTERPIECE?

  1. Terminal
  2. Favorite Text Editor
  3. Ruby

NOW THAT WE KNOW THE BACKGROUND, LET’S BUILD SOMETHING…

STEP 1

Download Ruby Motion

You can download it by clicking here.

There are 3 versions but you can start with the free one.

Step 2

Create Your File

Step 3

The Alert

SUCCESSFUL APPS BUILT WITH RUBYMOTION

A Dark Room: a very popular text-based role-playing game.

Jimdo: a website creation and hosting service based in Germany since 2007.

Bandcamp: an online music store, as well as a platform for artist promotion, that caters mainly to independent artists.

Jukely: created by Bora Celik and Andrew Cornett for music lovers to get hand-picked recommendations for local live music concerts and to discover new music.

Frontback: a fun new camera app. Take a photo with the front camera, another with the back camera, and share them both in a single image.\

RESOURCES

Older Post Newer Post