hiding in plain sight: unleashing the power of blocks and procs
TRANSCRIPT
Hiding in Plain SightUnleashing 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
ExamplesControllers
http://www.flickr.com/photos/fluzo/15760449/
around filters
ExamplesViews
http://www.flickr.com/photos/jongos/359191379/
view
layout
ExamplesModels
http://chosetec.darkclan.net/origami/fiddlercrab/fiddlercrab1.jpg
Suggestive
Business Logic
ExamplesTesting
http://www.sxc.hu/photo/731544
testing macros
Questions?Ben Scofield - Senior Developer, Viget Labs
[email protected]://www.extendviget.com/
http://www.culann.com/