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
50
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Closure Challenge
Lightning Talk at Ruby Conf Argentina 2014
npapagna
October 25, 2014
More Decks by npapagna
See All by npapagna
Growing Apprentices: a values-based training program
npapagna
1
83
Ruby, el lenguaje de tu proximo proyecto
npapagna
0
230
To Mock a Mockingbird
npapagna
0
98
Wishful Thinking - Code Review With Myself
npapagna
0
110
Other Decks in Programming
See All in Programming
Webフレームワークの ベンチマークについて
yusukebe
0
180
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.5k
不変条件と整合性境界—ビジネスが決める設計判断と実現パターン / Invariants and Consistency Boundaries
nrslib
14
5.8k
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
2
680
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
3
920
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
5.4k
Lessons from Spec-Driven Development
simas
PRO
0
220
AI時代のUIはどこへ行く?その2!
yusukebe
22
7.5k
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
570
エージェンティックRAGにAWSで入門しよう!
har1101
9
1.7k
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
740
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
170
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
290
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
390
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.3k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
740
sira's awesome portfolio website redesign presentation
elsirapls
0
280
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
A better future with KSS
kneath
240
18k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.2k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
560
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