My coding decalogue

  1. You will not use inheritance, unless forced to
  2. Your methods will be not longer that 20 lines of code
  3. Your classes will be not longer as 200 lines of code
  4. You will not use private methods
  5. You will not use getters nor setters
  6. Everything will be immutable by default
  7. You will create an interface only when you create a point of extension or if you have already two classes that will implement it
  8. Object oriented style will be using for the API’s and will be as much domain specific as possible
  9. Functional style will be used inside the API’s and will be as much general as possible
  10. Composition !

Questions ?

  1. Bernard says:

    what’s wrong with setters & getters?

  1. There are no trackbacks for this post yet.

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.