Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Fibonacci Sequence Kata - TDD
Search
Jonathan Cook
August 12, 2013
Programming
490
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Fibonacci Sequence Kata - TDD
Pure TDD example Kata
Jonathan Cook
August 12, 2013
Transcript
6 slides
Fibonacci Sequence Kata Jonathan Cook
What is the Fibonacci Sequence A sequence of numbers in
which each number equals the sum of the two preceding numbers. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ...
La Idea hoy es que probeis la kata en parejas
Y Los ultimos veinte minutos voy a mostraros mi solucion en la tele!
Fibonacci Sequence Generator Write some code to return the Fibonacci
number for a given position. Only for positions between 0 and no greater than 46 Example - position 8 would return 21 Try and use the TDD techniques we talked about last time.
Un Poco mas Adapt your sequence generator: Give me the
sequence of fibonacci numbers for a given sequence number between 8 and 50. e.g) for 8 - 0,1,1,2,3,5,8,13
My solution • https://github.com/JonCook/katas/
More Decks by Jonathan Cook
See All by Jonathan Cook
Out with the Monolith - a new data ingestion system in the Heliophysics Archives
joncook
0
58
ESA Heliophysics Science Archives: Interoperability through IVOA standards
joncook
0
53
TDD
joncook
2
370
Other Decks in Programming
See All in Programming
眠らない開発チームの作り方
biwakonbu
0
100
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
500
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
0
130
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
340
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
630
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
110
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
250
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
180
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
3
970
Docker and Python
trallard
47
4.3k
A Tale of Four Properties
chriscoyier
163
24k
Building Adaptive Systems
keathley
44
3.3k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
410
Exploring anti-patterns in Rails
aemeredith
4
580
Building an army of robots
kneath
307
47k
Building Applications with DynamoDB
mza
96
7.3k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
340
Designing for Timeless Needs
cassininazir
1
570
Writing Fast Ruby
sferik
630
63k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
620