Slide 1

Slide 1 text

NSRevolution How Ruby hackers built the new Objective-C Open Source community

Slide 2

Slide 2 text

“A Tale of Two Languages”

Slide 3

Slide 3 text

Objective-C Ruby

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

foo.bar(baz) [foo bar:baz];

Slide 6

Slide 6 text

underscore_variable_name def short(options = {}) CAPITALIZED_CONSTANT Module::Class camelCaseVariableName - (void)longMethodWithParameter: andAnotherParameter: kCamelCaseConstant MNClass

Slide 7

Slide 7 text

• Smalltalk • C • Smalltalk • Perl • Eiffel • Lisp

Slide 8

Slide 8 text

Smalltalk

Slide 9

Slide 9 text

OOP objects passing messages to one-another

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

1 to: 10 do:[ :i | Transcript show:i. Transcript show:' '. Transcript show:i sqt. Transcript cr. ].

Slide 12

Slide 12 text

myButton := Button new. myButton label: 'press me'. myButton action: [ myButton destroy ]. myButton open.

Slide 13

Slide 13 text

A brief statement about cultural forces & attributing surface-level causes to large phenomena

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Conway’s Law Software architecture mirrors communication structures of the organizations creating it

Slide 16

Slide 16 text

WWDC

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

WWDC – is the – embodiment – of –  developer relations

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

Meanwhile...

Slide 28

Slide 28 text

Rails

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Rails was exactly what the web needed in 2005

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

• Noobs • Iconoclasts • Dillitants • Hipsters • Scavengers • Establishmentarians Evolution of Rubyists

Slide 34

Slide 34 text

Rubyist Tent Poles • TDD • Tooling • Progress • Overthinking

Slide 35

Slide 35 text

iPhone

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

Rails 1.0 12/2005 iPhone SDK 3/2008

Slide 38

Slide 38 text

≈ 2 Years

Slide 39

Slide 39 text

≈ 1 Startup

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Objective C for Rubyists

Slide 42

Slide 42 text

CocoaPods

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

1.3k Projects on CocoaPods

Slide 45

Slide 45 text

For the first time, we control our ecosystem

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

Write iOS Apps with Ruby RubyMotion

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

• Teacup • Sugarcube • Motion-Xray

Slide 52

Slide 52 text

Stylesheets for iOS NUI

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

@primaryFontName: HelveticaNeue; @secondaryFontName: HelveticaNeue-Light; @primaryFontColor: #333333; @primaryBackgroundColor: #E6E6E6; Button { background-color: @primaryBackgroundColor; border-color: #A2A2A2; border-width: @primaryBorderWidth; font-color: @primaryFontColor; font-color-highlighted: #999999; font-name: @primaryFontName; font-size: 18; corner-radius: 7; } NavigationBar { background-tint-color: @primaryBackgroundColor; font-name: @secondaryFontName; font-size: 20; font-color: @primaryFontColor; text-shadow-color: #666666; text-shadow-offset: 1,1; }

Slide 55

Slide 55 text

Integration Testing Framework KIF

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

+ (id)scenarioToLogIn; { KIFTestScenario *scenario = [KIFTestScenario scenarioWithDescription:@"Test that a user can successfully log in."]; [scenario addStep:[KIFTestStep stepToReset]]; [scenario addStepsFromArray:[KIFTestStep stepsToGoToLoginPage]]; [scenario addStep:[KIFTestStep stepToEnterText:@"[email protected]" intoViewWithAccessibilityLabel:@"Login User Name"]]; [scenario addStep:[KIFTestStep stepToEnterText:@"thisismypassword" intoViewWithAccessibilityLabel:@"Login Password"]]; [scenario addStep:[KIFTestStep stepToTapViewWithAccessibilityLabel:@"Log In"]]; // Verify that the login succeeded [scenario addStep:[KIFTestStep stepToWaitForTappableViewWithAccessibilityLabel:@"Welcome"]]; return scenario; } @end

Slide 58

Slide 58 text

Functional Reactive Programming ReactiveCocoa

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

[RACAble(self.username) subscribeNext:^(NSString *newName) { NSLog(@"%@", newName); }];

Slide 61

Slide 61 text

Cucumber for iOS Frank

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

An Extensible Open Source Mobile Backend Framework Helios

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

• Core Data Synchronization • Push Notification • In-App Purchase • Passbook • Logging & Analytics

Slide 67

Slide 67 text

• github.com/CocoaPods • github.com/ReactiveCocoa • github.com/square/KIF • github.com/tombenner/nui • github.com/moredip/Frank • github.com/helios-framework

Slide 68

Slide 68 text

tl;dr

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

#iOSonRailsConf

Slide 73

Slide 73 text

Thanks! Mattt Thompson @mattt http://mattt.me http://nshipster.com