Sam Huang

https://www.sam-huang.info/ 一扁帽,一壺酒,一溪雲,佔得人間一味愚,此心安處是吾鄉

[開發議題一起想] 物件導向怎麼切?

https://levelup.gitconnected.com/what-are-general-responsibility-assignment-software-patterns-6ad9635a44da

RevConsult 軟體開發顧問

https://consult.revtel.tech/


General Responsibility Assignment Software Patterns 通用職責分配模式是一種在規劃物件導向時很好的思考方式

設計時要做到低耦合及高聚合這個概念大家都知道,但具體該怎麼做卻是十個人有一百種做法

這時候我們可以將這個問題反過來想:「兩個物件的分隔線發生於任一方的負面錯誤不會外溢到對方」

善用反向究責的角度往往可以提供更多有價值的資訊

https://levelup.gitconnected.com/what-are-general-responsibility-assignment-software-patterns-6ad9635a44da




CC BY-NC-ND 2.0

Like my work?
Don't forget to support or like, so I know you are with me..

2

Want to read more ?

Login with one click and join the most diverse creator community.