iluwatar /java-design-patterns
Design patterns implemented in Java
★ 94,856⑂ 27,353👁 3,661⑃ 2,559● 989▤ 0◈ 0
94,856
stars
+1+15+99
27,353
forks
3,661
watchers
2,559
prs
989
issues
0
releases
0
discussions
README
Design Patterns Implemented in Java
Read in different language : zh, zh-TW
,ko, fr, tr, ar, es, pt, id, ru, de, ja, vi, bn, np, it, da
Introduction
Design patterns are the best, formalized practices a programmer can use to solve common problems when designing an application or system.
Design patterns can speed up the development process by providing tested, proven development paradigms.
Reusing design patterns helps prevent subtle issues that cause major problems, and it also improves code readability for coders and architects who are familiar with the patterns.
Getting Started
This site showcases Java Design Patterns. The solutions have been developed by experienced programmers and architects from the open-source community. The patterns can be browsed by their high-level descriptions or by looking at their
source code. The source code examples are well commented and can be thought of as programming tutorials on how to implement a specific pattern. We use the most popular battle-proven open-source Java technologies.
Before you dive into the material, you should be familiar with various Software Design Principles.
All designs should be as simple as possible. You should start with KISS, YAGNI, and Do The Simplest Thing That Could Possibly Work principles. Complexity and patterns should only be introduced when they are needed for practical extensibility.
Once you are familiar with these concepts you can start drilling down into the available design patterns by any of the following approaches:
- Search for a specific pattern by name. Can't find one? Please report a new pattern here.
- Using tags such as Performance, Gang of Four or Data access.
- Using pattern categories, Creational, Behavioral, and others.
Hopefully, you find the object-oriented solutions presented on this site useful in your architectures and have as much fun learning them as we had while developing them.
How to Contribute
If you are willing to contribute to the project you will find the relevant information in our developer wiki. We will help you and answer your questions in the Gitter chatroom.
The Book
The design patterns are now available as an e-book. Find out more about "Open Source Java Design Patterns" here: https://payhip.com/b/bNQFX
The project contributors can get the book for free. Contact the maintainer via Gitter chatroom or email (iluwatar (at) gmail (dot) com ). Send a message that contains your email address, Github username, and a link to an accepted pull request.
License
This project is licensed under the terms of the MIT license.
Supporters
SerpApi
SerpApi is the world’s leading provider of search data, pioneering APIs that turn search engine results into structured, developer-ready information.
Contributors
Ilkka Seppälä📆 🚧 🖋
Subhrodip Mohanta💻 👀 🚧
amit1307💻
Narendra Pathai💻 🤔 Top issues
#2977Fix busy-waiting loops52 comments · 2024-06-01#203Finite State Machine pattern34 comments · 2015-08-12#351Plugin pattern22 comments · 2016-01-16#79Active Record pattern18 comments · 2015-06-23#52Add virtual field pattern18 comments · 2015-05-10#1298Identity Field pattern16 comments · 2020-07-07#917Store and Process pattern16 comments · 2019-08-15#394Collector State Pattern16 comments · 2016-03-02
News & coverage (5)
Hacker NewsDesign patterns implemented in Java▲ 84 · 27 comments · 2017-08-29Hacker NewsJava Design Patterns▲ 3 · 0 comments · 2019-10-06Hacker NewsDesign Pattern Code Examples▲ 2 · 0 comments · 2015-01-16Business of AppsAndroid Development Tools List (2025)2025-03-24i-programmer.infoThe Interactive Map Of Github2023-06-09