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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
npapagna
October 25, 2014
Programming
48
0
Share
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
80
Ruby, el lenguaje de tu proximo proyecto
npapagna
0
220
To Mock a Mockingbird
npapagna
0
90
Wishful Thinking - Code Review With Myself
npapagna
0
110
Other Decks in Programming
See All in Programming
Liberating Ruby's Parser from Lexer Hacks
ydah
2
1.9k
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
380
From Formal Specification to Property Based Test
ohbarye
0
180
煩雑なSkills管理をSoC(関心の分離)により解決する――関心を分離し、プロンプトを部品として育てるためのOSSを作った話 / Solving Complex Skills Management Through SoC (Separation of Concerns)
nrslib
4
980
クラウドネイティブなエンジニアに向ける Raycastの魅力と実際の活用事例
nealle
2
210
TiDBのアーキテクチャから学ぶ分散システム入門 〜MySQL互換のNewSQLは何を解決するのか〜 / tidb-architecture-study
dznbk
1
180
NakouPAY説明用
annouim0
0
250
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.4k
Back to the roots of date
jinroq
0
310
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
2
920
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
790
事業会社でのセキュリティ長期インターンについて
masachikaura
0
260
Featured
See All Featured
Faster Mobile Websites
deanohume
310
31k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
270
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
We Are The Robots
honzajavorek
0
220
Automating Front-end Workflow
addyosmani
1370
200k
Designing for humans not robots
tammielis
254
26k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
A Tale of Four Properties
chriscoyier
163
24k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
520
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