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
Fibonacci Sequence Kata - TDD
Search
Jonathan Cook
August 12, 2013
Programming
0
420
Fibonacci Sequence Kata - TDD
Pure TDD example Kata
Jonathan Cook
August 12, 2013
Tweet
Share
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
31
ESA Heliophysics Science Archives: Interoperability through IVOA standards
joncook
0
31
TDD
joncook
2
330
Other Decks in Programming
See All in Programming
Rethinking UI building strategies @ SFI 2024
letelete
0
270
今、知っておきたい! 生成AIエージェントの世界
elith
3
350
雑に思考を整理する技術と効能
konifar
58
29k
PHPはいつから死んでいるかの調査
chiroruxx
1
390
Ruby Pattern Matching
bkuhlmann
0
920
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
730
Semantic search with Django and pgvector
pauloxnet
0
240
新宿ダンジョンを可視化してみた
satoshi7190
2
240
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
230
Rails と人魚の話/rails-and-mermaid
sanfrecce_osaka
0
100
Goのmultiple errorsについて (2024年4月版)
syumai
3
610
Git Lint
bkuhlmann
4
750
Featured
See All Featured
Statistics for Hackers
jakevdp
789
220k
The Art of Programming - Codeland 2020
erikaheidi
42
12k
Writing Fast Ruby
sferik
621
60k
How to name files
jennybc
65
93k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Building a Modern Day E-commerce SEO Strategy
aleyda
17
6.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
60
14k
A Tale of Four Properties
chriscoyier
151
22k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.6k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
659
120k
A Philosophy of Restraint
colly
197
16k
The Pragmatic Product Professional
lauravandoore
25
5.8k
Transcript
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/