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
44
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
76
Ruby, el lenguaje de tu proximo proyecto
npapagna
0
210
To Mock a Mockingbird
npapagna
0
84
Wishful Thinking - Code Review With Myself
npapagna
0
110
Other Decks in Programming
See All in Programming
GoのGenericsによるslice操作との付き合い方
syumai
3
690
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
240
すべてのコンテキストを、 ユーザー価値に変える
applism118
2
950
5つのアンチパターンから学ぶLT設計
narihara
1
120
来たるべき 8.0 に備えて React 19 新機能と React Router 固有機能の取捨選択とすり合わせを考える
oukayuka
2
870
PicoRuby on Rails
makicamel
2
110
Enterprise Web App. Development (2): Version Control Tool Training Ver. 5.1
knakagawa
1
120
Deep Dive into ~/.claude/projects
hiragram
10
1.9k
Rubyでやりたい駆動開発 / Ruby driven development
chobishiba
1
490
VS Code Update for GitHub Copilot
74th
1
470
Systèmes distribués, pour le meilleur et pour le pire - BreizhCamp 2025 - Conférence
slecache
0
110
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
270
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
17
950
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
A Tale of Four Properties
chriscoyier
160
23k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Producing Creativity
orderedlist
PRO
346
40k
Rails Girls Zürich Keynote
gr2m
94
14k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
A Modern Web Designer's Workflow
chriscoyier
694
190k
Fireside Chat
paigeccino
37
3.5k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
107
19k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
48
2.8k
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