File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ OOP 作为一个很有年代感的编程范式,源自于早年间大型软件
2525
2626此外,另一条很有用的则是依赖倒置。一个 OOP 新手很常犯的错就是让不同层次的类直接互相调用,导致一个类的改动牵动了另一个几乎无关的类,正确的做法应该是让两者依赖于接口,使用接口隔离依赖链条。
2727
28- [[ OOP 设计原则]]
28+ [[ SOLID 设计原则]]
2929
3030## 设计模式
3131* 遵循设计原则,对实践问题的优质解答。*
File renamed without changes.
Original file line number Diff line number Diff line change 11---
22created : 2025-03-13
33updated : 2025-03-13
4+ tags :
5+ - OOP
46---
57## 问题 / 用途
68在某些时候会遇到需要频繁创建和释放对象的场景(例如游戏中),对象的频繁创建和释放会导致内存碎片的产生和内存空间的频繁分配,从而降低性能。
Original file line number Diff line number Diff line change 11---
2- created : " 2025-12-08"
3- updated : " 2025-12-08"
2+ created : 2025-12-08
3+ updated : 2025-12-08
4+ tags :
5+ - OOP
46---
57[ 软件架构入门 - 阮一峰的网络日志] ( https://ruanyifeng.com/blog/2016/09/software-architecture.html )
68
You can’t perform that action at this time.
0 commit comments