/designPatterns

Source for design pattern examples with Java

Primary LanguageJavaMIT LicenseMIT

designPatterns

Source for design pattern examples with Java

design principles

  1. Identify the aspects of your application that vary and separate them from what stays the same
  2. Program to an interface not an implementation
  3. Favor composition over inheritance
  4. Strive for loosely coupled designs between objects that interact
  5. Classes should be open for extension, but closed for modification
  6. Depend upon abstractions. Do not depend upon concrete classes
  7. Talk only to your friends (Principle of Least Knowledge).
  8. Don't call us, we call you.