From f241987639540573e6baf37b78a8d7e49d05490e Mon Sep 17 00:00:00 2001 From: Ben Nadel Date: Fri, 4 May 2012 10:25:35 -0400 Subject: [PATCH] My first commit. --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c92a031 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ + +# Object Calisthentics + +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: + +PDF: +http://www.bennadel.com/resources/uploads/2012/ObjectCalisthenics.pdf + +ThoughtWorks Anthology: +http://www.pragprog.com/titles/twa/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: + +http://www.briankotek.com/blog/index.cfm/2009/2/11/Taking-the-Object-Calisthenics-Challenge +