發覺Design Pattern 呢一本書幾有用.

94 回覆
45 Like 4 Dislike
2022-09-01 22:19:34
今集唔講Houdini著.

講下軟件台冷門野Design Pattern.
應該個個都聽過, 呢本書.


以前做desktop application好彩睇下佢Case Study.
1. command (undo, redo),
2. mediator,
3. observer (notify subscriber, unreal UMG editor).
4. Facade (Java CRUD backend)
5. state......

仲有大量.... 寫唔晒.
依家好多game engine, high level language已經整埋比你.
Prototype: Unity: Prefab, Unreal: Blueprint
Iterator: Collection, for-each loop
邊個再講Singleton實屌.
香港unity project濫用Singleton既情況 簡直失晒控.

本身整整下AK47 weapon system. 又醒起呢本書.

Decorator都係第一次寫. C++同Blueprint分開都寫過一次.
又學多樣Pattern



attachment system undo/redo就command pattern
2022-09-01 22:22:50
多謝推介
2022-09-01 22:30:54
Gang of 4係必睇
2022-09-01 22:31:34
中文譯四人幫.
2022-09-01 22:37:45
2022-09-01 23:24:38
好多老野出沒
2022-09-02 03:20:37
啲Bootcamp撚或者自學咗一排寫咗個Project仔就話想入行嗰啲9成唔識Design Pattern
2022-09-02 03:51:04
識啲理論但寫果時好難用到出嚟
好似以前學作文,唔知點樣放到啲修辭技巧入篇文咁
2022-09-02 04:25:46
依本正野
2022-09-02 09:20:22
識嘢
Intro to Algo
都要睇
2022-09-02 09:50:25
2022-09-02 10:33:53
我都唔識design patterns
因為喺揼code同埋讀code有返咁上下經驗睇似乎先有用
2022-09-02 11:47:19
好多時都會用到喎
就算自己唔會寫出嚟,好多時用緊嘅Framework/Library其實都有用緊
2022-09-02 11:54:41
copy and paste pattern 最實用
2022-09-02 12:16:31
Stackoverflow pattern
2022-09-02 12:23:53
寫cut copy paste delete其實都有D tricky.
Delete唔係真 delete. 因為有undo/redo.
copy唔係 一個command.
because copy only need save to clipboard.
cut同delete有share既logic.
paste反而算容易.

如果要整埋hierarchy就需要用Observer pattern.

Stack<List<ICommand>> commands;
2022-09-02 12:27:13
反而見好多無論咩情況都用DI
2022-09-02 12:31:12
建築佬here
就係睇完呢本書開哂眼界
2022-09-02 12:38:35
封面都寫埋重點
玩得熟依2樣已經勁過市場9成人
2022-09-02 12:52:50
最正係case study教寫個text editor.
果度6個pattern熟 已經唔洗怕interview問pattern.
2022-09-02 12:56:13
比樓主青到又想翻睇
2022-09-02 12:56:27
Functional Program > OOP
2022-09-02 13:17:29
2022-09-02 13:18:55
我有本書但冇認真睇過,當年年少氣盛覺得駛鬼睇呢d書

今晚搵返出黎睇下有冇新體會先
2022-09-02 14:56:50
只係睇過其他resources,未睇過呢本,有時間睇下先
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台潮流台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台成人台黑 洞