Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Closure Challenge
Search
npapagna
October 25, 2014
Programming
0
45
The Closure Challenge
Lightning Talk at Ruby Conf Argentina 2014
npapagna
October 25, 2014
Tweet
Share
More Decks by npapagna
See All by npapagna
Growing Apprentices: a values-based training program
npapagna
1
78
Ruby, el lenguaje de tu proximo proyecto
npapagna
0
220
To Mock a Mockingbird
npapagna
0
87
Wishful Thinking - Code Review With Myself
npapagna
0
110
Other Decks in Programming
See All in Programming
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
190
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
680
Oxlintはいいぞ
yug1224
5
1.3k
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
560
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
170
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
110
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
220
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.1k
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
550
Featured
See All Featured
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
A Soul's Torment
seathinner
5
2.2k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
120
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Navigating Weather and Climate Data
rabernat
0
100
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Tell your own story through comics
letsgokoyo
1
810
HDC tutorial
michielstock
1
370
Chasing Engaging Ingredients in Design
codingconduct
0
110
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
77
Six Lessons from altMBA
skipperchong
29
4.1k
Transcript
@NicolasPapagna
[email protected]
Work @ TA @ Facultad de Ciencias Exactas
y Naturales (UBA)
OBJECT = CODE + DATA True or false?
The Closure Challenge
def foo block = proc{ return } block.call raise ‘oops!’
end
def foo a_block block = bar a_block block.call raise ‘oops!’
end
You can only use the Ruby core library. The only
gem you can use* is Binding of Caller. Your solution should run on MRI and JRuby. * if needed Rules
Best solution so far: 2 lines of code
https://github.com/10Pines/the_closure_challenge
@10pines @NicolasPapagna development.10pines.com
[email protected]
blog.10pines.com