草叶睡蜢

导航

2021年10月30日 #

Abstract Factory 抽象工厂模式

摘要: Abstract Factory 抽象工厂模式 适用场景 定义多个工厂类,每个工厂类创建不同的产品。 示例 阅读全文

posted @ 2021-10-30 15:35 草叶睡蜢 阅读(33) 评论(0) 推荐(0) 编辑

Factory Method 工厂方法

摘要: Factory Method 工厂方法 适用场景 在基类中定义一个工厂方法,子类重写这一方法,创建某种具体的产品。 示例 阅读全文

posted @ 2021-10-30 15:34 草叶睡蜢 阅读(29) 评论(0) 推荐(0) 编辑

Builder 建造者模式

摘要: Builder 建造者模式 一、应用场景 使用多个步骤分步地创建一个对象。 二、示例: 1、ComputerBuilder 2、StringBuilder StringBuilder使用一些列的方法(Append,Insert,Remove,Replace),分步构建出一个字符串对象。 阅读全文

posted @ 2021-10-30 15:10 草叶睡蜢 阅读(35) 评论(0) 推荐(0) 编辑

设计模式概览

摘要: 一、creational patterns 创建型模式 1.1 Abstract Factory 抽象工厂模式 1.2 Builder 建造者模式 1.3 Factory Method 工厂方法 1.4 Prototype 原型 1.5 Singleton 单例模式 二、structural pat 阅读全文

posted @ 2021-10-30 14:48 草叶睡蜢 阅读(45) 评论(0) 推荐(0) 编辑

SOLID设计原则

摘要: SOLID设计原则 SRP Single Reposibility Principle 单一职责原则 A class should have one,and only one,reason to change. 就一个类而言,有且仅有一个引起它变化的原因。 每个类都必须要有一个唯一的明确的职责,只做 阅读全文

posted @ 2021-10-30 14:28 草叶睡蜢 阅读(41) 评论(0) 推荐(0) 编辑

英语词组/短语-20211001

摘要: launch the rocket into the sky 向空中发射火箭 fill a leaking bottle with water 往漏水的瓶子注水 the sign's rules 指示牌的规定 have two option for lunch 午饭有两种选择 take an exc 阅读全文

posted @ 2021-10-30 10:37 草叶睡蜢 阅读(67) 评论(0) 推荐(0) 编辑

2021年10月29日 #

设计原则-GRASP

摘要: GRASP原则 General Responsibility Assignment Software Pattern 通用职责分派软件模式 Information Expert assign the responsibility to the class that has the informati 阅读全文

posted @ 2021-10-29 16:47 草叶睡蜢 阅读(49) 评论(0) 推荐(0) 编辑

2021年10月28日 #

英语词组/短语-20210928

摘要: treat colds 治疗感冒 take the medicine 吃药 how the market is moving 市场走势如何 show our gratitude to sb. 向某人表达感激/感谢 raise us 养育我们 benefit from this cooperation 阅读全文

posted @ 2021-10-28 11:40 草叶睡蜢 阅读(26) 评论(0) 推荐(0) 编辑

2021年10月27日 #

英语词组/短语-20210927

摘要: preparing for the college entrance exam 备战高考 cooperate with each other 彼此/相互合作 achieve a common goal 完成共同目标 news instantly 时事新闻 follow the process 按照这 阅读全文

posted @ 2021-10-27 08:07 草叶睡蜢 阅读(37) 评论(0) 推荐(0) 编辑

2021年10月26日 #

C#特性知识图谱-六、Socket

摘要: 第六章 Socket网络编程 1、基础知识 基于TCP/IP谢意开发网络应用程序,应用程序之间主要通过Socket交互数据。 微软在设计Windows是引入了UNIX中Socket的概念和响应的设计理念,并针对Windows的特性略作调整,形成了Windows平台的Socket,简称为WinSock 阅读全文

posted @ 2021-10-26 10:18 草叶睡蜢 阅读(251) 评论(0) 推荐(0) 编辑