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
39
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
69
Ruby, el lenguaje de tu proximo proyecto
npapagna
0
210
To Mock a Mockingbird
npapagna
0
70
Wishful Thinking - Code Review With Myself
npapagna
0
95
Other Decks in Programming
See All in Programming
Jetpack Composeとデザインシステム
rmakiyama
0
220
最近コードレビューで指摘したこと
forrep
3
110
freeeのエンジニアが 就活で出そうな コーディングテストを 解説してみる
freee
0
150
一文字エイリアスのすすめ
fujimura
0
190
TypeScriptコードの漸進的改善 / Progressive Improvement of TypeScript Code
medley
1
420
ソースコードを美しくたもつために ~コードレビューの認知限界を突破し、年間400リリースを達成する~
kotauchisunsun
1
150
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
13
4.3k
Try creating your own orderedmap
kazamori
1
280
Amazon Aurora Serverless v2が意外と高かった話と、AWS Database Migration Serviceの話
satoshi256kbyte
1
110
AppRouter Panel Talk
yosuke_furukawa
PRO
1
520
AmperとFleetを使ったAndroidアプリ
yoppie
0
300
TypeScriptとGraphQLで実現する 型安全なAPI実装 / TSKaigi 2024
hokaccha
5
2.6k
Featured
See All Featured
Music & Morning Musume
bryan
41
5.6k
Navigating Team Friction
lara
179
13k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
YesSQL, Process and Tooling at Scale
rocio
165
13k
How to name files
jennybc
65
93k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.7k
5 minutes of I Can Smell Your CMS
philhawksworth
199
19k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
14
8.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
228
130k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
In The Pink: A Labor of Love
frogandcode
138
21k
How STYLIGHT went responsive
nonsquared
92
4.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