Coding Dojo
Calisthenics Objects
Geek Time - Octobre 2016
Nizar GARRACHE
OLBATI CTO
OLBATI - Geek Time - Octobre 2016 2
Berlin Clock Kata
● git clone https://github.com/olbati/ocd-berlin-clock
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
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
OLBATI - Geek Time - Octobre 2016 5
Thanks!
Any questions?
@ngarrache
nizar.garrache@gmail.com

Geek Time October 2016 : Coding Dojo - Calisthenics Objects

  • 1.
    Coding Dojo Calisthenics Objects GeekTime - Octobre 2016 Nizar GARRACHE OLBATI CTO
  • 2.
    OLBATI - GeekTime - Octobre 2016 2 Berlin Clock Kata ● git clone https://github.com/olbati/ocd-berlin-clock
  • 3.
    OLBATI - GeekTime - 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 - GeekTime - 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 - GeekTime - Octobre 2016 5 Thanks! Any questions? @ngarrache nizar.garrache@gmail.com