Model: Object Calisthenics

1) Only One Level Of Indentation Per Method

2) Don’t Use The ELSE Keyword

3) Wrap All Primitives And Strings

4) First Class Collections

5) One Dot Per Line

6) Don’t Abbreviate

7) Keep All Entities Small
  • 10 files/package
  • 50 lines/class
  • 5 lines/method
  • 2 arguments/method

8) No Classes With More Than Two Instance Variables

9) No Getters/Setters/Properties

sources


comments powered by Disqus