Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1004 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 1004 Bytes

design-patterns-example-java

Maven project

Examples are in form of Junit 5 but they serve as usage examples not as tests.

content

(the most interesting go first )

  1. Singleton
  2. Strategy
  3. Factory
  4. Proxy
  5. Adapter
  6. Builder
  7. MVC
  8. State
  9. Observer
  10. Chain of Responsibility
  11. Decorator
  12. Template
  13. Composite
  14. Prototype
  15. Bridge

gist

The idea of these samples to provide an easy to understand example. By means of:
• keep samples as small as possible but still big enough to frame the core idea.
• the data domain is bound to everydays items, no movie/gender/hobby specific.
• code is ready to go, all you need are Java & Maven
• structured in a fancy package tree
• Overall code quality is not a goal. For example - there are lots of duplication. Pieces of code are not reused across the most examples to focus on only one idea per sample.
• No real software examples - to force imagination :-)

ideas/suggestions

wellcome