Java Design Patterns

用 Java 实现的设计模式。「Design patterns implemented in Java」

Github星跟蹤圖

Design patterns implemented in Java

Build status
License MIT
Join the chat at https://gitter.im/iluwatar/java-design-patterns
Sonarcloud Status

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 help 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 as
programming tutorials 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
patterns by any of the following approaches

  • Using difficulty tags, Difficulty-Beginner, Difficulty-Intermediate & Difficulty-Expert.
  • Using pattern categories, Creational, Behavioral, and others.
  • Search for a specific pattern. Can't find one? Please report a new pattern here.

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 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.

License

This project is licensed under the terms of the MIT license.

主要指標

概覽
名稱與所有者iluwatar/java-design-patterns
主編程語言Java
編程語言Java (語言數: 3)
平台
許可證Other
所有者活动
創建於2014-08-09 16:45:18
推送於2025-06-09 22:23:08
最后一次提交2025-05-17 08:55:06
發布數21
最新版本名稱open-source-java-design-patterns-2nd-edition (發布於 )
第一版名稱1.7.0 (發布於 2015-11-01 22:19:52)
用户参与
星數92k
關注者數3.7k
派生數27k
提交數4.3k
已啟用問題?
問題數958
打開的問題數128
拉請求數1507
打開的拉請求數20
關閉的拉請求數774
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?