Slide 1

Slide 1 text

RubyMotion bentonville.rb

Slide 2

Slide 2 text

@addamh Ruby Javascript Developer iOS Ruby on Rails addamhardy.com =>

Slide 3

Slide 3 text

iOS

Slide 4

Slide 4 text

iOS Javascript Ruby on Rails

Slide 5

Slide 5 text

iOS Javascript Ruby on Rails PhoneGap Social

Slide 6

Slide 6 text

iOS Javascript Ruby on Rails Kiosk PhoneGap Social Strategy

Slide 7

Slide 7 text

iOS Javascript Ruby on Rails Kiosk PhoneGap Social Kitchen Sink Strategy

Slide 8

Slide 8 text

iOS Javascript Ruby on Rails Kiosk PhoneGap Social Kitchen Sink Strategy Now -> RubyMotion

Slide 9

Slide 9 text

Can you Ruby? Then you can iOS

Slide 10

Slide 10 text

What is RubyMotion?

Slide 11

Slide 11 text

Alright, so what is it? RubyMotion • Fork of MacRuby • Ruby implementation on the Objective-C Runtime • Ruby 1.9 compliant • Unified Runtime ( Objective-C Runtime + RubyMotion Runtime) • 0 performance compromises • Custom garbage collection (much like ARC) • Statically compiled. (Ruby -> LLVM Bitcode -> Assembly)

Slide 12

Slide 12 text

Laurent Sansonetti 7 years at Apple Mac OSX MacRuby Gnome iLife RubyCocoa @lrz

Slide 13

Slide 13 text

Laurent Sansonetti 7 years at Apple Mac OSX MacRuby Gnome iLife RubyCocoa Left Apple and disappeared for a while... came back with RubyMotion @lrz

Slide 14

Slide 14 text

What is RubyMotion not?

Slide 15

Slide 15 text

Alright, so what isn’t it? RubyMotion • A bridge • An HTML5 solution • A wrapper • An excuse to not learn Objective-C (not exactly anyway)

Slide 16

Slide 16 text

You still have to speak iOS

Slide 17

Slide 17 text

So if it’s the same... why use it? (sort of)

Slide 18

Slide 18 text

Why should I use RubyMotion? • Were you ever going to learn Objective-C? • Ruby Community • Ease of use and rapid development

Slide 19

Slide 19 text

Why should I use RubyMotion? • Were you ever going to learn Objective-C? • Ruby Community • Ease of use and rapid development RUBY Reason Numero Uno:

Slide 20

Slide 20 text

Less Code Better Code

Slide 21

Slide 21 text

Less Code Better Code

Slide 22

Slide 22 text

Class Comparison

Slide 23

Slide 23 text

Use Ruby or Objective-C Methods

Slide 24

Slide 24 text

MOAR Reasons for RubyMotion • Better tools (Use what you’ve always used) • Templates for OS X and Cocos2D games • Command line toolchain • _Much_ easier to learn • Full REPL • Less boilerplate (seems like 60% of iOS coding usually) • Easier testing! • Rake

Slide 25

Slide 25 text

Testing MacBacon

Slide 26

Slide 26 text

Rake

Slide 27

Slide 27 text

What sucks?

Slide 28

Slide 28 text

Nothing Is Perfect™ • $$$$ • Costs $199 for a license • Works forever but $99 annual fee for support and updates • No require • cannot require files at runtime. Must be available at build time • No eval • Regular gems do not work

Slide 29

Slide 29 text

How do I get started?

Slide 30

Slide 30 text

Getting Started

Slide 31

Slide 31 text

Using the REPL

Slide 32

Slide 32 text

Where the (3rd) Party at?

Slide 33

Slide 33 text

BubbleWrap

Slide 34

Slide 34 text

BubbleWrap

Slide 35

Slide 35 text

Formotion Create this: with this:

Slide 36

Slide 36 text

ZOMG LIVE DEMO

Slide 37

Slide 37 text

questions?

Slide 38

Slide 38 text

addamh find me on GitHub: and at my website: http://addamhardy.com

Slide 39

Slide 39 text

thanks!