Skip to content


Subversion checkout URL

You can clone with
Download ZIP
My attempt at performing the Object Calisthenics exercise as described by Jeff Bay.
Latest commit 4e58176 @bennadel More comments.
Failed to load latest commit information.
wwwroot More comments. Minor spelling mistake

Object Calisthenics

This is my attempt at executing the Object Calisthenics exercise in JavaScript as described by Jeff Bay in this PDF, originally from the ThoughtWorks Anthology on Pragmatic Programmers:


ThoughtWorks Anthology:

The 9 Rules of Object Calisthenics

Object Calisthenics outlines 9 basic rules to apply when performing the exercise:

  • One level of indentation per method.
  • Don't use the ELSE keyword.
  • Wrap all primitives and Strings in classes.
  • First class collections.
  • One dot per line.
  • Don't abbreviate.
  • Keep all classes less than 50 lines.
  • No classes with more than two instance variables.
  • No getters or setters.

More to come soon!

Special Thanks

I wanted to give a special thanks to Brian Kotek who originally introduced me to this exercise:

Something went wrong with that request. Please try again.