Skip to content

Commit 9bcf7b5

Browse files
committedOct 10, 2019
no message
1 parent 91ede57 commit 9bcf7b5

File tree

4 files changed

+25
-5
lines changed

4 files changed

+25
-5
lines changed
 

‎J2eeInterceptingFilterDemo.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,9 @@ public static void main(String[] args) {
9292
}
9393
}
9494

95-
//j2ee模式-拦截过滤器模式
95+
//j2ee模式-拦截过滤器模式
96+
/*
97+
Authenticating request: HOME
98+
request log: HOME
99+
Executing request: HOME
100+
*/

‎J2eeServiceLocatorPatternDemo.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,14 @@ public static void main(String[] args) {
114114
}
115115
}
116116

117-
//j2ee 服务定位器模式
117+
//j2ee 服务定位器模式
118+
/*
119+
Looking up and creating a new Service1 object
120+
Executing Service1
121+
Looking up and creating a new Service2 object
122+
Executing Service2
123+
Returning cached Service1 object
124+
Executing Service1
125+
Returning cached Service2 object
126+
Executing Service2
127+
*/

‎J2eeTransferObjectPatternDemo.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,10 @@ public static void main(String[] args) {
9292
}
9393
}
9494

95-
//j2ee 对象传输模式
95+
//j2ee 对象传输模式
96+
/*
97+
Student: [RollNo : 0, Name : Robert ]
98+
Student: [RollNo : 1, Name : John ]
99+
Student: Roll No 0, updated in the database
100+
Student: [RollNo : 0, Name : Michael ]
101+
*/

‎忘掉设计模式,使用最强最稳定最有套路的万能编程思维-python oop四步转化公式。/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@
7070
oop是 狗.eat(shit)
7171
```
7272

73-
73+
## python编程范式
7474
```
75-
编程范式
7675
1.1 方式一,平铺指令。 从上往下叠加指令,适合简单的独立脚本。不需要和没机会被别的模块导入。
7776
1.2 方式二,面向过程函数式编程。适合实现独立的转化功能,基本原理是要实现转化 y = f(x),
7877
适合函数无依赖状态(不需要在多个函数中频繁的传入和return相同意义的参数)。

0 commit comments

Comments
 (0)
Please sign in to comment.