hiding in plain sight: unleashing the power of blocks and procs

Post on 17-May-2015

1.041 Views

Category:

Business

1 Downloads

Preview:

Click to see full reader

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

ben.scofield@viget.comhttp://www.extendviget.com/

http://www.culann.com/

top related