打給賀,筆者最近想學 Design Pattern
有買參考書 7 天學會設計模式 : 設計模式也可以這樣學
因為書本上是用Java,我對JavaScript比較熟悉
因此想透過 Gemini 來輔助學習
預期的撰寫架構:
https://refactoring.guru/design-patterns/catalog
有2種是本書中提及,但網站沒出現的
| 設計模式名稱 | |
|---|---|
| 單例模式 Singleton | ![]() |
| 簡單工廠模式 Simple Factory | |
| 工廠模式 Factory | ![]() |
| 抽象工廠模式 Abstract Factory | ![]() |
| 策略模式 Strategy | ![]() |
| 裝飾者模式 Decorator | ![]() |
| 觀察者模式 Observer | ![]() |
| 命令模式 Command | ![]() |
| 轉接器模式 Adapter | ![]() |
| 表象(外觀)模式 Facade | ![]() |
| 樣版模式 Template | ![]() |
| 合成模式 Composite | ![]() |
| 狀態模式 State | ![]() |
| 代理模式 Proxy | ![]() |
| 走訪器模式 Iterator | ![]() |
| 建造者模式 Builder | ![]() |
| 責任鏈模式 Chain Of Responsibility | ![]() |
| 解譯器模式 Interpreter | |
| 中介者模式 Mediator | ![]() |
| 原型模式 Prototype | ![]() |
| 橋梁模式 Bridge | ![]() |
| 備忘錄模式 Memento | ![]() |
| 蠅量級(享元)模式 Flyweight | ![]() |
| 拜訪者模式 Visitor | ![]() |
圖片取自
https://refactoringguru.cn/
沒有屯文章,每日產出![]()
感謝 未知作者 的精彩分享!
JavaScript 生態系統真的很豐富,這樣的分享對開發者很有幫助。
也歡迎版主有空參考我的系列文「南桃AI重生記」:https://ithelp.ithome.com.tw/users/20046160/ironman/8311
如果覺得有幫助的話,也歡迎訂閱支持!