$30 off During Our Annual Pro Sale. View Details »
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
77
Ruby, el lenguaje de tu proximo proyecto
npapagna
0
220
To Mock a Mockingbird
npapagna
0
86
Wishful Thinking - Code Review With Myself
npapagna
0
110
Other Decks in Programming
See All in Programming
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
0
210
クラウドに依存しないS3を使った開発術
simesaba80
0
140
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
39
26k
JETLS.jl ─ A New Language Server for Julia
abap34
2
430
Developing static sites with Ruby
okuramasafumi
0
320
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
150
Navigation 3: 적응형 UI를 위한 앱 탐색
fornewid
1
440
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
130
ゲームの物理 剛体編
fadis
0
370
UIデザインに役立つ 2025年の最新CSS / The Latest CSS for UI Design 2025
clockmaker
18
7.7k
Socio-Technical Evolution: Growing an Architecture and Its Organization for Fast Flow
cer
PRO
0
390
Python札幌 LT資料
t3tra
6
1k
Featured
See All Featured
How to Talk to Developers About Accessibility
jct
1
83
Rebuilding a faster, lazier Slack
samanthasiow
85
9.3k
30 Presentation Tips
portentint
PRO
1
170
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
286
14k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Highjacked: Video Game Concept Design
rkendrick25
PRO
0
240
The untapped power of vector embeddings
frankvandijk
1
1.5k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.3k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
0
130
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