Build IOS apps with RubyMotion

February 05, 2016

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



Also in Stories by Linda Vivah on Medium

ES6 JavaScript: Understanding Let & Const

December 27, 2018

via GIPHY

There were many updates brought by ES6. One of the Syntax updates introduced was the concept of declaring variables with let andconst instead of var

To understand whylet & constwere introduced, we must first understand how var works & the concept of hoisting → That being said, here are the 5 questions we will cover in order:

  1. HOW DOES VAR...

Read More

Best Coding Books for Babies/Kids

October 18, 2018

I get a ton of questions regarding the coding books I read to my 15 month old son, specifically on my Instagram.

Since I have purchased quite a few, here are my top 4 coding book suggestions for babies/young kids:

1. ABCs of the Web

A great introduction to basic coding and web concepts for children in the form of the alphabet!

2. Web Design for Kids

Introduces basic coding concepts in an engaging...

Read More

Resources I used to pass the AWS Solutions Architect — Associate Certification Exam

August 29, 2018

I recently passed the AWS Solutions Architect Associate Exam and would like to share some of the resources I used to study for the exam. I used 2 different online courses to study, did the labs included with those courses, & took a few practice tests.

Background: My goal when studying was to really understand and be able to use what I learned on the job. I currently work as a web developer so I do...

Read More

10% Off Your First Order!

Use Coupon Code HIGHFIVE