????1??- DRY?? Don’t repeat yourself

????DRY ?????????????????????????????????????????????????????????????????????????????????????????????????????£???????ζ??????????????????????????????Щ???????????????????????????????????????????·??????????????е?????????????????Щ????????????????μ??????

????DRY ??????????????????????????????????????????????????????????????顣?????????????????Щ???????д????????unit testing????????????????????????????£??????????????????????????????DRY?????????Щ?????????????????unit test????????????????????????磺??????unit test?????test cases?????????????????е???????????????????test case???????????????????????????????????????????????????test cases????????????DRY????????????????

????2??- ??С?????

?????????????????????????????????????????д???С???????

?????????????????????

????????????????????????????????????????????

????????????????????

??????????????????????????????????????for????????????????????????????????????????С??????????????????????????????????????????????????????????????????????????????Щ??????ó?????????????????Щд???????????Щ?????????????

????3??- ??????????淶

??????ò?????????????淶????????????????????????????????????????????????????????????????????“????????”????綽????????????Щ????????Щ??????????????е????????????? ??????????Щ?????

????????????????淶 ?????????????????????????????????????????????

????4??- ?????????????????

?????????????????????????ο???????SOLID ????????????????????????????????????????????????????????????Customer???????????????????sales ??????????????????????к?Customer??????????????

????5??- ????????????

???????????????????????Ρ?

?????????????????????????????????????package??????????namespace????????????????????????????????????????????????????????????????????????????????

?????????????? ??ν?????????????????????????????????????????????淶???????????????????????????????????????????????????????????????????

????6??- ????????????????

???????????????BUG????????????BUG??????????????????????????????????????????????????п?????????д??????????????????????????????δ????????????????????????????????????????????????????