{"id":84112,"date":"2020-05-15T13:09:01","date_gmt":"2020-05-15T05:09:01","guid":{"rendered":"http:\/\/4563.org\/?p=84112"},"modified":"2020-05-15T13:09:01","modified_gmt":"2020-05-15T05:09:01","slug":"%e5%af%b9%e4%ba%8e%e9%87%8d%e6%9e%84%e6%9c%89%e5%87%a0%e4%b8%aa%e7%96%91%e9%97%ae%ef%bc%8c%e5%b8%8c%e6%9c%9b%e8%83%bd%e8%bf%87%e6%9d%a5%e4%ba%ba%e8%83%bd%e8%a7%a3%e7%ad%94%e4%b8%80%e4%b8%8b%ef%bc%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=84112","title":{"rendered":"\u5bf9\u4e8e\u91cd\u6784\u6709\u51e0\u4e2a\u7591\u95ee\uff0c\u5e0c\u671b\u80fd\u8fc7\u6765\u4eba\u80fd\u89e3\u7b54\u4e00\u4e0b\uff01"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5bf9\u4e8e\u91cd\u6784\u6709\u51e0\u4e2a\u7591\u95ee\uff0c\u5e0c\u671b\u80fd\u8fc7\u6765\u4eba\u80fd\u89e3\u7b54\u4e00\u4e0b\uff01               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <span><i><\/i> 10<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u6700\u8fd1\u5728\u8bfb\u300a\u91cd\u6784\uff1a\u6539\u5584\u65e2\u6709\u4ee3\u7801\u7684\u8bbe\u8ba1\u300b\u8fd9\u672c\u4e66\uff0c\u9a6c\u4e0a\u5c31\u770b\u5b8c\u4e86\u3002\u5bf9\u4e8e\u91cd\u6784\u7684\u601d\u60f3\u6211\u662f\u975e\u5e38\u8ba4\u540c\u7684\uff0c\u4f46\u662f\u5bf9\u4e8e\u8fd9\u4e9b\u91cd\u6784\u624b\u6cd5\u7684\u843d\u5b9e\u5374\u6709\u4e00\u4e2a\u7591\u95ee\u3002<\/p>\n<pre><code>\u4f5c\u8005\u4ecb\u7ecd\u4e86 60 \u591a\u79cd\u91cd\u6784\u624b\u6cd5\uff0c\u6bcf\u79cd\u91cd\u6784\u624b\u6cd5\u90fd\u914d\u6709\u975e\u5e38\u5177\u4f53\u7684\u3001\u6807\u51c6\u7684\u3001\u5b89\u5168\u7684\u91cd\u6784\u6b65\u9aa4\u3002\u90a3\u4e9b\u91cd\u6784\u624b\u6cd5\u7684\u52a8\u673a\u6211\u57fa\u672c\u4e0a\u90fd\u80fd\u7406\u89e3\uff0c\u4e5f\u77e5\u9053\u6700\u7ec8\u4ee3\u7801\u5927\u6982\u4f1a\u91cd\u6784\u6210\u4ec0\u4e48\u6837\u5b50\uff0c\u4f46\u662f\u90a3\u4e9b\u91cd\u6784\u624b\u6cd5\u7684\u5177\u4f53\u6b65\u9aa4\u6211\u662f\u771f\u7684\u6ca1\u8bb0\u4f4f\u51e0\u4e2a\u3002\u867d\u7136\u4f5c\u8005\u81ea\u5df1\u4e5f\u8bf4\uff0c\u4ed6\u5e73\u65f6\u5f00\u53d1\u4e2d\u4e5f\u4e0d\u4f1a\u5b8c\u5168\u53c2\u7167\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u53ea\u6709\u91cd\u6784\u51fa\u4e86\u95ee\u9898\u65f6\uff0c\u624d\u4f1a\u6309\u7167\u8fd9\u4e9b\u6b65\u9aa4\u8fdb\u884c\u3002\u4f46\u6211\u8fd8\u662f\u6709\u51e0\u4e2a\u7591\u95ee\uff0c\u60f3\u95ee\u95ee\u5927\u5bb6\uff1a  1.\u5927\u5bb6\u80fd\u8bb0\u4f4f\u90a3\u4e9b\u91cd\u6784\u624b\u6cd5\u7684\u5177\u4f53\u6b65\u9aa4\u4e48\uff0c\u8fd8\u662f\u8bf4\u91cd\u6784\u591a\u4e86\u5c31\u4f1a\u81ea\u7136\u800c\u7136\u7684\u8bb0\u4f4f\u4e86\uff1f 2.\u5927\u5bb6\u8fdb\u884c\u91cd\u6784\u65f6\uff0c\u4f1a\u53c2\u7167\u8fd9\u4e9b\u5177\u4f53\u6b65\u9aa4\u4e48\uff0c\u8fd8\u662f\u6309\u81ea\u5df1\u7684\u60f3\u6cd5\u6765\uff1f\u5982\u679c\u4f1a\u7684\u8bdd\uff0c\u76f8\u4f3c\u5230\u4ec0\u4e48\u7a0b\u5ea6\u5462\uff1f <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>35<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1412263\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lhx2008 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u6709\u770b\u8fc7\u8fd9\u672c\uff0c\u6211\u7406\u89e3\u7684\u8bdd\uff0c\u9996\u5148\u662f\u8981\u4fdd\u8bc1\u65e7\u4ee3\u7801\u7684\u7684\u6d4b\u8bd5\u7528\u4f8b\u5b8c\u5584\uff0c\u7136\u540e\u662f\u6309\u9ad8\u5185\u805a\uff0c\u4f4e\u8026\u5408\u7684\u601d\u60f3\u91cd\u65b0\u5212\u5206\u529f\u80fd\u7c7b\uff0c\u62c6\u6389\u6216\u8005\u7ec4\u88c5\u4e00\u4e9b\u73b0\u6709\u4ee3\u7801\u3002\u8bc6\u522b\u65b0\u589e\u7684\u6269\u5c55\u70b9\uff0c\u8fd0\u7528\u4e00\u4e9b\u5e38\u89c1\u7684\u8bbe\u8ba1\u6a21\u5f0f\u6765\u63d0\u9ad8\u4ee3\u7801\u7684\u6269\u5c55\u6027\uff08\u5f00\u95ed\u539f\u5219\uff09\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412264\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u8fc7\u8fd9\u672c\u4e66\uff0c\u5f88\u8d5e\u540c\u4f5c\u8005\u7684\u7406\u5ff5\u548c\u65b9\u6cd5\u3002\u4f46\u5177\u4f53\u7684\u771f\u7684\u662f\u4e00\u70b9\u90fd\u6ca1\u8bb0\u4f4f\u3002\u53cd\u6b63\u6211\u91cd\u6784\u5c31\u4e00\u62db\uff0c\u539f\u5148\u7684\u4e0d\u52a8\uff0c\u65b0\u9879\u76ee\u6162\u6162\u66ff\u6362\u8001\u9879\u76ee\u3002\u4e5f\u8bb8\u80fd\u66ff\u6362\u5b8c\uff0c\u8001\u9879\u76ee\u4e0b\u7ebf\uff0c\u4e5f\u8bb8\u4e0d\u80fd\u66ff\u6362\u5b8c\u3002\u4f46\u90a3\u53c8\u600e\u6837\uff0c\u53cd\u6b63\u6211\u770b\u4e0d\u89c1\u7684\u5c4e\u5c31\u4e0d\u5b58\u5728\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412265\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xuanbg \u770b\u6837\u5b50\u4e0d\u6b62\u6211\u4e00\u4e2a\u4eba\u8fd9\u6837\uff0c\u5b89\u5fc3\u4e86\uff01\u6211\u611f\u89c9\u6ca1\u6709\u591a\u5c11\u4eba\u80fd\u505a\u5230\u7167\u7740\u4f5c\u8005\u4ecb\u7ecd\u7684\u6b65\u9aa4\u53bb\u91cd\u6784\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412266\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yesterdaysun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684\u7406\u89e3\u5c31\u662f\u91cd\u6784\u662f\u9700\u8981\u53cd\u590d\u523b\u610f\u7ec3\u4e60\u7684, \u5c31\u662f\u6709\u7684\u65f6\u5019\u5bf9\u7740\u4e00\u6bb5\u4ee3\u7801\u523b\u610f\u7684\u7ec3\u4e60\u600e\u4e48\u91cd\u6784\u7684\u66f4\u597d, \u7ec3\u591a\u4e86, \u5e73\u65f6\u81ea\u7136\u800c\u7136\u5c31\u80fd\u7528\u4e0a, \u5fd8\u4e86\u662f\u54ea\u672c\u4e66\u63d0\u5230\u7684\u6982\u5ff5\u4e86, \u4ee3\u7801\u7684\u574f\u5473\u9053 code smell, \u5f53\u4f60\u80fd\u610f\u8bc6\u5230\u4e00\u4e9b\u574f\u5473\u9053\u7684\u65f6\u5019, \u5982\u679c\u4e4b\u524d\u6709\u7ec3\u8fc7\u76f8\u5e94\u7684\u91cd\u6784\u65b9\u6cd5, \u81ea\u7136\u5c31\u80fd\u7528\u4e0a. <\/p>\n<p>\u5177\u4f53\u7684\u8bdd\u8fd8\u662f\u7528 IDE \u73b0\u6210\u7684\u91cd\u6784\u5de5\u5177, \u6bd4\u5982 IDEA \u7684\u5168\u5957\u5de5\u5177, \u57fa\u672c\u4e0a\u6539\u540d, \u63d0\u53d6\u65b9\u6cd5\u4e4b\u7c7b\u7684\u6700\u5e38\u7528, \u5176\u4ed6\u7684\u591a\u5c11\u4e5f\u4f1a\u7528\u5230, \u4f46\u662f\u5168\u7528\u5230\u4e5f\u4e0d\u592a\u73b0\u5b9e.<\/p>\n<p>\u4f46\u662f\u4e0a\u9762\u6709\u4eba\u63d0\u5230\u7684\u6d4b\u8bd5\u4e5f\u5f88\u91cd\u8981, \u80fd\u4fdd\u8bc1\u91cd\u6784\u7684\u65f6\u5019\u5373\u4f7f\u6b65\u5b50\u5927\u4e00\u70b9, \u4e5f\u80fd\u786e\u4fdd\u529f\u80fd\u6ca1\u6709\u88ab\u7834\u574f\u6389.<\/p>\n<p>\u53ef\u4ee5\u627e\u4e00\u4e9b\u8bb2 TDD \u7684\u8d44\u6599\u770b\u770b, \u90a3\u91cc\u91cd\u6784\u5e94\u8be5\u7528\u7684\u633a\u591a\u7684, \u4f46\u662f\u53ef\u4ee5\u5148\u4e0d\u7ba1 TDD, \u90a3\u4e2a\u786e\u5b9e\u8fd8\u662f\u6709\u70b9\u96be\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412267\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yesterdaysun \u6211\u4eec\u4e24\u4e2a\u60f3\u6cd5\u5927\u4f53\u7c7b\u4f3c\uff0c\u770b\u6837\u5b50\u6211\u8fd8\u6ca1\u8dd1\u504f\u3002\u6628\u5929\u521a\u770b\u5b8c Kent Beck \u5199\u7684 TDD \u7684\u4e66\uff0c\u5982\u679c\u628a\u5199\u4ee3\u7801\u6bd4\u4f5c\u7ec3\u4e5d\u9633\u771f\u7ecf\uff0c\u90a3\u4e48\u6211\u4eec\u5e73\u65f6\u90fd\u662f\u90ed\u9756\uff0c\u6b63\u7740\u7ec3\uff1b TDD \u5c31\u8981\u6c42\u6211\u4eec\u53d8\u6210\u6b27\u9633\u950b\uff0c\u8981\u5012\u7740\u7ec3\u3002TDD \u8be5\u4e86\u89e3\u7684\u6211\u90fd\u4e86\u89e3\u4e86\uff0c\u4e0d\u8fc7\u5b9e\u8df5\u8d77\u6765\u786e\u5b9e\u6709\u96be\u5ea6\uff0c\u5b8c\u6210\u8fd9\u79cd\u601d\u7ef4\u8f6c\u53d8\u9700\u8981\u8fd8\u4e00\u4e9b\u65f6\u95f4\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412268\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 52coder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u672c\u4e66\u65ad\u65ad\u7eed\u7eed\u770b\u4e86\u4e00\u5e74\u591a\uff0c\u6709\u7684\u65b9\u6cd5\u770b\u7684\u65f6\u5019\u4f1a\u4ea7\u751f\u5171\u9e23\uff0c\u6709\u7684\u53ef\u80fd\u6ca1\u6709\u5b9e\u9645\u64cd\u4f5c\u8fc7\uff0c\u867d\u7136\u660e\u767d\u4f5c\u8005\u76ee\u7684\uff0c\u4f46\u611f\u89e6\u4e0d\u6df1\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412269\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vitoliu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5c0f\u6539\u52a8\u76f4\u63a5\u66ff\u6362\uff0c\u5927\u6539\u52a8 facade+\u5f00\u5173                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412270\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hangszhang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u672c\u4e66\u592a\u5c4c\u4e86,\u4f46\u662f\u6211\u770b\u6211\u5c31\u5fd8\u8bb0\u4e86&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412271\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : watzds <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u80fd\u8bf4\u5168\u8bb0\u4f4f\uff0c\u8fd8\u662f\u80fd\u7528\u5230\u4e0d\u5c11                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412272\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hangszhang \u55ef\uff0c\u770b\u5b8c\u4e4b\u540e\u611f\u89c9\u81ea\u5df1\u63d0\u5347\u4e0d\u5c11 @watzds \u624b\u6cd5\u6bd4\u8f83\u5bb9\u6613\u8bb0\u4f4f\uff0c\u6216\u8005\u8bf4\u5373\u4f7f\u8bb0\u4e0d\u4f4f\u540d\u5b57\u5176\u5b9e\u4e5f\u5728\u7528\u8fd9\u4e9b\u624b\u6cd5\uff0c\u6211\u4e3b\u8981\u662f\u611f\u89c9\u6211\u81ea\u5df1\u5728\u6267\u884c\u67d0\u9879\u91cd\u6784\u624b\u6cd5\u7684\u65f6\u5019\u662f\u80af\u5b9a\u4e0d\u4f1a\u53c2\u8003\u4f5c\u8005\u7684\u90a3\u4e9b\u5177\u4f53\u6b65\u9aa4\u7684\uff0c\u8fd9\u4e9b\u5177\u4f53\u6b65\u9aa4\u662f\u771f\u8bb0\u4e0d\u4f4f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412273\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ligiggy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u505a\u7b14\u8bb0\uff0c\u5f53\u5de5\u5177\u4e66\u3002\u8fd9\u662f\u4f5c\u8005\u5f00\u5934\u5c31\u5f3a\u8c03\u4e86\u7684\uff0c\u6ca1\u4ed4\u7ec6\u770b\u54e6\uff0c\u54c8\u54c8\u54c8\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412274\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ligiggy \u786e\u5b9e\uff0c\u6211\u4e5f\u662f\u6253\u7b97\u5f53\u505a\u5de5\u5177\u4e66\u6765\u7528\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412275\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ligiggy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u6bd5\u7adf\u662f\u5de5\u5177\u4e66\u561b\uff0c\u7ffb\u591a\u4e86\uff0c\u5c31\u50cf\u5355\u8bcd\u4e00\u6837\u7684\uff0c\u5370\u5728\u81ea\u5df1\u7684\u8111\u5b50\u91cc\uff0c\u5f62\u6210\u4e86\u81ea\u5df1\u7684\u7406\u89e3\u3002PS\uff1a\u8fd9\u672c\u4e66\u7684\u4ef7\u503c\u786e\u5b9e\u5f88\u9ad8\uff0c\u6211\u770b\u7684 Java \u7684\uff0c\u540e\u9762\u597d\u50cf\u6539\u6210\u4e86 JS\uff0c\u6709\u673a\u4f1a\u8981\u591a\u4e70\u51e0\u672c\u6536\u85cf\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412276\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @mitu9527 \u6211\u770b\u7684\u5c31\u662f\u7b2c\u4e8c\u7248\uff0c\u793a\u4f8b\u90fd\u662f js \u7684\u3002\u867d\u7136\u6211\u6ca1\u770b\u8fc7\u7b2c\u4e00\u7248\uff0c\u4f46\u6211\u4e2a\u4eba\u89c9\u5f97\u793a\u4f8b\u7528 js \u771f\u4e0d\u5982\u7528 java \u5408\u9002\u3002\u4e0d\u8fc7\u8fd8\u662f\u53ef\u4ee5\u8003\u8651\u6536\u85cf\u4e00\u672c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412277\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ligiggy \u6211\u770b\u7684\u5c31\u662f\u7b2c\u4e8c\u7248\uff0c\u793a\u4f8b\u90fd\u662f js \u7684\u3002\u867d\u7136\u6211\u6ca1\u770b\u8fc7\u7b2c\u4e00\u7248\uff0c\u4f46\u6211\u4e2a\u4eba\u89c9\u5f97\u793a\u4f8b\u7528 js \u771f\u4e0d\u5982\u7528 java \u5408\u9002\u3002\u4e0d\u8fc7\u8fd8\u662f\u53ef\u4ee5\u8003\u8651\u6536\u85cf\u4e00\u672c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412278\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wu67 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u53ea\u8981\u8bb0\u4f4f\u4e00\u4e2a\u539f\u5219\u5c31\u597d\u4e86. \u4ee3\u7801\u662f\u5199\u7ed9\u4eba\u6765\u9605\u8bfb\u7684, \u5076\u5c14\u624d\u7ed9\u673a\u5668\u8dd1\u4e00\u8dd1.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412279\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wu67 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u53ef\u4ee5\u5c1d\u8bd5\u628a\u4e00\u6bb5\u4ee3\u7801\u4ecb\u7ecd\u7ed9\u5c0f\u9ec4\u9e2d, \u5982\u679c\u4f60\u89c9\u5f97\u67d0\u79cd\u5199\u6cd5\u5c0f\u9ec4\u9e2d\u53ef\u80fd\u7406\u89e3\u4e0d\u4e86, \u6216\u8005\u4f1a\u9020\u6210\u6b67\u4e49, \u90a3\u5c31\u9700\u8981\u91cd\u6784, \u6216\u8005\u9700\u8981\u6dfb\u52a0\u6ce8\u91ca\u8bf4\u660e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412280\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ayase252 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4fdd\u8bc1\u6d4b\u8bd5\u7528\u4f8b\u5b8c\u5584\u548c\u5c0f\u6b65 commit \u600e\u4e48\u91cd\u6784\u90fd\u4e0d\u4f1a\u574f\u3002\u5b9e\u5728\u641e\u4e0d\u5b9a\u4e86\u53ef\u4ee5\u7ffb\u4e66\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412281\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ayase252 \u55ef\uff0c\u6211\u4e5f\u662f\u8fd9\u4e48\u60f3\u7684\uff0c\u5c31\u7b97\u4e0d\u6309\u6807\u51c6\u7684\u6b65\u9aa4\u91cd\u6784\uff0c\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u4e5f\u80fd\u4ee5\u81ea\u5df1\u4e60\u60ef\u7684\u6b65\u9aa4\u641e\u5b9a\u3002\u5c31\u50cf Kent Beck \u8bf4\u7684\uff0c\u91cd\u6784\u6b65\u9aa4\u9009\u591a\u5927\u8981\u770b\u4f60\u81ea\u5df1\u7684\u80fd\u529b\uff0c\u8fd8\u6709\u5c31\u662f\u51fa\u95ee\u9898\u65f6\u8981\u6709\u80fd\u5207\u6362\u9053\u66f4\u5c0f\u7684\u6b65\u9aa4\u7684\u80fd\u529b\uff0c\u8fd9\u65f6\u5c31\u5f97\u53c2\u8003\u8fd9\u4e9b\u5de5\u5177\u4e66\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412282\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : asj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u505a\u5230\u6784\u91cd\u7684\u4e00\u7b2c\u70b9\uff0c\u662f\u770b\u5f53\u524d\u5230\u7684\u7801\u4ee3\u662f\u4ec0\u4e48\u3002\u6211\u4eec\u5f80\u5f80\u60ef\u4e60\u4e8e\u770b\u5230\u7684\u662f\u5b83\u5e94\u662f\u8be5\u4ec0\u4e48\uff0c\u800c\u5b83\u975e\u5b9e\u9645\u662f\u4e48\u4ec0\u3002<br \/>\u5c31\u50cf\u8fd9\u53e5\u4e24\u8bdd\uff0c\u6709\u5f88\u7684\u591a\u5e8f\u987a\u9519\u8bef\u3002\u4f46\u6211\u4eec\u8111\u7684\u5b50\u7167\u6309\u5b83\u8be5\u7684\u5e94\u6837\u5b50\u53bb\u7ec4\u91cd\u4e86\u3002\u8fd9\u5bf9\u4e8e\u673a\u5668\u662f\u884c\u4e0d\u901a\u7684\u3002<br \/>\u91cd\u6784\u7684\u8d77\u70b9\u5c31\u662f\u770b\u5230\u73b0\u5728\u73b0\u5b9e\u7684\u4ee3\u7801\u662f\u4ec0\u4e48\uff0c\u4ece\u4e2d\u53d1\u73b0\u6539\u53d8\u4e3a\u53e6\u4e00\u79cd\u73b0\u5b9e\u7684\u53ef\u80fd\u6027\u3002<br \/>\u800c\u4e0d\u662f\u6309\u7167\u8111\u5b50\u91cc\u4ee3\u7801\u73b0\u5728\u201c\u5e94\u8be5\u662f\u201d\u7684\u6837\u5b50\uff0c\u53bb\u505a\u4e9b\u4fee\u6539\u4ee5\u671f\u5b83\u53d8\u6210\u53e6\u4e00\u79cd\u201c\u5e94\u8be5\u662f\u201d\u7684\u6837\u5b50\u3002<br \/>\u91cd\u6784\u4e2d\u6240\u6709\u7684\u5c0f\u6b65\u9aa4\u90fd\u662f\u4e3a\u4e86\u4fee\u6539\u4e0d\u8131\u79bb\u73b0\u5b9e\u7684\u4ee3\u7801\u3002<br \/>\u201c\u5e94\u8be5\u662f\u201d\u548c\u73b0\u5b9e\u7684\u4ee3\u7801\u8131\u8282\u7684\u4e00\u4e2a\u6807\u5fd7\u5c31\u662f debug\uff0cdebug \u76f8\u5f53\u4e8e\u8ba9\u673a\u5668\u5e2e\u7a0b\u5e8f\u5458\u8bfb\u4ee3\u7801\u3002\u7834\u9664\u4fee\u6539\u4e2d\u7531\u4e8e\u9519\u89c9\u5f15\u5165\u7684\u9519\u8bef\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412283\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : evilic <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8fc7\u65e9\u7684\u91cd\u6784\u3002<\/p>\n<p>\u8fd9\u662f\u6211\u4e00\u76f4\u5bf9\u91cd\u6784\u7684\u770b\u6cd5\u2026\u2026                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412284\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sumarker <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u300a\u91cd\u6784\u300b\u8fd9\u672c\u4e66\u636e\u8bf4\u5f88\u5389\u5bb3\uff0c\u6240\u4ee5\u4e70\u4e86\uff0c\u4f46\u662f\u4e00\u76f4\u6ca1\u770b\u3002<br \/>\u5173\u4e8e\u91cd\u6784\uff0c\u5176\u5b9e\u6211\u86ee\u540c\u610f\u4e0a\u7b49\u89c2\u70b9<br \/>@evilic \u7ecf\u5386\u8fc7\u7684\u51e0\u4e2a\u516c\u53f8\u4e5f\u90fd\u662f \u201c\u9879\u76ee\u51fa\u73b0\u4e86\u4e00\u4e9b\u95ee\u9898\u624d\u8003\u8651\u91cd\u6784\u7684\u201d<br \/>\u4e00\u65b9\u9762\u662f\u8003\u8651\u5230\u6210\u672c\uff08\u65f6\u95f4 \/\u4eba\u5de5\uff09<br \/>\u53e6\u4e00\u65b9\u9762\u4e5f\u662f\u8003\u8651\u5230\uff0c\u4ee3\u7801\u53ef\u80fd\u5df2\u7ecf\u7ecf\u5386\u4e86\u4e0d\u77e5\u591a\u5c11\u4eba\u5230\u4fee\u6539\uff0c\u4e00\u4e9b\u5386\u53f2\u529f\u80fd\u8fde\u6587\u732e\u90fd\u7f3a\u5931\u4e86\uff0c\u91cd\u6784\u53ef\u80fd\u4f1a\u5bfc\u81f4\u73b0\u5728\u5df2\u7ecf\u4e0a\u7ebf\u8fd0\u884c\u90fd\u9879\u76ee\u4e0d\u53ef\u7528\u3002<br \/>\u6240\u4ee5\uff0c\u5b81\u613f\u9009\u62e9\u201c\u91cd\u5199\u201d \u4e5f\u4e0d\u53bb\u201c\u91cd\u6784\u201d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412285\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dany813 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u91cd\u6784\u7684\u524d\u63d0\u662f\u77e5\u9053\u4ee5\u524d\u7684\u903b\u8f91\uff0c\u63a5\u53d7\u8001\u9879\u76ee\u4e0d\u77e5\u9053\u903b\u8f91\u7684\uff0c\u60f3\u91cd\u6784\uff0c\u4e0d\u5982\u91cd\u5199                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412286\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @evilic \u5f53\u7136\uff0c\u5982\u679c\u4ee3\u7801\u5de5\u4f5c\u7684\u597d\u597d\u7684\uff0c\u800c\u9700\u6c42\u53c8\u6ca1\u53d8\u5316\uff0c\u5f53\u7136\u4e0d\u9700\u8981\u91cd\u6784\u3002\u4e0d\u8fc7\u73b0\u5b9e\u4e2d\uff0c\u66f4\u5e38\u89c1\u7684\u662f\u91cd\u6784\u4e0d\u8db3\u751a\u81f3\u662f\u4ece\u6765\u6ca1\u6709\u91cd\u6784\uff0c\u91cd\u6784\u8fc7\u591a\u8fd8\u662f\u6bd4\u8f83\u5c11\u89c1\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412287\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sumarker \u4e0d\u662f\u6211\u70ab\u6280\u54c8\uff0c\u4ece\u4f60\u7559\u8a00\u91cc\u9762\u7684\u4e00\u4e9b\u56de\u590d\u6765\u770b\uff0c\u4f60\u786e\u5b9e\u8fd8\u4e0d\u4e86\u89e3\u91cd\u6784\u3002\u4f60\u53ef\u4ee5\u5148\u53bb\u770b\u4e00\u4e0b\u300a\u91cd\u6784\u300b\u7684\u7b2c\u4e8c\u7ae0\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u4f60\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412288\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dany813 \u90a3\u8981\u770b\u8001\u9879\u76ee\u7684\u8d28\u91cf\u5982\u4f55\u4e86\uff0c\u5982\u679c\u80fd\u6ee1\u8db3\u91cd\u6784\u7684\u524d\u7f6e\u6761\u4ef6\uff0c\u5c31\u53ef\u4ee5\u91cd\u6784\u3002\u5f53\u7136\uff0c\u73b0\u5b9e\u4e2d\u786e\u5b9e\u5927\u591a\u6570\u9879\u76ee\u505a\u5f97\u90fd\u4e71\u4e03\u516b\u7cdf\uff0c\u8fde\u6d4b\u8bd5\u90fd\u780d\u6389\u4e86\uff0c\u5f53\u7136\u4e5f\u5c31\u4e0d\u80fd\u8fdb\u884c\u91cd\u6784\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412289\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : taaaang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6b65\u9aa4\u53ea\u662f\u8ba9\u4f60\u6709\u4e00\u4e2a\u6e05\u6670\u7684\u601d\u8def\uff0c\u5982\u679c\u4f60\u5bf9\u4ee3\u7801\u8db3\u591f\u719f\u6089\uff0c\u4f60\u7684\u7f16\u7801\u80fd\u529b\u8db3\u591f\u597d\uff0c\u76f4\u63a5\u8df3\u8fc7\u7ec6\u8282\u5230\u7ed3\u679c\u4e5f\u5f53\u7136\u662f\u53ef\u4ee5\u7684\u3002\u81ea\u4fe1\u70b9\uff0c\u8001\u5f1f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412290\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @taaaang \u56e0\u4e3a\u521a\u770b\u5b8c\u91cd\u6784\uff0c\u8fd8\u6ca1\u5b9e\u8df5\u8fc7\uff0c\u6240\u4ee5\u6ca1\u4fe1\u5fc3\uff0c\u62c5\u5fc3\u5c31\u6211\u81ea\u5df1\u662f\u8fd9\u6837\u3002\u542c\u4f60\u8fd9\u4e48\u4e00\u8bf4\u5c31\u653e\u5fc3\u4e86\uff0c\u8c22\u4e86\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412291\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liununu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u91cd\u6784\u662f\u53ef\u4ee5\u968f\u65f6\u8fdb\u884c\u548c\u505c\u6b62\u7684\u3002<br \/>\u5927\u578b\u91cd\u6784\u60f3\u8981\u4e00\u6b65\u5230\u4f4d\u592a\u96be\u4e86\uff0c\u60f3\u5957\u4e66\u91cc\u7684\u624b\u6cd5\u4e5f\u662f\u6bd4\u8f83\u9ebb\u70e6\u7684\uff0c\u53ef\u4ee5\u5148\u89e3\u51b3\u4e00\u4e9b\u7b80\u5355\u7684 Code Smell\uff0c\u4e00\u6b65\u6b65\u6765\u5316\u7b80\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412292\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 312ybj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76ee\u524d\u6b63\u5728\u91cd\u6784\u540c\u4e8b\u7684\u4ee3\u7801\uff0c \u4e3b\u8981\u662f\u66f4\u6539\u903b\u8f91\uff0c\u4f18\u5316\u901f\u5ea6\uff0c \u8fd8\u6709\u4e0d\u89c4\u8303\u7684\u8bed\u6cd5\u3002<br \/>\u611f\u89c9\u5c31\u662f\u8fd9\u4e2a\u4ee3\u7801\u5065\u58ee\u6027\u592a\u4f4e\uff0c\u53ef\u8bfb\u6027\u592a\u4f4e\uff0c \u95ee\u9898\u5ba2\u6237\u8981\u6293\u7d27\u8981\uff0c\u4e0d\u80fd\u81ea\u5df1\u91cd\u5199\uff0c\u53ea\u80fd\u91cd\u6784\u3002<br \/>\u8fd9\u672c\u4e66\u6211\u53ea\u770b\u4e86\u4e00\u70b9\uff0c \u4e3b\u8981\u662f\u6539\u4ee3\u7801\u7684\u65f6\u95f4\u5c45\u591a\uff0c<br \/>\u6211\u73b0\u5728\u7684\u505a\u6cd5\u662f\uff1a<br \/> 1. \u4e0d\u6539\u53d8\u539f\u6709\u529f\u80fd\u5b8c\u6574\u6027<br \/>\u4e0d\u6539\u53d8\u8f6f\u4ef6\u53ef\u89c2\u5bdf\u884c\u4e3a\u7684\u524d\u63d0\u4e0b\u6539\u5584\u5176\u5185\u90e8\u7ed3\u6784<br \/>\u9996\u5148\u4fdd\u6301\u4ee3\u7801\u529f\u80fd\u7684\u6709\u6548\u6027<br \/>\u786e\u4fdd\u4ee3\u7801\u529f\u80fd\u6ca1\u6709\u53d8\u5316\u7684\u60c5\u51b5\u4e0b\u518d\u8fdb\u884c\u91cd\u6784<\/p>\n<p>2. stop over-engineering<br \/>\u505c\u6b62\u8fc7\u5ea6\u5de5\u7a0b<br \/>\u5b9e\u7528\u4ee3\u7801\u4e3a\u4e3b\uff0c\u4ee3\u7801\u5f97\u80fd\u8dd1\u8d77\u6765\u4e1a\u52a1<\/p>\n<p>\u4e66\u4e2d\u7684\u65b9\u6cd5\u8bba\u662f<br \/>\u5728\u8111\u5b50\u91cc\u8bb0\u5f55 \u201c\u574f\u5473\u9053\u201d \u4e0e \u201c\u91cd\u6784\u65b9\u6cd5\u201d\u7684\u5bf9\u5e94\u8868\uff0c\u5c31\u662f\u6539\u7684\u591a\u4e86\uff0c\u81ea\u5df1\u5c31\u719f\u4e86\u3002<br \/>\u7b49\u529f\u80fd\u6539\u5f97\u5dee\u4e0d\u591a\u4e86\uff0c\u6211\u518d\u4f18\u5316\u4e0b\u7ec6\u8282\uff0c\u80fd\u62bd\u6210\u51fd\u6570\u7684\u62bd\u6210\u51fd\u6570\uff0c\u6bd5\u7adf idea \u91cd\u6784\u529f\u80fd\u633a\u591a\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412293\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jones2000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u91cd\u6784\u6700\u6700\u91cd\u8981\u7684 1 \u4ef6\u4e8b\u5c31\u662f\u8981\u5199\u5355\u5143\u6d4b\u8bd5\uff0c \u5426\u5219\u4f60\u91cd\u6784\u7684\u8d8a\u591a\uff0c\u53ef\u80fd\u51fa\u73b0 bug \u7684\u673a\u7387\u4e5f\u6700\u5927\uff0c \u5982\u679c\u4f60\u4eec\u8001\u677f\u7ed9\u4f60\u4eec\u7684\u914d\u7f6e\u662f 1 \u4e2a\u5f00\u53d1\u914d 2 \u4e2a\u5916\u5305\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u4eba\u5458\uff0c\u90a3\u8fd9\u4e2a\u91cd\u6784\u662f\u8f7b\u677e\u7684\u3002 \u5426\u5219\u8981\u5f88\u5c0f\u5fc3\uff0c \u53ef\u80fd\u4f1a\u628a\u597d\u7684\u529f\u80fd\u6539\u574f\u4e86\u3002\u5c24\u5176\u7684\u5e95\u5c42\u7684\u91cd\u6784\uff0c\u8fd9\u4e9b\u6a21\u5757\u53ef\u80fd\u5176\u4ed6\u4e1a\u52a1\u90e8\u95e8\u4e5f\u7528\u4e86\u3002 \u5982\u679c\u6ca1\u6709\u5b8c\u6574\u7684\u5355\u5143\u6d4b\u8bd5\u548c\u6574\u4f53\u7684\u529f\u80fd\u6d4b\u8bd5\uff0c\u5c31\u7b97\u6539\u5b8c\u4e86\uff0c \u4e0a\u7ebf\u90fd\u662f\u63d0\u5fc3\u540a\u80c6\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412294\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : javaWeber <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5c31\u53ea\u662f\u628a\u8d85\u8fc7 100 \u884c\u7684\u65b9\u6cd5\u62bd\u53d6\u6210\u591a\u4e2a\u65b9\u6cd5\uff0c\u65b9\u6cd5\u53c2\u6570\u592a\u591a\u7684\u5c31\u62bd\u53d6\u6210\u5bf9\u8c61\uff0c\u7136\u540e\u628a\u7c7b\u7684\u53d8\u91cf\u540d\u6539\u6210\u597d\u7406\u89e3\u7684\u3002<\/p>\n<p>\u5176\u4ed6\u7684\uff0c\u597d\u50cf\u90fd\u6ca1\u600e\u4e48\u7528\u5230\u554a\u3002\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412295\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jsisjs20130824 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wu67 \u5c0f\u9ec4\u9e2d\u8c03\u8bd5\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412296\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : namelosw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u672c\u4e66\u662f\u4e4b\u524d\u540c\u4e8b\u7ffb\u8bd1\u7684\uff0c\u6211\u53f8\u5e38\u5e74\u804a\u8fd9\u79cd\u8bdd\u9898\uff0c\u4e5f\u505a\u8fc7\u633a\u591a\u57f9\u8bad\uff0c\u8fd8\u505a\u8fc7\u5f88\u591a\u91cd\u6784\u7684\u9879\u76ee\u3002\u5176\u5b9e\u6709\u4e24\u79cd\u4e0d\u540c\u7684\u770b\u6cd5\u90fd\u6709\uff1a<\/p>\n<p>1. \u4e00\u79cd\u662f\u638c\u63e1\u601d\u60f3\u5c31\u597d\uff0c\u76ee\u7684\u662f\u5982\u679c\u4f60\u60f3\u52a0\u529f\u80fd\uff0c\u53d1\u73b0\u53ef\u80fd\u9700\u8981\u8c03\u6574\u8bbe\u8ba1\uff0c\u90a3\u4e48\u53ef\u4ee5\u5148\u91cd\u6784\uff0c\u8ba9\u540e\u9762\u7684\u8bbe\u8ba1\u53ef\u4ee5\u81ea\u7136\u5730\u52a0\u8fdb\u6765\u3002<\/p>\n<p>2. \u53e6\u5916\u4e00\u79cd\u770b\u6cd5\u662f\u9700\u8981\u638c\u63e1\u6240\u6709\u7684 code smell \u548c\u91cd\u6784\u65b9\u6cd5\uff0c\u76ee\u7684\u662f\u5982\u679c\u91cd\u6784\u5927\u578b\u9879\u76ee\uff08\u6211\u53f8\u4e4b\u524d\u6709\u5f88\u591a\u91cd\u6784\u9057\u7559\u4ee3\u7801\u5e93\u7684\u9879\u76ee\uff09\u5f88\u591a\u65f6\u5019\u6d4b\u8bd5\u4e0d\u8db3\u6216\u8005\u592a\u70c2\u6ca1\u6cd5\u6d4b\u8bd5\uff0c\u8fd9\u4e9b\u91cd\u6784\u65b9\u6cd5\u6709\u76f8\u5f53\u4e00\u90e8\u5206\u662f\u6bd4\u8f83\u5b89\u5168\u7684\uff08 IDE \u4e0d\u7ea2\uff0c\u7edd\u5927\u591a\u6570\u60c5\u51b5\u7b49\u4ef7\uff09\u3002\u6240\u4ee5\u6309\u7167\u4e66\u4e0a\u80cc\u719f\u53ef\u4ee5\u76f4\u63a5\u65e0\u8111\u6279\u91cf\u91cd\u6784\uff0c\u5373\u4f7f\u662f\u4ee3\u7801\u7279\u522b\u70c2\u6216\u8005\u6df7\u6dc6\u8fc7\u5168\u662f ABC\uff0c\u4e0d\u7406\u89e3\u4ee3\u7801\u4e0d\u770b\u4e1a\u52a1\u4e5f\u53ef\u80fd\u5f00\u59cb\u91cd\u6784\uff0c\u5728\u8fc7\u7a0b\u4e2d\u7ffb\u6765\u8986\u53bb\u5730\u8c03\u6574\uff0c\u8c03\u6574\u7684\u8fc7\u7a0b\u4e2d\u7406\u89e3\u4e1a\u52a1\u548c\u5404\u79cd\u5751\uff0c\u6700\u540e\u8fbe\u5230\u4e00\u4e2a\u4e0d\u9519\u7684\u72b6\u6001\u3002Kent Beck \u4e4b\u524d\u8fd8\u8bbe\u60f3\u641e\u4e00\u4e2a\u5168\u7ed3\u6784\u5316\u7684\u7f16\u8f91\u5668\uff0c\u53ea\u5141\u8bb8\u91cd\u6784\uff0c\u4e0d\u5141\u8bb8\u624b\u6572\u4ee3\u7801\uff0c\u542c\u8d77\u6765\u6709\u70b9\u50cf Paredit \u7684 Java \u7248\u3002<\/p>\n<p>\u6709\u65f6\u5019\u67d0\u4e9b\u6301\u7b2c\u4e8c\u79cd\u770b\u6cd5\u7684\u540c\u4e8b\u4f1a\u8ba4\u4e3a\u7b2c\u4e00\u79cd\u770b\u6cd5\u6839\u672c\u5c31\u4e0d\u662f\u91cd\u6784\uff0c\u800c\u662f\u91cd\u5199\u3002\u8fd9\u4e2a\u89c1\u4ec1\u89c1\u667a\uff0c\u5927\u5bb6\u5404\u53d6\u6240\u9700\u3002<\/p>\n<p>\u53e6\u5916\u91cd\u6784\u7684\u6838\u5fc3\u662f\u53d1\u73b0\u4e00\u4e2a code smell \u5f00\u59cb\uff0c\u6d88\u706d\u4e00\u4e2a code smell \u7ed3\u675f\uff0c\u8fd9\u6837\u7684\u597d\u5904\uff1a<br \/>1. \u968f\u65f6\u53ef\u4ee5\u505c\uff0c\u6ca1\u65f6\u95f4\u7ee7\u7eed\u91cd\u6784\u5c31\u8d76\u7d27\u8d76\u529f\u80fd<br \/>2. \u907f\u514d\u6f2b\u65e0\u76ee\u7684\u778e\u91cd\u6784\uff0c\u5f00\u59cb\u548c\u622a\u6b62\u90fd\u5f88\u6e05\u6670<br \/>3. \u907f\u514d\u4e00\u8fb9\u52a0\u529f\u80fd\u4e00\u8fb9\u91cd\u6784\uff0c\u4e0d\u7136 commit \u4e5f\u4e71\uff0c\u4e5f\u7ecf\u5e38\u628a\u529f\u80fd\u641e\u574f<br \/>4. \u91cd\u6784\u5b8c\u53d1\u73b0\u8fd8\u6709 code smell \u53ef\u4ee5\u7ee7\u7eed\u8fd9\u4e2a\u5faa\u73af\u6d88\u9664\u4e0b\u4e00\u4e2a\uff0c\u4e00\u822c\u6765\u8bf4\u521a\u5f00\u59cb\u91cd\u6784\u7ecf\u5e38\u53ef\u4ee5\u6d88\u706d code smell\uff0c\u6216\u8005\u4ee5\u591a\u6362\u5c11\uff0c\u5230\u540e\u9762\u53ef\u80fd\u5c31\u53ea\u80fd\u53d8\u6210\u4e00\u4e2a code smell \u6362\u53e6\u5916\u4e00\u4e2a\uff0c\u6216\u8005\u66f4\u5dee\uff0c\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u8003\u8651\u7ed3\u675f\u4e86\u3002<\/p>\n<p>\u5bf9\u4e8e\u5e16\u5b50\u91cc\u7684\u201c\u6211\u611f\u89c9\u6ca1\u6709\u591a\u5c11\u4eba\u80fd\u505a\u5230\u7167\u7740\u4f5c\u8005\u4ecb\u7ecd\u7684\u6b65\u9aa4\u53bb\u91cd\u6784\u7684\u3002\u201d<br \/>\u8fd9\u4e2a\u5176\u5b9e\u6ca1\u90a3\u4e48\u96be\uff0c\u770b\u597d\u4e86\u6b65\u9aa4\uff0c\u53bb Intellij \u91cc\u9762\u5bf9\u53f7\u5165\u5ea7\uff0c\u5176\u5b9e Intellij \u7684\u91cd\u6784\u529f\u80fd\u5927\u591a\u76f4\u63a5\u7167\u7740\u8fd9\u672c\u4e66\u5199\u7684\u3002\u6240\u4ee5\u4e0d\u7528\u8bb0\u6b65\u9aa4\uff0c\u53ea\u7528\u8bb0\u4f60\u9700\u8981\u5565\uff0c\u6309\u4e2a\u5feb\u6377\u952e\u586b\u7a7a\u5c31\u884c\u4e86\u3002\u6709\u7684\u65f6\u5019\u9700\u8981\u591a\u6b65\u7ec4\u5408\u8d77\u6765\u7684\u91cd\u6784\u7684\u53ef\u80fd\u9700\u8981\u8bb0\u4e0b\uff0c\u6216\u8005\u7528\u51e0\u6b21\u5c31\u719f\u4e86\u3002<\/p>\n<p>\u5bf9\u4e8e\u201c\u4e0d\u8fc7\u65e9\u7684\u91cd\u6784\u201d\u3002<br \/>\u4e00\u822c\u91cd\u6784\u7684\u7c92\u5ea6\u5f88\u5c0f\uff0c\u505a\u6bcf\u4e2a\u5c0f\u529f\u80fd\u7684\u65f6\u5019\u53ef\u4ee5\u4e2d\u95f4\u53ef\u80fd\u7a7f\u63d2\u51e0\u4e2a\u91cd\u6784\u5faa\u73af\uff0c\u4e00\u822c\u5c0f\u7684\u53ef\u80fd\u5c31\u51e0\u5206\u949f\u3002\u505a\u67d0\u4e2a\u529f\u80fd\uff0c\u6700\u719f\u6089\u7684\u65f6\u5019\u662f\u6bd4\u8f83\u597d\u7684\u65f6\u673a\uff0c\u6bd5\u7adf\u8fc7\u4e00\u6bb5\u65f6\u95f4\u964c\u751f\u4e86\u91cd\u6784\u6548\u7387\u53cd\u800c\u4e0d\u9ad8\u3002\u8fd9\u4e2a\u4e5f\u662f\u4f5c\u8005\u8bf4\u201c\u4e0d\u8981\u544a\u8bc9\u7ecf\u7406\u201d\u7684\u539f\u56e0\uff0c\u56e0\u4e3a\u8fd9\u6837\u91cd\u6784\u5c31\u662f\u5f00\u53d1\u7684\u4e00\u90e8\u5206\uff0c\u6240\u4ee5\u6ca1\u5fc5\u8981\u4e13\u95e8\u548c\u4ed6\u4eec\u8bf4\u4e86\u3002<\/p>\n<p>\u5bf9\u4e8e\u201c\u8fd9\u672c\u4e66\u592a\u5c4c\u4e86\u201d<br \/>\u8fd9\u672c\u4e66\u6bd4\u8f83\u6734\u5b9e\uff0c\u4e0d\u7528\u592a\u6367\uff0c\u8ddf CLRS \u4e4b\u7c7b\u7684\u4e66\u4e0d\u662f\u4e00\u4e2a\u9ad8\u5ea6\u7684\u3002\u4e5f\u6709\u4e00\u4e9b\u7f3a\u70b9\uff0c\u6216\u8005\u8fd9\u4e2a\u91cd\u6784\u8bdd\u9898\u672c\u8eab\u5c31\u4e0d\u80fd\u8986\u76d6\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u6bd4\u5982\u65b0\u7248\u7684 JS \u91cd\u6784\uff0c\u5f88\u591a\u4ee3\u7801\u98ce\u683c\u5c31\u6709\u70b9\u8fc7\u65f6\uff0c\u91cc\u9762\u867d\u7136\u4e00\u7b14\u5e26\u8fc7\u51fd\u6570\u5f0f\u7f16\u7a0b\uff0c\u4f46\u662f\u5185\u5bb9\u91cc\u5e76\u6ca1\u6709\u3002\u91cd\u6784\u53ea\u80fd\u6539\u5584\u5df2\u6709\u8bbe\u8ba1\uff0c\u5e76\u4e0d\u80fd\u7a81\u7834\u51fa\u9769\u547d\u6027\u7684\u8bbe\u8ba1\uff0c\u6240\u4ee5 React \u8fd9\u79cd\u73b0\u4ee3\u8bbe\u8ba1\u662f\u4e0d\u80fd\u4ece\u65e7\u4ee3\u7801\u4e2d\u91cd\u6784\u51fa\u6765\u7684\u3002<\/p>\n<p>\u8fd8\u6709\u5c31\u662f\u4e66\u91cc\u9762\u4e00\u4e2a\u7f3a\u70b9\u662f\u5bf9\u600e\u4e48\u5199\u6d4b\u8bd5\u8bed\u7109\u4e0d\u8be6\uff0c\u5b9e\u8df5\u91cc\u91cd\u6784\u53ea\u80fd\u7528\u5927\u7c92\u5ea6\u6d4b\u8bd5\uff0c\u56e0\u4e3a\u5982\u679c\u4f60\u8981\u91cd\u6784\u7684\u6a21\u5757\u53d8\u5316\uff0c\u9488\u5bf9\u8fd9\u4e2a\u6a21\u5757\u672c\u8eab\u7684\u6d4b\u8bd5\u91cd\u6784\u7684\u65f6\u5019\u9700\u8981\u88ab\u6539\u7684\u8bdd\uff0c\u8fd9\u4e2a\u6d4b\u8bd5\u5bf9\u91cd\u6784\u5c31\u6ca1\u610f\u4e49\u4e86\uff08\u56e0\u4e3a\u4f60\u91cd\u6784\u7684\u65f6\u5019\u6b63\u597d\u91cd\u5199\u4e86\u8fd9\u4e2a\u6d4b\u8bd5\u4f60\u4e5f\u4e0d\u77e5\u9053\u662f\u4e0d\u662f\u8ddf\u4ee5\u524d\u4e00\u6837\uff09\u3002\u6240\u4ee5\u4e00\u822c\u63a8\u8350\u9488\u5bf9\u884c\u4e3a\u548c\u4e1a\u52a1\u7684\u5927\u7c92\u5ea6\u6d4b\u8bd5\uff0c\u6216\u8005\u81f3\u5c11\u6bd4\u4f60\u6253\u7b97\u91cd\u6784\u7684\u8303\u56f4\u8981\u5927\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1412297\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : mitu9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @namelosw \u53d7\u6559\u4e86\uff0c\u8c22\u8c22\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5bf9\u4e8e\u91cd\u6784\u6709\u51e0\u4e2a\u7591\u95ee\uff0c\u5e0c\u671b\u80fd\u8fc7\u6765\u4eba\u80fd&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84112"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84112"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/84112\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84112"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}