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

Ruby for Mobile Development

Ruby for Mobile Development

BRUG, Minsk, November, 2013

Aliaksandr Lomau

November 23, 2013
Tweet

More Decks by Aliaksandr Lomau

Other Decks in Technology

Transcript

  1. WEB MOBILE APPLICATIONS - Offline mode support - WebStorage -

    GeolocationAPI - CSS3 selectors - Media Queries
  2. WEB MOBILE APPLICATIONS Limitations: WEB MOBILE APPLICATIONS - native UI

    elemnets - WebStorage is limited - No accelerometer - No support gestures - Lack of Notifications - Background mode - and much more ...
  3. - Subset of CRuby (without File, Socket) - Generational incremental

    GC - AOT compilation into *.mrb bytecode - Can be converted to readable C code
  4. - Mobile development kit on mruby - Opensource, MIT license

    - Currently implemented only for iOS Mob Rub
  5. # Ruby "Hello BRUG".class.ancestors => [String, Comparable, Object, Kernel, BasicObject]

    # RubyMotion "Hello BRUG".class.ancestors => [String, NSMutableString, NSString, Comparable, NSObject, Kernel] OBJECTS
  6. # Objective-C [string drawAtPoint: point withFont: font] # RubyMotion string.drawAtPoint(point,

    withFont: font) # using send string.send(:"drawAtPoint:withFont:", point, font) NAMED PARAMETERS
  7. TDD RubyMotion integrates Bacon Bacon is small clone of the

    popular RSpec it can simulate user behaviour on device