Don't Get Clever

4dea430d31b993abaf41cd9b54f8128d?s=47 avdi
July 20, 2013
150

Don't Get Clever

Part of the Ruby Rogues live panel episode at Lone Star Ruby Conference 2013.

4dea430d31b993abaf41cd9b54f8128d?s=128

avdi

July 20, 2013
Tweet

Transcript

  1. Don't Get Clever Avdi Grimm

  2. Pop quiz r e q u i r e '

    p s t o r e ' s t o r e = P S t o r e . n e w ( ' d a t a . p s t o r e ' ) s t o r e . t r a n s a c t i o n ( t r u e ) d o # . . . e n d
  3. Pop quiz 2 A r r a y . i

    n s t a n c e _ m e t h o d s ( f a l s e )
  4. Symbols are truthy r e q u i r e

    ' p s t o r e ' s t o r e = P S t o r e . n e w ( ' d a t a . p s t o r e ' ) s t o r e . t r a n s a c t i o n ( : r e a d _ o n l y ) d o # . . . e n d
  5. Clever!

  6. What's : r e a d _ o n l

    y ?? s t o r e . t r a n s a c t i o n ( : r e a d _ o n l y ) d o # . . . e n d
  7. Dead end s t o r e . t r

    a n s a c t i o n ( : c h u n k y _ b a c o n ) d o # . . . e n d
  8. Negation A r r a y . i n s

    t a n c e _ m e t h o d s ( ! : i n c l u d e _ s u p e r )
  9. Don't get clever

  10. Intention-revealing argument r e a d _ o n l

    y = t r u e s t o r e . t r a n s a c t i o n ( r e a d _ o n l y ) d o # . . . e n d
  11. Intention-revealing argument i n c l u d e _

    s u p e r = f a l s e A r r a y . i n s t a n c e _ m e t h o d s ( i n c l u d e _ s u p e r )
  12. Inline version A r r a y . i n

    s t a n c e _ m e t h o d s ( i n c l u d e _ s u p e r = f a l s e )
  13. Don't get clever