Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Hiding in Plain Sight
Unleashing the Power of Blocks and Procs
Blocks



         http://www.flickr.com/photos/abulic_monkey/135486777/
Procs = Blocks + Context
Transform!



http://www.flickr.com/photos/suzanneandsimon/486046174/
Proc.new
lambda
&block
implicit
Symbol#to_proc
Examples
                                              Controllers


http://www.flickr.com/photos/fluzo/15760449/
around filters
Examples
  Views


           http://www.flickr.com/photos/jongos/359191379/
view
layout
Examples
                                                                    Models




http://chosetec.darkclan.net/origa...
Suggestive
Business Logic
Examples
  Testing




            http://www.sxc.hu/photo/731544
testing macros
Questions?
Ben Scofield - Senior Developer, Viget Labs

         ben.scofield@viget.com
      http://www.extendviget.com/
  ...
Upcoming SlideShare
Loading in …5
×

Hiding in Plain Sight: Unleashing the Power of Blocks And Procs

1,252 views

Published on

Published in: Business, Technology
  • Be the first to comment

  • Be the first to like this

Hiding in Plain Sight: Unleashing the Power of Blocks And Procs

  1. 1. Hiding in Plain Sight Unleashing the Power of Blocks and Procs
  2. 2. Blocks http://www.flickr.com/photos/abulic_monkey/135486777/
  3. 3. Procs = Blocks + Context
  4. 4. Transform! http://www.flickr.com/photos/suzanneandsimon/486046174/
  5. 5. Proc.new
  6. 6. lambda
  7. 7. &block
  8. 8. implicit
  9. 9. Symbol#to_proc
  10. 10. Examples Controllers http://www.flickr.com/photos/fluzo/15760449/
  11. 11. around filters
  12. 12. Examples Views http://www.flickr.com/photos/jongos/359191379/
  13. 13. view
  14. 14. layout
  15. 15. Examples Models http://chosetec.darkclan.net/origami/fiddlercrab/fiddlercrab1.jpg
  16. 16. Suggestive
  17. 17. Business Logic
  18. 18. Examples Testing http://www.sxc.hu/photo/731544
  19. 19. testing macros
  20. 20. Questions? Ben Scofield - Senior Developer, Viget Labs ben.scofield@viget.com http://www.extendviget.com/ http://www.culann.com/

×