Upgrade to Pro — share decks privately, control downloads, hide ads and more …

RubyMotion Tech Talk

Ben Sheldon
April 25, 2013
93

RubyMotion Tech Talk

Delivered to OkCupid Labs.

Ben Sheldon

April 25, 2013
Tweet

Transcript

  1. iOS SDK Foundation Framework Objective-C Runtime Ruby Obj-C ??? *

    * ~90% of Ruby and no stdlib Thursday, April 25, 13
  2. NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: @"foo", @"bar",nil]; params = {"foo"

    => "bar"} Objective-c RubyMotion Simplistic Example Thursday, April 25, 13
  3. 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
  4. class PhotoSourceController < UIViewController attr_accessor someProperty def tableView(tableView, cellForRowAtIndexPath:indexPath) end

    @interface PhotoSourceController : UIViewController<UITableViewDelegate, UITableViewDataSource> - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath Objective-c RubyMotion PhotoSource.h PhotoSource.m Thursday, April 25, 13
  5. 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
  6. 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