Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
ydf0509 committed Oct 16, 2019
1 parent e2be28d commit e354f9e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
1)模块级 全局变量 + 函数
2)在一组函数中无限频繁传参 和return
3)无效废物滑稽类伪oop
4) 正宗oop
4) 真oop
使用4种编程方式来实现男生、女生吃喝拉撒长身体,并说明缺点。
总结oop 四步转化公式。oop转化公式能够做到万能通用,适用一切任意编程场景,能够大幅度减少编程难度和减少代码行数。
Expand All @@ -15,6 +15,7 @@
## oop转化公式
```
一、针对已有全局变量加函数无限复制粘贴扣字的写法,
0) 如果没有写成极致的全局变量加函数写法,就需要在脑袋里多多的抽取全局变量,全局变量多多益善(要大大减少反复return/传参)。
1) 模块级降级为类名
2) 全局变量改成实例属性
3) 函数改为方法
Expand Down

0 comments on commit e354f9e

Please sign in to comment.