Slide 1

Slide 1 text

BostonRB November 13, 2012

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

Thanks!

Slide 5

Slide 5 text

Also Thanks!

Slide 6

Slide 6 text

Also Thanks! Will Mernagh, Eric Kidd, Dan McClain, William Josephson, Brian Cardarella, Wyatt Greene, Mark Bates, Scott Schulthess, Matte Noble, Kareem Kouddous, Barun Singh, and Ben Orenstein.

Slide 7

Slide 7 text

Upcoming Events 12.4: Project Night 12.11: Main Meeting 2.??: Rails Bridge Boston

Slide 8

Slide 8 text

Schedule! Rapid App Prototyping - Pascal Rettig 5-10 minute break - Everyone Announcements - Every Company Hiring ElasticSearch - Maurício Linhares Drinks - Trade

Slide 9

Slide 9 text

83 Days Since the last Ruby Drama™

Slide 10

Slide 10 text

RUBY 2.0 (With puppies)

Slide 11

Slide 11 text

Matz is Nice so we are Nice

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Refinements

Slide 14

Slide 14 text

module ActiveSupport refine String do def camelize(first_letter = :upper) case first_letter when :upper then ActiveSupport::Inflector.camelize(self, true) when :lower then ActiveSupport::Inflector.camelize(self, false) end end end end module ActionDispatch module Routing class RouteSet using ActiveSupport def controller_reference(controller_param) unless controller = @controllers[controller_param] controller_name = "#{controller_param.camelize}Controller" controller = @controllers[controller_param] = ActiveSupport::Dependencies.ref(controller_name) end controller.get end end end end http://yehudakatz.com/2010/11/30/ruby-2-0-refinements-in-practice/

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

Keyword Arguments

Slide 17

Slide 17 text

def foo(str: "foo", num: 424242) [str, num] end foo(str: 'buz', num: 9) #=> ['buz', 9] foo(str: 'bar') # => ['bar', 424242] foo # => ['foo', 424242] foo(bar: 'buz') # => ArgumentError http://brainspec.com/blog/2012/10/08/keyword-arguments-ruby-2-0/

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Module#prepend

Slide 20

Slide 20 text

module FooBar def hello puts 2 super end end class Foo def hello puts 'hello' end end class Bar < Foo prepend FooBar def hello puts 1 super end end Bar.new.hello 2 1 "hello" http://dev.af83.com/2012/10/19/ruby-2-0-module-prepend.html

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

USE RUBY 2.0.0.preview1 NOW!!!! or else...

Slide 23

Slide 23 text

We release Joe Grossberg.