??????????????????????
???????????? ???????[ 2013/6/9 14:18:46 ] ????????
?????????
????1 ?????????????????????????????????黥?????????????????????????????????????????????????п?????????????????????????????????Щ????????????????????
????2 ?????????????????????????????????????????????????????????????????????????μ? Mock ????????ú?????????????????????????????????????????????????????????????????????
????3 ?????????????????????????????????????????
??????????????д????????е???????????????е????????????????
????2?? ??????????????С?
??????????????????????????????????У????????????????ó???????????????????????????????????????? ???????????????????????????????????в?????????п??????“?????”????棨?????????????????ò????????????????????????? ?????????????????????????÷??????????????????????????????????????????????????????????????????
????3?? ????仯??
?????????????????????仯????????仯??????????????????????????????????????????????????Щ?????仯????????????????????У????????????ú???????????????????????????????????????????????????淽???????
???????????????
????1?? ????????? srp ?? single responsibility principle ??
????????????????t??????????????????????仯??????仯??????????????????????????е???????? ????仯???????????仯?????????????????仯??????????е????????????????Щ????????????????????仯?????????????????? ????????????????????????????ζ????????????????????
????2?? ????????? ocp ?? open closed principle ??
??????????????????????????????μ?????????????????????ζ???????????????????μ??????μ??????????????1??????????????????????????????????????????????????????????????????????????????
????3?? Liskov ?滻??? lsp ?? liskov subtitle principle ??
?????????????????滻????????????????????????????????????????滻?????????????????????????????? ?滻???????????????滻?????????????????????? switch ?????ж??????? ??????????滻????????????????????????????????????д??????????????????????????????????????????????
????4?? ??????????? dip ?? dependent inverse principle ??
?????????鯔?????????????飬??????????????????????????????????????е?????????仯???????? ???????????????????????????????????????????????????????仯??????????????????????????????Щ????????????????????????????? ????Э?飬??????? api ????????????????????????Щ?÷??????????????????ú????????????????飬??????????á? Java ?????б??????? j2ee ????????????? spring ?????????????
????5 ??????????? isp ?? interface segregation principle ??
???????????????????????????????????????????????????????????н???ж??????????????????????С??????????????????????ü????????????????????????????С???????????????????
???????????????????????????????????????????????????????????????????“С”?????
??????????????????????????
???????????????????????????????????????????????????????????????????????????????????и?????ε?????????????????????????????????????????????? cmmi ????????????????? rup ?????????????????Щ???????????????????
???????????????о??????? Rup ??????????????????????????????????????????????????д????????????????????????????????????μ????????????о????????????? ???????Щ??????????????????????????????????????????仯??“????”?????????????????????????????Ч??????????????? ????????????????????????У????“???ú?”?????????????????????????????????????????????????λ????б?????????????????????? ???????????????????????????????????????仯???????????е??????
??????y??????????????????????м??????????????????????????????????????????????????????????????????“С??????”????????????“??????”???????????????????????????????????????
??????
???·???
??????????????????
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