{"id":88887,"date":"2019-07-25T22:26:05","date_gmt":"2019-07-25T14:26:05","guid":{"rendered":"http:\/\/4563.org\/?p=88887"},"modified":"2019-07-25T22:26:05","modified_gmt":"2019-07-25T14:26:05","slug":"%e5%9c%a8%e4%bd%9c%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e8%af%bb%e5%86%99%e6%93%8d%e4%bd%9c%e6%97%b6%e5%a4%a7%e5%ae%b6%e6%9c%89%e6%b2%a1%e8%bf%87%e4%b8%80%e7%a7%8d%e5%a5%87%e6%80%aa%e7%9a%84%e7%84%a6","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=88887","title":{"rendered":"\u5728\u4f5c\u6570\u636e\u5e93\u7684\u8bfb\u5199\u64cd\u4f5c\u65f6\u5927\u5bb6\u6709\u6ca1\u8fc7\u4e00\u79cd\u5947\u602a\u7684\u7126\u8651\u611f\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5728\u4f5c\u6570\u636e\u5e93\u7684\u8bfb\u5199\u64cd\u4f5c\u65f6\u5927\u5bb6\u6709\u6ca1\u8fc7\u4e00\u79cd\u5947\u602a\u7684\u7126\u8651\u611f\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : webcoder <\/span>  <span><i><\/i> 47<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u660e\u660e\u7cfb\u7edf\u91cc\u5df2\u7ecf\u7ea6\u5b9a\u4e86\uff0c\u8fd0\u884c\u5230\u67d0\u4e2a\u4ee3\u7801\u524d\u6570\u636e\u5e93\u91cc\u80af\u5b9a\u4f1a\u6709\u8fd9\u4e2a\u8bb0\u5f55\uff0c\u4f46\u5199\u7684\u65f6\u5019\u603b\u6709\u79cd\u8fd9\u8bb0\u5f55\u53ef\u80fd\u4e0d\u5b58\u5728\u7684\u7126\u8651\u800c\u4f1a\u5199\u4e0a\u4e00\u5927\u5806\u7684\u6821\u9a8c\u68c0\u67e5\u751a\u81f3\u662f\u5982\u679c\u4e0d\u5b58\u5728\u5c31\u521b\u5efa\u7684\u4ee3\u7801\uff0c\u800c\u4e14\u5728\u5199\u65f6\u8fd8\u4f1a\u6709\u79cd\u8fd9\u4ee3\u7801\u6b63\u5f0f\u4f7f\u7528\u65f6\u4f30\u8ba1\u4e00\u8f88\u5b50\u4e5f\u4e0d\u53ef\u80fd\u8fd0\u884c\u5230\u7684\u611f\u89c9\uff0c\u4ece\u800c\u8fdb\u5316\u6210\uff0c\u65e2\u7136\u8fd0\u884c\u4e0d\u5230\u4e3a\u4ec0\u4e48\u8fd8\u8981\u5199\u554a\uff0c\u7684\u5947\u602a\u60c5\u7eea\u3002      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>27<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"574107\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiaotuzi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u662f\u4ee3\u7801\u7684\u4e25\u8c28\u6027\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574108\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuzhedash <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5199\u597d\u629b\u5f02\u5e38\uff0c\u6293\u65e5\u5fd7\u7684\u4ee3\u7801\u5c31\u884c\u3002<br \/>\u5982\u679c\u7cfb\u7edf\u8bbe\u8ba1\u8fd9\u4e2a\u70b9\u662f\u5e94\u8be5\u5b58\u5728\u8bb0\u5f55\u7684\uff0c\u90a3\u6709\u65e5\u5fd7\u4e0d\u7ba1\u5b9a\u4f4d\u8fd8\u662f\u7529\u9505\u90fd\u65b9\u4fbf\uff1b\u5982\u679c\u7cfb\u7edf\u8bbe\u8ba1\u6ca1\u6709\u660e\u786e\u8fd9\u4e2a\u70b9\uff0c\u6700\u597d\u63d0\u524d\u660e\u786e\uff0c\u5426\u5219\u5c31\u662f\u5b9a\u4f4d\u56f0\u96be+\u7529\u9505\u5927\u6218\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574109\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shawnsh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8981\u8fd9\u6837\u5199\u5197\u4f59\u4ee3\u7801\u3002\u68c0\u67e5\u4e0d\u7b26\u5408\u6761\u4ef6\u76f4\u63a5\u5d29\u6e83                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574110\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u91cc\u8981\u8bf4\u7684\u662f\u4efb\u4f55\u4ee3\u7801\u90fd\u8fdb\u884c\u5f02\u5e38\u6355\u83b7\u7684\u91cd\u8981\u6027\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574111\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : billlee <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             assert \u5c31\u884c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574112\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crazytudou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ee5\u524d\u4e5f\u4f1a\u8003\u8651\u8fd9\u4e9b\uff0c\u73b0\u5728\u3002\u3002\u4e0d\u8003\u8651\uff0c\u53ea\u6709\u7ed9\u5bf9\u624d\u6267\u884c\u4e0b\u53bb\uff0c\u4e0d\u5bf9\u5c31\u629b\u5f02\u5e38\uff0c\u8fd9\u4e2a\u5f88\u6709\u597d\u5904\uff0c1 \u662f\u53ef\u4ee5\u77e5\u9053\u7a0b\u5e8f\u4e0d\u5bf9\u8981\u6539\u6b63\uff0c2 \u662f\u4e0d\u7528\u518d\u53bb\u5199\u4e00\u5806\u611f\u89c9\u6ca1\u7528\u7684\u4e1c\u897f\uff0c\u8fd9\u4e2a\u4e25\u8c28\u65e0\u5173\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574113\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laminux29 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1.\u68c0\u67e5\u4ee3\u7801\u80af\u5b9a\u8981\u5199\u3002<\/p>\n<p>2.\u5982\u679c\u4e0d\u7b26\u5408\u7ea6\u5b9a\uff0c\u5219\u5148\u5199\u65e5\u5fd7\uff0c\u540e\u629b\u5f02\u5e38\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574114\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : guyeu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728\u8be5 crash \u7684\u65f6\u5019 crash\uff0c\u4e0d\u8981\u505a\u4e0d\u8be5\u505a\u7684\u5bb9\u9519\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574115\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : guokeke <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f1a\u5199\u3002\u56e0\u4e3a\u6ca1\u4ec0\u4e48\u662f\u80af\u5b9a\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574116\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mohanson <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5206\u6e05\u695a&#8221;\u5f02\u5e38&#8221;\u548c&#8221;\u9519\u8bef&#8221;. \u5f02\u5e38\u662f\u9884\u671f\u4f1a\u53d1\u751f\u7684, \u800c\u9519\u8bef\u662f\u9884\u671f\u4e0d\u4f1a\u53d1\u751f\u7684. \u9047\u5230\u9519\u8bef\u5c31 crash \u6389\u65b9\u4e3a\u6b63\u624b.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574117\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GrayXu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ea6\u5b9a\u4e86\u5c31\u4e0d\u7ba1\u554a\u3002\u3002\u672c\u5730\u65e5\u5fd7\u8bb0\u5f97\u8bf4\u660e\u4e0b\u5c31\u597d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574118\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whalegao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8003\u8651\u4e3b\u4ece\u540c\u6b65\u4e86\u5417\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574119\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sun1991 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u8bb0\u5f55\u4e0d\u5b58\u5728\u4f1a\u5bfc\u81f4\u76f4\u63a5 crash \u7684\u5c31\u53ef\u4ee5\u4e0d\u7ba1. \u5426\u5219\u68c0\u67e5\u6761\u4ef6\u5e76\u624b\u5de5 crash. (\u4e0d\u8fc7\u6709\u65f6\u5019\u6211\u4f1a\u5077\u61d2~)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574120\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xavierchow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &gt; \u4f1a\u5199\u4e0a\u4e00\u5927\u5806\u7684\u6821\u9a8c\u68c0\u67e5\u751a\u81f3\u662f\u5982\u679c\u4e0d\u5b58\u5728\u5c31\u521b\u5efa\u7684\u4ee3\u7801<\/p>\n<p>\u4f60\u9700\u8981\u660e\u786e\u4f60\u7684\u6a21\u5757\u7684\u63a5\u53e3\u548c\u804c\u8d23\uff0c\u6211\u731c\u6d4b\u4f60\u7684\u7126\u8651\u662f\u7531\u4e8e\u5bf9\u63a5\u53e3\u5b9a\u4e49\u7684\u4e0d\u6e05\u6670\uff0c \u53e6\u5916\u4e0d\u5b58\u5728\u5c31\u521b\u5efa\u5f88\u5bb9\u6613\u63a9\u76d6\u5176\u4ed6\u5730\u65b9\u7684\u9519\u8bef\uff0c\u9020\u6210\u540e\u671f\u95ee\u9898\u5b9a\u4f4d\u7684\u66f4\u5927\u95ee\u9898\u3002<br \/>\u53ef\u4ee5\u770b\u4e00\u4e0b [fail fast]( https:\/\/en.wikipedia.org\/wiki\/Fail-fast)\u3002<br \/>\u53e6\u5916\u4f60\u8fd9\u4e9b\u6240\u8c13\u7684\u591a\u4f59\u7684\u4ee3\u7801\u6709\u6d4b\u8bd5\u4ee3\u7801\u5417\uff1f\u80fd\u5728\u6d4b\u8bd5\u73af\u5883\u8dd1\u8fc7\u5417\uff1f\u4e0d\u8981\u53bb\u5199\u4e0d\u53ef\u6d4b\u7684\u4ee3\u7801\uff0c\u56e0\u4e3a\u4f60\u4e0d\u77e5\u9053\u4f60\u6240\u8c13\u7684\u591a\u52a0\u7684\u5904\u7406\u662f\u5426\u6b63\u786e\u3002\uff08\u5c3d\u7ba1\u4f60\u672c\u610f\u662f\u8ba9\u7cfb\u7edf\u66f4 robust,\u4f46\u662f\u589e\u52a0\u590d\u6742\u5ea6\u548c\u964d\u4f4e\u53ef\u8bfb\u6027\u6765\u6362\u53d6\u4e0d\u77e5\u6b63\u786e\u6027\u7684\u5bb9\u9519\u5904\u7406\u5f97\u4e0d\u507f\u5931\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574121\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : FrankHB <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6b63\u5e38\u662f\u770b\u5230 DBMS \u5c31\u6709\u7126\u8651\u611f\u3002\u53ea\u4e0d\u8fc7\u4e1a\u52a1\u4e0a\u6296 M \u60ef\u4e86\u5f88\u591a\u4eba\u624d\u6ca1\u611f\u89c9\u7f62\u4e86\u3002<br \/>\u8fd9\u548c\u6240\u8c13\u9632\u5fa1\u6027\u7f16\u7a0b\u8d29\u5356\u7684\u7126\u8651\u672c\u8d28\u4e0a\u662f\u4e00\u6837\u7684\uff0c\u867d\u7136\u5c31\u5f71\u54cd\u8303\u56f4\u6765\u8bb2\uff0c\u5f80\u5f80\u66f4\u4e25\u91cd\u3002<br \/>\u672c\u6765\u662f\u7cfb\u7edf\u5185\u90e8\u7684 contract\uff0c\u56e0\u4e3a DBMS \u548c\u4e0a\u5c42\u4e1a\u52a1\u903b\u8f91\u7684\u9694\u79bb\u591a\u4e86\u4e00\u4e2a\u95f4\u63a5\u5c42\uff0c\u56e0\u4e3a\u5b9e\u73b0\u7f3a\u9677\u7684\u95ee\u9898\u5bfc\u81f4\u4f60\u4e0d\u5f97\u5355\u72ec\u8003\u8651\u98ce\u9669\u3002\u8fd9\u4e0d\u4f46\u8ba9\u4f60\u6709\u7126\u8651\u611f\uff0c\u4e00\u5b9a\u60c5\u51b5\u4e0b\u8fd8\u6210\u4e3a\u4e00\u4e2a attack surface\u3002\u5728 DBMS \u4e0d\u662f\u6700\u7ec8\u7528\u6237\u9700\u8981\u611f\u77e5\u7684\u5b9e\u73b0\u7ec6\u8282\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd9\u5c31\u662f\u6b6a\u66f2\u7cfb\u7edf\u9700\u6c42\u7684\u539f\u7f6a\u3002<br \/>\u5f88\u9057\u61be\uff0c\u5982\u4f55\u6709\u6548\u5730\u3001\u7cfb\u7edf\u5730\u5c0a\u91cd\u51c6\u786e\u5730\u8868\u8fbe\u9700\u6c42\u800c\u4e0d\u5f31\u5316\u5916\u90e8\u6307\u5b9a\u7684\u6574\u4f53\u63a5\u53e3\u7ea6\u675f\uff0c\u8fd9\u662f\u4e00\u4e2a\u4ece\u7406\u8bba CS \u5f00\u59cb\u4e00\u76f4\u5c31\u7f3a\u4e4f\u8db3\u591f\u91cd\u89c6\u4e00\u76f4\u5230\u5934\u75bc\u533b\u5934\u811a\u75bc\u533b\u811a\u4e5f\u8fd8\u6ca1\u89e3\u51b3\u7684\u95ee\u9898\u3002\u5de5\u4e1a\u754c\u7684\u67d0\u4e9b\u4eba\u521a\u521a\u624d\u8ba4\u8bc6\u5230 artificially widening narrow contracts considered harmful\u3002\u7406\u8bba\u754c\u8fd9\u65b9\u9762\u6574\u4f53\u53cd\u800c\u66f4\u5475\u5475\u5c31\u662f\u4e86\u3002\u8fd9\u5e94\u8be5\u662f\u8fd9\u91cc\u7684\u4eba\u90fd\u63a8\u52a8\u4e0d\u4e86\u7684\uff1b\u6240\u4ee5\u4f60\u5982\u679c\u5e72\u4e0d\u6389 DB\uff0c\u7ee7\u7eed\u5fcd\u51e0\u5341\u5e74\u597d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JJstyle <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u662f laravel \u9879\u76ee\uff0c\u5efa\u8bae\u7528 findOrFail \u65b9\u6cd5\u4ee3\u66ff find\uff0c\u8fd9\u4e2a\u51fd\u6570\u5728\u627e\u4e0d\u5230\u6570\u636e\u65f6\u76f4\u63a5\u629b\u5f02\u5e38\uff0c\u800c\u4e0d\u662f\u8fd4\u56de null\uff0c\u514d\u5f97\u540e\u9762\u8fd8\u53bb\u5224\u65ad\u53d6\u5f97\u7684\u6570\u636e\u662f\u4e0d\u662f null                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574123\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiaozoom <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u79cd\u7126\u8651\u6211\u7406\u89e3\u3002<br \/>\u201c\u8fd0\u884c\u5230\u67d0\u4e2a\u4ee3\u7801\u524d\u6570\u636e\u5e93\u91cc\u80af\u5b9a\u4f1a\u6709\u8fd9\u4e2a\u8bb0\u5f55\u201d<br \/>\u5728\u6211\u770b\u6765\uff0c\u8fd9\u771f\u7684\u6ca1\u6cd5\u80af\u5b9a\u7684\uff0c\u539f\u56e0\u53ef\u80fd\u4f1a\u6709\u591a\u65b9\u9762\u7684\uff0c\u6bd4\u5982\u6362\u4eba\u7ef4\u62a4\u4e86\uff0c\u53c8\u6bd4\u5982\u540e\u6765\u7ef4\u62a4\u7684\u4eba\u6839\u672c\u6ca1\u65f6\u95f4\u5f04\u61c2\u524d\u9762\u7684\u4ee3\u7801\u5c31\u5f00\u59cb\u6539\u540e\u9762\u7684\u90e8\u5206\uff08\u4eb2\u8eab\u7ecf\u5386\uff09\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574124\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yafoo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u540c\u6837\u7126\u8651                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574125\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wuchujie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             go \u5199\u591a\u4e86\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574126\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzzzx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shawnsh #3 @shawnsh #3 \u5f88\u591a\u60c5\u51b5\u5e76\u4e0d\u9700\u8981\u5d29\u6e83\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574127\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lxml <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wuchujie #19 \u54c8\u54c8\u54c8\uff0c\u662f\u6211\u6ca1\u9519\u4e86<br \/>go \u8bed\u8a00\u65e5\u5e38\u64cd\u4f5c<\/p>\n<p>\/\/ \u4ece\u6570\u636e\u5e93\u4e2d\u8bfb\u4e00\u884c\u8bb0\u5f55<\/p>\n<p>xxx ,err := dao.Find()xxx<\/p>\n<p>\/\/ \u51fa\u73b0\u9519\u8bef\u9519\u548b\u529e<br \/>if err != nil <br \/>\/\/ \u5904\u7406\u62ff\u4e0d\u5230\u7684\u9519\u8bef<br \/>if err = ErrNotFound<br \/>\/\/ \u5904\u7406\u5176\u4ed6\u5947\u5947\u602a\u602a\u7684\u9519\u8bef<br \/>else{<br \/>}<\/p>\n<p>\/\/ json \u5e8f\u5217\u5316\u4e00\u4e0b\uff0c\u53cd\u5e8f\u5217\u5316\u51fa\u9519\u53c8\u548b\u529e<br \/>err = Unmarshal() <\/p>\n<p>\u6c42\u6c42 go \u8bed\u8a00\u7684\u8001\u5927\u7237\u4eec \u65e9\u70b9\u51fa\u9519\u8bef\u4e00\u628a\u68ad\u65b9\u6848\u5427\uff0c\u6211\u77e5\u9053\u8fd9\u6837\u5199\u786e\u5b9e\u80fd\u65b9\u4fbf\u5904\u7406\u9519\u8bef\uff0c\u4f46\u662f\u5199\u4e1a\u52a1\u5199\u591a\u4e86\uff0c\u5b9e\u5728\u662f\u975e\u5e38\u5d29\u6e83\u554a                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574128\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lihongjie0209 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u62c5\u5fc3\u670d\u52a1\u5668\u7684\u5185\u5b58\u5728\u67d0\u4e00\u65f6\u523b\u5185\u5b58\u6570\u636e\u53d7\u5230\u7269\u7406\u5f71\u54cd\u88ab\u6539\u53d8\u4e86\uff0c \u600e\u4e48\u529e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574129\" 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>                                                             \u8bf4\u660e\u4e1a\u52a1\u903b\u8f91\u548c\u6570\u636e\u5e93\u5b58\u53d6\u8026\u5408\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574130\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Takamine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u2026\u2026Java \u53ea\u628a\u5f02\u5e38\u533a\u5206\u4e86 checked \u548c unchecked\uff0c\u6ca1\u8003\u8651\u5230\u7a81\u7136\u505c\u7535\u4e86\u600e\u4e48\u529e\u3002<br \/>:doge:                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574131\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crclz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6839\u636e\u4e1a\u52a1\u4ee3\u7801\u7684\u884c\u4e3a\uff0c\u6839\u636e\u903b\u8f91\u63a8\u6f14\uff0c\u53ef\u4ee5\u8bc1\u660e\uff1a\u8fd0\u884c\u5230\u67d0\u5904\uff0c\u67d0\u6761\u4ef6\u4e00\u5b9a\u6210\u7acb\u3002\uff08\u8fd9\u4e5f\u662f\u201c\u7ea6\u5b9a\u201d\u7684\u6570\u5b66\u57fa\u7840\uff09<br \/>\u5982\u679c\u67d0\u4e2a\u6761\u4ef6\u6ca1\u6709\u88ab\u6ee1\u8db3\uff0c\u90a3\u4e48\u5c31\u8bf4\u660e\u5b83\u7684\u6570\u5b66\u57fa\u7840\u4e0d\u6ee1\u8db3\uff1a\u4e00\u5b9a\u662f\u4ee3\u7801\u6709 bug\uff0c\u6216\u8005 DBMS \u6709 bug\uff0c\u6216\u8005\u662f\u6709\u5176\u4ed6\u672a\u9075\u5b88\u7ea6\u5b9a\u7684\u7a0b\u5e8f\uff08\u6216\u8005\u4eba\uff09\u968f\u610f\u7684\u4fee\u6539\u4e86\u6570\u636e\u5e93\u7684\u8bb0\u5f55\u3002<\/p>\n<p>\u5047\u8bbe\u67d0\u8bb0\u5f55\u4e0d\u5b58\u5728\uff0c\u90a3\u4e48\u4f60\u5728\u8bbf\u95ee\u6a21\u578b\u7c7b\uff08\u5047\u8bbe\u7528 orm \uff09\u7684\u6210\u5458\u7684\u65f6\u5019\uff08\u4e5f\u53ef\u4ee5\u4e3b\u52a8\u68c0\u67e5\uff09\u5c31\u4f1a\u629b\u51fa\u7a7a\u5f15\u7528\u5f02\u5e38\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u67e5\u770b log\uff0c\u6392\u67e5\u4ee5\u4e0a\u4e09\u6761\u4e2d\u7684\u54ea\u4e00\u6761\u51fa\u4e86\u95ee\u9898\u3002<br \/>\u7ad9\u5728\u666e\u901a\u6210\u5458\u7684\u89d2\u5ea6\uff0c\u901a\u5e38\u53ea\u6709\u7b2c\u4e00\u6761\u662f\u4f60\u7684\u9505\uff0c\u90a3\u4e48\u5c31\u5728\u4e1a\u52a1\u4ee3\u7801\u4e2d\u505a\u8db3\u6d4b\u8bd5\uff0c\u5e76\u4e14\u5728\u4e1a\u52a1\u4ee3\u7801\u4e2d\u52a0\u4e0a\uff08\u9002\u91cf\u7684\uff09\u5224\u65ad\u7ea6\u5b9a\u6761\u4ef6\u662f\u5426\u6210\u7acb\u7684\u8bed\u53e5\u3002<\/p>\n<p>\u7ad9\u5728                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574132\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crclz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \uff08\u63a5\u4e0a\u6587\uff09<br \/>\u7ad9\u5728\u7cfb\u7edf\u8d1f\u8d23\u4eba\u7684\u89d2\u5ea6\uff0c\u8981\u9632\u5fa1\u5230\u5404\u65b9\u9762\u7684\u56e0\u7d20\uff0c\u90a3\u4e48\u5c31\u8bf7\u4f7f\u7528 [\u4e8b\u4ef6\u6eaf\u6e90] \u6a21\u5f0f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"574133\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shawnsh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wzzzx \u6211\u8bf4\u7684\u662f\u6ca1\u7535\u673a\u5668\u5c31\u4e0d\u80fd\u8dd1,\u4e0d\u80fd\u5224\u65ad\u4e0b\u6ca1\u7535\u4e5f\u8ba9\u673a\u5668\u8dd1\u5427.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4f5c\u6570\u636e\u5e93\u7684\u8bfb\u5199\u64cd\u4f5c\u65f6\u5927\u5bb6\u6709\u6ca1\u8fc7\u4e00&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\/88887"}],"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=88887"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/88887\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88887"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}