2023年5月21日

设计模式总结

摘要: `2023年05月21日18:17:36` #### 设计模式分类 创建型模式,共五种:工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式、简单工厂模式。 结构型模式,共七种:适配器模式、装饰器模式、代理模式、外观模式、桥接模式、组合模式、享元模式。 行为型模式,共十一种:策略模式、模板方法 阅读全文

posted @ 2023-05-21 18:33 mingmingcome 阅读(27) 评论(0) 推荐(1) 编辑

解释器模式

摘要: `begin 2023年04月15日16:49:35` #### 引子 本科软件工程专业有这么一门课叫《编译原理》,课程内容已经忘了七七八八,但尤为清楚的是上机大作业是拷贝的,课程分数92。 #### 定义 > Given a language, define a representation fo 阅读全文

posted @ 2023-05-21 18:09 mingmingcome 阅读(158) 评论(0) 推荐(1) 编辑

2023年4月5日

访问者模式

摘要: begin 2023年04月02日15:56:19 引子 悲观者往往正确,乐观者往往成功 定义 Represent an operation to be performed on the elements of an object structure. Visitor lets you define 阅读全文

posted @ 2023-04-05 15:43 mingmingcome 阅读(153) 评论(0) 推荐(0) 编辑

2023年3月19日

责任链模式

摘要: begin 2021年12月11日20:47:41 责任链模式 定义 Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the reques 阅读全文

posted @ 2023-03-19 17:38 mingmingcome 阅读(118) 评论(0) 推荐(0) 编辑

2022年4月3日

对《从ReentrantLock的实现看AQS的原理及应用》文章内容的疑问

摘要: 对《从ReentrantLock的实现看AQS的原理及应用》文章内容的疑问 文章链接附上:从ReentrantLock的实现看AQS的原理及应用 在【2.2 AQS重要方法与ReentrantLock的关联】中 根据jdk1.8.0_162的源码中已在图中标注本人的疑问点 final boolean 阅读全文

posted @ 2022-04-03 13:10 mingmingcome 阅读(40) 评论(0) 推荐(0) 编辑

2021年12月7日

迭代器模式

摘要: 2021年11月27日18:24:29 迭代器模式 定义 Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. 阅读全文

posted @ 2021-12-07 01:57 mingmingcome 阅读(615) 评论(0) 推荐(1) 编辑

2021年5月16日

命令模式(Command Pattern)

摘要: begin 2020年12月6日21:08:15 命令模式(Command Pattern) 定义 Encapsulate a request as an object, thereby letting you parameterize clients with different requests 阅读全文

posted @ 2021-05-16 14:26 mingmingcome 阅读(304) 评论(0) 推荐(0) 编辑

2021年4月5日

仅仅使用Google就完成了人生第一次破解

摘要: 2021年2月6日21:17:09 begin 起因 在异乡的打工人,不善言谈,幸有一老同学,周末常邀吃饭,感恩之心铭记于心。她结婚时,为表心意欲做视频,视频需要制作字幕,搜索之,偶遇一字幕软件,但是有些功能不支持游客使用,遂有想法破解这个软件。 过程 人生第一次破解Java软件过程,就是一个不断试 阅读全文

posted @ 2021-04-05 17:37 mingmingcome 阅读(385) 评论(0) 推荐(0) 编辑

2020年11月29日

备忘录模式

摘要: 2020年11月29日15:25:07 引子 曾经有一份真挚的爱情摆在我的面前,但是我没有珍惜,等我失去后才后悔莫及,尘世间最痛苦的事情莫过于此。 如果上天能够给我一个再来一次的机会,我会对那个女孩说三个字:我爱你。 如果非要在这份爱上加一个期限,我希望是一万年! ——至尊宝 定义 Without 阅读全文

posted @ 2020-11-29 21:57 mingmingcome 阅读(192) 评论(0) 推荐(0) 编辑

2020年11月22日

状态模式(state pattern)

摘要: begin 2020年11月14日20:19:59 状态模式(state pattern) 引子 铁扇公主:以前陪我看月亮的时候,叫人家小甜甜,现在新人胜旧人了,叫人家牛夫人! 定义 Allow an object to alter its behavior when its internal st 阅读全文

posted @ 2020-11-22 16:13 mingmingcome 阅读(1331) 评论(0) 推荐(1) 编辑

导航