2. OLBATI - Geek Time - Octobre 2016 2
Berlin Clock Kata
● git clone https://github.com/olbati/ocd-berlin-clock
3. OLBATI - Geek Time - Octobre 2016 3
Calisthenics Objects
● One level of indentation per method
● Don’t use the ELSE keyword
● Wrap all primitives and Strings
● First class collections
● One dot per line
● Don’t abbreviate
● Keep all entities small (50 lines)
● No classes with more than two instance variables
● No getters/setters/properties
4. OLBATI - Geek Time - Octobre 2016 4
● http://williamdurand.fr/2013/06/03/object-calisthenics/#onl
y-one-level-of-indentation-per-method
● https://www.cs.helsinki.fi/u/luontola/tdd-2009/ext/ObjectCa
listhenics.pdf
Resources
5. OLBATI - Geek Time - Octobre 2016 5
Thanks!
Any questions?
@ngarrache
nizar.garrache@gmail.com