Hiding in Plain Sight: Unleashing the Power of Blocks And Procs
20
Hiding in Plain Sight Unleashing the Power of Blocks and Procs
-
Upload
ben-scofield -
Category
Business
-
view
1.042 -
download
1
Transcript of Hiding in Plain Sight: Unleashing the Power of Blocks And Procs
![Page 1: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/1.jpg)
Hiding in Plain SightUnleashing the Power of Blocks and Procs
![Page 2: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/2.jpg)
Blocks
http://www.flickr.com/photos/abulic_monkey/135486777/
![Page 3: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/3.jpg)
Procs = Blocks + Context
![Page 4: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/4.jpg)
Transform!
http://www.flickr.com/photos/suzanneandsimon/486046174/
![Page 5: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/5.jpg)
Proc.new
![Page 6: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/6.jpg)
lambda
![Page 7: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/7.jpg)
&block
![Page 8: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/8.jpg)
implicit
![Page 9: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/9.jpg)
Symbol#to_proc
![Page 10: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/10.jpg)
ExamplesControllers
http://www.flickr.com/photos/fluzo/15760449/
![Page 11: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/11.jpg)
around filters
![Page 12: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/12.jpg)
ExamplesViews
http://www.flickr.com/photos/jongos/359191379/
![Page 13: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/13.jpg)
view
![Page 14: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/14.jpg)
layout
![Page 15: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/15.jpg)
ExamplesModels
http://chosetec.darkclan.net/origami/fiddlercrab/fiddlercrab1.jpg
![Page 16: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/16.jpg)
Suggestive
![Page 17: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/17.jpg)
Business Logic
![Page 18: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/18.jpg)
ExamplesTesting
http://www.sxc.hu/photo/731544
![Page 19: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/19.jpg)
testing macros
![Page 20: Hiding in Plain Sight: Unleashing the Power of Blocks And Procs](https://reader034.fdocuments.net/reader034/viewer/2022052523/555845b4d8b42ac6078b52ab/html5/thumbnails/20.jpg)
Questions?Ben Scofield - Senior Developer, Viget Labs
[email protected]://www.extendviget.com/
http://www.culann.com/