1 Star 4 Fork 1

NightRunner / 设计模式中文版

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

设计模式中文版

介绍

中文版本的设计模式详解,案例中的代码尽量使用了中文.

以游戏和生活中较好理解的场景讲解设计模式的实际用法,便于理解吸收,让设计模式的学习不再困难!!!

传送门

结构型

适配器模式(adapter)

装饰器模式(decorator)

代理模式(proxy)--PS:动态代理(JDK,Cglib)

外观模式(facade)

桥接模式(bridge)

组合模式(composite)

创建型

简单工厂模式(factory)

工厂方法模式(factory-method)

抽象工厂模式(abstract-factory)

单例模式(singleton)

原型模式(prototype)

构造器模式(builder)

享元模式(flyweight)

行为型

策略模式(strategy)

模板方法模式(template-method)

观察者模式(observer)

迭代器模式(iterator)

责任链模式(chain-of-responsibility)

命令模式(command)

备忘录模式(memento)

状态模式(state)

访问者模式(visitor)

中介模式(mediator)

解释器模式(interpreter)

PS:

很多案例借鉴了 GitHub 中的java-design-patterns的思路

后续计划

后续计划实现各种场景的案例,以及英文命名的版本,让受众更广. 例如:工厂模式的实现可以是魔兽争霸的,也可以有汽车的,暗黑破坏神的等等

软件架构

不使用第三方包

安装教程

需要如下环境

  1. Java8+
  2. Maven

参与贡献

欢迎批评指正,提交pull request

作者水平和时间都有限,希望更多的小伙伴们一起来维护这个项目,让设计模式更加简单易于理解.

写在最后

作者目前正在找工作(Java后端(10年左右经验)or大数据(2年)),欢迎来撩.

联系方式

微信: NightRunnerC

邮箱: 690732060@qq.com

MIT License Copyright (c) 2022 NightRunner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

中文版本的设计模式详解 以游戏和生活中的其他场景讲解设计模式的实际用法,便于理解吸收. 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/nightrunner/chinese-version-of-design-patterns.git
git@gitee.com:nightrunner/chinese-version-of-design-patterns.git
nightrunner
chinese-version-of-design-patterns
设计模式中文版
master

搜索帮助