rules

  • sth. is worth it if its benefits exceeds its cost
  • we want methods to have only ONE reason to change as requirements of a system change, so that we can make change in small steps and with confidence
  • large class smell is not about the size; it is about responsibilities.
  • if you need to pass some variable to almost every method in a class, make this variable as an instance variable in the initialization.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s