Skip to content

Instantly share code, notes, and snippets.

View iyunbo's full-sized avatar
📊
Deep Learnist

Yunbo WANG iyunbo

📊
Deep Learnist
View GitHub Profile
@iyunbo
iyunbo / Calisthenics.md
Last active June 10, 2018 20:16 — forked from bobuss/Calisthenics.md
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 150 lines.
  • No classes with more than 5 instance variables.