Slide 1

Slide 1 text

RubyMotion Thursday, April 25, 13

Slide 2

Slide 2 text

iOS SDK Foundation Framework Objective-C Runtime Ruby Obj-C ??? * * ~90% of Ruby and no stdlib Thursday, April 25, 13

Slide 3

Slide 3 text

NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: @"foo", @"bar",nil]; params = {"foo" => "bar"} Objective-c RubyMotion Simplistic Example Thursday, April 25, 13

Slide 4

Slide 4 text

UIBarButtonItem *btnMenu = [[UIBarButtonItem alloc]initWithTitle:@"Forms List" style:UIBarButtonItemStyleBordered target:self action:@selector(showMenu:)]; btn_menu = UIBarButtonItem.alloc.initWithTitle "Forms List", style: UIBarButtonItemStyleBordered, target: self, action: :"showMenu:" Realistic Example Objective-c RubyMotion Thursday, April 25, 13

Slide 5

Slide 5 text

class PhotoSourceController < UIViewController attr_accessor someProperty def tableView(tableView, cellForRowAtIndexPath:indexPath) end @interface PhotoSourceController : UIViewController - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath Objective-c RubyMotion PhotoSource.h PhotoSource.m Thursday, April 25, 13

Slide 6

Slide 6 text

Objective-C RubyMotion Objective-C RubyMotion Migrating Practice RubyMotion Ruby Thursday, April 25, 13

Slide 7

Slide 7 text

VS Xcode Hell WTF?! +Rake +Bundler +YML +ERB config Thursday, April 25, 13

Slide 8

Slide 8 text

Route Controller View Model V ViewController Model View View View ViewController Web Development Application Development tl;dr: RubyMotion != Web Development RubyMotion == iOS Development Thursday, April 25, 13

Slide 9

Slide 9 text

Rails Design iOS Design HTML/JS/CSS really, really suck Pixel-perfect layouts Fuck float: left; Interface Design is a solved problem Pretty-good native UI elements You can do anything, eventually, with math “let the front-end developer do that” “oh god, it’s everywhere” Thursday, April 25, 13

Slide 10

Slide 10 text

Ben Sheldon [email protected] Thursday, April 25, 13