草叶睡蜢

导航

10 2021 档案

Composite 组合模式
摘要:Composite 组合模式 适用场景 现实生活中有很多事物之间的关系是整体与部分的关系,整体与部分之间既有共性又有个性,当我们需要有意地忽略整体与部分的不同处,只关注他们的共性,并且基于这种共性完成某种工作时,可以运用Composite组合模式。 示例 通过最顶层Computer的Price属性计 阅读全文

posted @ 2021-10-30 16:10 草叶睡蜢 阅读(54) 评论(0) 推荐(0)

Decorator 装饰器模式
摘要:Decorator 装饰器模式 适用场景 在不锈钢其原始代码的基础上动态的给一个对象添加新特性。 在实际开发过程中通常是通过对象注入的方式运用Decorator模式。 示例 MyClass对象通过组合InnerClass对象,既可以向外界提供InnerClass原有的功能,又能通过添加新方法提供扩充 阅读全文

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

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

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

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

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

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

posted @ 2021-10-30 15:10 草叶睡蜢 阅读(48) 评论(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 草叶睡蜢 阅读(57) 评论(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 草叶睡蜢 阅读(60) 评论(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 草叶睡蜢 阅读(91) 评论(0) 推荐(0)

设计原则-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 草叶睡蜢 阅读(102) 评论(0) 推荐(0)

英语词组/短语-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 草叶睡蜢 阅读(44) 评论(0) 推荐(0)

英语词组/短语-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 草叶睡蜢 阅读(53) 评论(0) 推荐(0)

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

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

英语词组/短语-20210926
摘要:hold a math seminar 举行数学研讨会 many pieces of art 很多艺术作品 hold her teacup 端茶杯 in the future 未来 received many years of schooling 接受了多年的学校教育 medical equipme 阅读全文

posted @ 2021-10-26 08:51 草叶睡蜢 阅读(62) 评论(0) 推荐(0)

C#特性知识图谱-五、计算机网络基础知识
摘要:第五章 计算机网络 5.1 网络协议与信息交换 在各种网络通讯协议中其本质就是同一层次的网络应用程序之间如何交换信息的一种约定。 5.2 IP 在计算机网络中为了标识每一台计算机必须给每一台计算机一个唯一的地址。在TCP/IP协议中给计算机所分配的地址称为IP地址。根据地址位数不同分为IPv4和IP 阅读全文

posted @ 2021-10-25 11:31 草叶睡蜢 阅读(114) 评论(0) 推荐(0)

英语词组/短语-20210923
摘要:work overtime 加班 get the job done 完成工作 the ruler is 15 cm in length 尺子长15CM remain neural 保持中立 fall down 摔倒 attract one's attention 引起某人的注意 check all 阅读全文

posted @ 2021-10-25 08:01 草叶睡蜢 阅读(45) 评论(0) 推荐(0)

4.2 Aggregates 聚合体
摘要:Aggregates 聚合体 As said before, an Aggregate is a cluster of objects (entities and value objects) bound together by an Aggregate Root object. This sect 阅读全文

posted @ 2021-10-23 11:17 草叶睡蜢 阅读(452) 评论(5) 推荐(1)

英语词组/短语-20210922
摘要:leave out our garbage in piles 将垃圾堆放在一起 public event 公众活动 stand on the weighing scale 站在体重秤上 capture the moon 拍月亮 lung cancer 肺癌 living beings 生物 prec 阅读全文

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

C#特性知识拓扑图-目录
摘要:一、程序集 二、委托 三、事件 四、多线程 五、计算机网络基础知识 六、网络编程-Socket 七、Lambda 八、并行计算 九、LinQ 十、Entity Framework 阅读全文

posted @ 2021-10-22 14:21 草叶睡蜢 阅读(127) 评论(0) 推荐(0)

C#特性知识图谱-四、多线程
摘要:四、多线程 4.1 线程与线程函数 线程是操作系统分配CPU的基本单元。应用程序把要完成的数据处理任务分为多份,把分割出来的工作任务封装为一个函数由线程负责执行。 线程的运行过程体现为线程函数的运行过程。 4.2 线程分类 前台线程 默认情况下,所有创建的线程其IsBackground属性为Fals 阅读全文

posted @ 2021-10-22 14:15 草叶睡蜢 阅读(233) 评论(0) 推荐(0)

英语词组/短语-20210916
摘要:the northern lights 北极光 natural phenomenon 自然现象 magazine print 杂志印刷 a handmade bell 手工铃铛 a major cause of lung cancer 导致肺癌的主要原因 cooking material 烹饪材料 阅读全文

posted @ 2021-10-22 09:10 草叶睡蜢 阅读(62) 评论(0) 推荐(0)

C#特性知识图谱-一、程序集
摘要:一、程序集(Assembly) 程序集(Assembly)是.Net Framework中的基本的软件模块,它可以包含数目不限的类型,其常见的载体为一个或多个DLL文件,也可以是一个可独立执行的EXE文件。 1.1 程序集的内部结构 使用反编译工具查看程序集内部结构 .Net中的反射(Reflect 阅读全文

posted @ 2021-10-22 09:09 草叶睡蜢 阅读(201) 评论(0) 推荐(0)

英语词组/短语-20210915
摘要:the top of mount 山顶 pay attention to do sth. 专心于某事 fix this computer with ease 修电脑很容易 be careful of stranger 小心陌生人 flip to the next moth on the calend 阅读全文

posted @ 2021-10-21 19:47 草叶睡蜢 阅读(73) 评论(0) 推荐(0)

C#特性知识图谱-三、事件
摘要:三、事件 3.1 事件简介 在事件驱动的软件系统中,符合某种预设条件的情形出现是,一个事件就会被触发。 3.1.1 事件三要素 事件源:激发事件的对象 事件信息:事件本身说携带的信息 事件响应者:响应时间的处理逻辑代码 示例: 3.1.2 事件的特点 一个事件源可以有多个响应者即一对多关联。 事件可 阅读全文

posted @ 2021-10-21 19:22 草叶睡蜢 阅读(163) 评论(0) 推荐(0)

4.1 The Example Domain 领域示例代码
摘要:4.1 The Example Domain 领域示例代码 The examples will use some concepts those are used by GitHub, like Issue, Repository, Label and User, you are already fa 阅读全文

posted @ 2021-10-21 15:39 草叶睡蜢 阅读(675) 评论(0) 推荐(0)

C#特性知识图谱-二、委托
摘要:二、 委托 2.1 委托定义 委托可以看成是一个方法的容器,将某一具体的方法装入后就可以把它当成方法一样调用。一个委托类型的变量可以引用任何一个满足其要求的方法。委托类似于C语言中的函数指针,但并不完全相同。 2.2 委托的使用 一般步骤 定义委托类型。 定义一个或多个符合委托类型要求的方法。 定义 阅读全文

posted @ 2021-10-21 11:10 草叶睡蜢 阅读(152) 评论(0) 推荐(0)

四、Implementation: The Building Blocks 实现:构件
摘要:四、Implementation: The Building Blocks 实现:构件 This is the essential part of this guide. We will introduce and explain some explicit rules with examples. 阅读全文

posted @ 2021-10-20 18:51 草叶睡蜢 阅读(94) 评论(0) 推荐(0)

3.4 Common Principles 常用原则
摘要:3.4 Common Principles 常用原则 Before going into details, let's see some overall DDD principles; 在讨论细节之前,让我们看看DDD的一些总体原则。 3.4.1 Database Provider / ORM In 阅读全文

posted @ 2021-10-20 18:40 草叶睡蜢 阅读(126) 评论(0) 推荐(0)

面向对象基础知识-七、对象间的协作与信息交互
摘要:七、对象间的协作与信息交互 面向对象的程序在运行时会创建多个对象,这些对象需要相互协作共同实现应用程序的各项功能。 对象协作的本质就是对象间的信息交互,它体现为对象之间的相互访问,如: 相互存取字段/属性值 相互调用方法 7.1 对象内部的信息交互 由类内部的字段或属性来完成。 7.2 对象间的信息 阅读全文

posted @ 2021-10-20 11:46 草叶睡蜢 阅读(1000) 评论(0) 推荐(0)

英语词组/短语-20210914
摘要:make wooden furniture 做木质家具 a huge amount of data 大数据 I hit my food on the table 我的脚撞到桌子上了 practice yoga 练瑜伽 drive the horse 骑马前行 chemical element 化学元 阅读全文

posted @ 2021-10-20 09:33 草叶睡蜢 阅读(45) 评论(0) 推荐(0)

3.3 Execution Flow of a DDD Based Application 基于DDD的应用程序执行流程
摘要:3.3 Execution Flow of a DDD Based Application 基于DDD的应用程序执行流程 The figure below shows a typical request flow for a web application that has been develop 阅读全文

posted @ 2021-10-19 12:02 草叶睡蜢 阅读(116) 评论(0) 推荐(0)

面向对象基础知识-六、对象比较
摘要:六、对象比较 要对多个对象进行排序就必须解决两个对象间的大小比较问题。 提示:对象比较的关键是制定出确定对象大小的比较规则!支持大小比较的对象将其放入到一个标准集合中就直接支持排序和查找,使用起来非常方便。 6.1 IComparable接口 CompareTo()方法用于定义对象的比较规则,其返回 阅读全文

posted @ 2021-10-19 10:50 草叶睡蜢 阅读(129) 评论(0) 推荐(0)

英语词组/短语-20210909
摘要:electric device 电子设备 eating hamburgers with great enjoyment 很享受的吃汉堡 a popular tourist attraction 著名的旅游景点 staff member 职员 a temporary home 临时居所 this ou 阅读全文

posted @ 2021-10-19 08:18 草叶睡蜢 阅读(83) 评论(0) 推荐(0)

面向对象基础知识-五、对象序列化
摘要:五、对象序列化 对象序列化主要解决对象状态(指某一时刻对象所拥有的各个字段/属性值的集合)的保存问题。 5.1 序列化(Serialization) 将对象状态保存到其它媒介(常用媒介有流Stream和字符串String)中的过程称为对象的序列化(Serialization)。 流(Stream)代 阅读全文

posted @ 2021-10-18 16:52 草叶睡蜢 阅读(135) 评论(0) 推荐(0)

面向对象基础知识-四、对象复制
摘要:四、对象复制 对象的复制是指把一个现有的对象克隆一份,得到一个新的对象,新老对象是完全独立的。 4.1 对象的浅复制(shallow copy) 使用简单的字段值拷贝方法复制一个对象 4.2 深度复制(Deep Copy) 4.2.1 浅复制的问题 浅复制的问题是无法复制出真正独立的新对象,如下图所 阅读全文

posted @ 2021-10-18 11:45 草叶睡蜢 阅读(132) 评论(0) 推荐(0)

3.2 Dependencies of the Projects in the Solution 解决方案中项目间的依赖项
摘要:3.2 Dependencies of the Projects in the Solution 解决方案中项目间的依赖项 The diagram below shows the essential dependencies (project references) between the proj 阅读全文

posted @ 2021-10-18 10:24 草叶睡蜢 阅读(139) 评论(0) 推荐(0)

英语思维-20210906
摘要:stay inside 待在屋里 a tough guy 硬汉 stand on the top of the mountain 站在山顶 bring sth. into ... 带某东西到某地方 every day 每天 the stupid donkey 蠢驴 cover sb.‘s ears 阅读全文

posted @ 2021-10-18 08:29 草叶睡蜢 阅读(156) 评论(0) 推荐(0)

英语思维-20210907
摘要:the college student 大学生 math course 数学课 homeless 无家可归 her condition 她的身体状况 financial deficit 亏损,财政赤字 a new pair of shoes 一双新鞋 his pocket money 零花钱 its 阅读全文

posted @ 2021-10-18 08:15 草叶睡蜢 阅读(62) 评论(0) 推荐(0)

英语思维-20210908
摘要:fashion designer 服装设计师 make clothes 做衣服 the volcano eruption 火山爆发 the chess competition 象棋比赛 doom him to failure 注定失败 my recent photos 我的近照 fall down 阅读全文

posted @ 2021-10-18 08:09 草叶睡蜢 阅读(45) 评论(0) 推荐(0)

3 Implementation: The Big Picture 实现:蓝图
摘要:##三、Implementation: The Big Picture 实现:蓝图 ###3.1 Layering of a .NET Solution .Net解决方案的分层 The picture below shows a Visual Studio Solution created usin 阅读全文

posted @ 2021-10-16 11:51 草叶睡蜢 阅读(156) 评论(0) 推荐(0)

面向对象基础知识-三、对象组合
摘要:三、对象组合 3.1 对象的组合方式 对象组合即一个对象包容另一个对象,是对象相互合作关系中的一种。 一对一 A对象完全包含B对象,容器对象(A)管理其内部被包含对象(B)的生命周期。 B对象是独立的,A对象内部引用B对象。 一对多 使用集合类型的内部知道实现一对多的对象组合方式。 包含 引用 3. 阅读全文

posted @ 2021-10-16 11:27 草叶睡蜢 阅读(603) 评论(0) 推荐(0)

面向对象基础知识-目录
摘要:一、类和对象 二、对象的创建和销毁 三、对象组合 四、对象复制 五、对象序列化 六、对象比较 七、对象间的协作与信息交换 提示:本学习笔记所有内容是基于金旭亮老师的《面向对象软件开发实践》相关课程进行总结形成,如想学习相关课程请点击响应的链接进入。 阅读全文

posted @ 2021-10-16 10:33 草叶睡蜢 阅读(72) 评论(0) 推荐(0)

面向对象基础知识-二、对象的创建和销毁
摘要:二、对象的创建和销毁 2.1 对象的创建 2.1.1 new关键字 类名 变量名=new 类名(); 2.1.2 对象注入 构造函数注入 类A需要使用类B,类A内部用一个私有字段保存外部注入的B对象的引用。 基于接口的对象注入 定义接口 定义实现接口的类 定义需要调用的类并在构造函数中注入需要的接口 阅读全文

posted @ 2021-10-16 10:26 草叶睡蜢 阅读(101) 评论(0) 推荐(0)

面向对象基础知识-一、类和对象
摘要:一、类和对象 1.1 类和对象的基本概念 1.1.1 类 Class 抽象 抽象模型 1.1.2 对象 Object 类的实例化 1.1.3 类和对象之间的关系 1.2 对象和对象变量 1.2.1 对象和对象变量之间的关系 引用类型和值类型的区别 引用类型 Reference Type:“类”类型的 阅读全文

posted @ 2021-10-16 08:39 草叶睡蜢 阅读(132) 评论(0) 推荐(0)

2.3 Core Building Blocks 核心构件
摘要:Core Building Blocks 核心构件 DDD mostly focuses on the Domain & Application Layers and ignores the Presentation and Infrastructure. They are seen as deta 阅读全文

posted @ 2021-10-15 10:55 草叶睡蜢 阅读(193) 评论(0) 推荐(0)

2.2 DDD Layers & Clean Architecture DDD分层和简洁架构
摘要:DDD Layers & Clean Architecture DDD分层和简洁架构 There are four fundamental layers of a Domain Driven Based Solution; 一个基于领域驱动的解决方案有四层,如下图所示: Business Logic 阅读全文

posted @ 2021-10-15 10:19 草叶睡蜢 阅读(418) 评论(0) 推荐(0)

2.1 OOP & SOLID
摘要:OOP & SOLID Implementing DDD highly relies on the Object Oriented Programming (OOP) and SOLID principles. Actually, it implements and extends these pr 阅读全文

posted @ 2021-10-15 09:44 草叶睡蜢 阅读(136) 评论(0) 推荐(0)

2 What is the Domain Driven Design? 什么是领域驱动设计
摘要:What is the Domain Driven Design? 什么是领域驱动设计 Domain-driven design (DDD) is an approach to software development for complex needs by connecting the impl 阅读全文

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

1.2 Simple Code!(翻译)
摘要:Simple Code! 简洁编码 Playing football is very simple, but playing simple football is the hardest thing there is. — Johan Cruyff 踢足球非常简单,但踢简单的足球是最难的事情。— J 阅读全文

posted @ 2021-10-15 09:19 草叶睡蜢 阅读(244) 评论(0) 推荐(0)

1.1 目标(翻译)
摘要:Goal The goals of this book are; 本书目标: Introduce and explain the DDD architecture, concepts,principles, patterns and building blocks. 介绍并诠释DDD架构、概念、原则 阅读全文

posted @ 2021-10-14 21:10 草叶睡蜢 阅读(272) 评论(0) 推荐(0)

一、简介(翻译)
摘要:INTRODUCTION 简介 This is a practical guide for implementing the Domain Driven Design (DDD). While the implementation details rely on the ABP Framework 阅读全文

posted @ 2021-10-14 18:42 草叶睡蜢 阅读(261) 评论(0) 推荐(0)

(翻译)领域驱动设计实现-Implementing Domain Driven Design
摘要:简介 Implementing Domain Driven Design 领域驱动设计实现 A practical guide for implementing the Domain Driven Design with the ABP Framework 基于ABP框架实现领域驱动设计的一个实用指 阅读全文

posted @ 2021-10-14 18:26 草叶睡蜢 阅读(921) 评论(4) 推荐(2)