???????????????
???????????? ???????[ 2013/5/27 13:39:02 ] ????????
?塢?????????(ISP)
(1) ???????????????????????????С???????
(2) ??????????????????????????.??????????????????????????????????????????????????????????.??"?????2??"???????????????????????????ε????.
(3) ????????????????????????????????????к????????.?????????????????????????????????????????????????????.???????????y?????????????????????????.
???????/?????????(Composite/Aggregate Reuse Principle??CARP)
??????μ????????????Щ???е????????????????????;?μ?????????Щ?????????????????й???????.???????????????????????:???????ú??/?????????????ü??.
????????????(Law of Demeter LoD)
?????????????(Least Knowledge Principle??LKP)????????????????????????????о?????????????.
???????????????????????????????????????????1987????????Ian Holland???????????????????????????(Demeter)?????????????????????????????[LIEB89][LIEB86].????????????????????????????????????????????????????????????????????????.
????κ??????????OO????????????????????????????????????????????:
(1) ??????????????????(Only talk to your immediate friends)
(2) ?????"?????"???(Don't talk to strangers)
(3) ?????????λ?????????λ???????????????????????Щ????λ?????????????λ.
????????????????????????????????????????????????????????????е????????????????????????????????????????????????????????á?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11