{"id":192217,"date":"2020-11-05T06:32:38","date_gmt":"2020-11-04T22:32:38","guid":{"rendered":"http:\/\/4563.org\/?p=192217"},"modified":"2020-11-05T06:32:38","modified_gmt":"2020-11-04T22:32:38","slug":"%e6%88%91%e5%86%99%e4%ba%86%e4%b8%aa-bug%ef%bc%8c%e8%b0%b7%e6%ad%8c%e9%9d%a2%e8%af%95%e5%ae%98%e5%8d%b4%e8%af%b4%ef%bc%9a%e4%bd%a0%e9%80%9a%e8%bf%87%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=192217","title":{"rendered":"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hakunamatata11 <\/span>  <span><i><\/i> 6<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8c37\u6b4c\u7684 slow hiring \u5bfc\u81f4\u4eca\u5e74\u5c97\u4f4d\u653e\u5f00\u65f6\u95f4\u8f83\u665a\uff0c\u5f88\u591a\u540c\u5b66\u6700\u8fd1\u624d\u9646\u7eed\u62ff\u5230 offer \u3002<\/p>\n<p>\u4e00\u8fb9\u6709\u4eba\u53cd\u9988\u9762\u8bd5<strong>bar \u62d4\u9ad8\uff0c\u7b97\u6cd5\u504f\u96be\u3001\u52a0\u8bd5\u666e\u904d<\/strong>\uff1b\u4e5f\u6709\u4eba\u5374\u8bf4<strong>\u5199\u4e86\u4e2a bug\uff0c\u4f9d\u7136\u8fc7\u4e86\u9762\u8bd5<\/strong>&#8230;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0fa7ad51e5.png\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<p>\u4e0d\u5c11\u9762\u8bd5\u8005\u6709\u6b64\u7591\u95ee\uff1a<strong>Coding \u9762\u8bd5\u4e2d\u51fa\u73b0 bug\uff0c\u662f\u4e0d\u662f\u5c31\u51c9\u51c9\u4e86\uff1f<\/strong><\/p>\n<p>\u7b54\u6848\u662f\uff0c**\u4e0d\u4e00\u5b9a\uff01**\u6700\u9876\u5c16\u7684\u5de5\u7a0b\u5e08\u4e5f\u5f88\u96be\u5728\u9762\u8bd5\u4e2d\u4e00\u6b21\u6027\u505a\u5230 bug free\uff0c\u6240\u4ee5\u901a\u5e38\u9762\u8bd5\u5b98\u4e0d\u4f1a\u56e0\u4e3a\u4ee3\u7801\u51fa\u73b0 bug \u5c31\u6302\u6389\u4f60\u7684\u9762\u8bd5\u3002\u4ed6\u4eec\u5f80\u5f80\u66f4\u6ce8\u91cd\u8003\u67e5\uff1a<\/p>\n<blockquote>\n<p><strong>\u662f\u5426\u80fd\u591f\u610f\u8bc6\u5230\u6709 bug<\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p><strong>\u662f\u5426\u77e5\u9053\u5982\u4f55\u8bc6\u522b\u548c\u4fee\u6b63 bug<\/strong><\/p>\n<\/blockquote>\n<h2><strong>\u6211\u5199\u4e86\u4e2a bug\uff0c\u9762\u8bd5\u5b98\u6839\u672c\u4e0d care<\/strong><\/h2>\n<p>Coding \u9762\u8bd5\u5b9e\u9645\u4e0a\u5c31\u662f\u4e2a\u793a\u4f8b\uff0c\u4e3b\u8981\u4e3a\u4e86\u8003\u5bdf\u6c42\u804c\u8005\u7684\u7f16\u7a0b\u80fd\u529b\uff0c\u6240\u4ee5<strong>\u4e0d\u8981\u6c42\u4e25\u683c\u610f\u4e49\u4e0a\u7684 bug free<\/strong>\u3002<\/p>\n<p>\u5982\u679c\u5199\u51fa bug\uff0c\u4f46\u81ea\u5df1\u8dd1\u8fc7 test case \u540e\u6539\u6b63\u4e86\uff0c\u4e00\u822c\u4e5f\u4e0d\u5f71\u54cd\u9762\u8bd5\u901a\u8fc7\u3002<img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0fa852a89b.png\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<p>\u6765\u6e90\uff1a1024bbs<\/p>\n<p>\u518d\u6bd4\u5982\u8fd9\u6bb5 Java \u4ee3\u7801\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0fa92e6586.jpg\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<p>\u7b2c 2 \u884c\u4e2d\u6709\u4e00\u4e2a\u201c\u5927\u201d bug\uff0c\u5e94\u8be5\u5199 add\uff0c\u800c\u4e0d\u662f insert \u3002<\/p>\n<p>\u4f46\u5927\u90e8\u5206\u9762\u8bd5\u5b98\u5e76\u4e0d\u4f1a\u5439\u6bdb\u6c42\u75b5\uff0c\u4ed6\u4eec\u4f1a\u901a\u8fc7\u8fd9\u4e2a\u4ee3\u7801\u793a\u4f8b\u63a8\u6d4b\uff1a\u9762\u8bd5\u8005\u53ef\u80fd\u4e0d\u4f1a\u4f7f\u7528\u5185\u7f6e\u7684\u94fe\u8868\u7c7b\u3002\u8fd9\u4e00\u70b9\uff0c\u9762\u8bd5\u5b98\u6709\u53ef\u80fd\u6839\u672c\u4e0d care \u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0faa099f7e.jpg\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<h2><strong>\u96f6\u5bb9\u5fcd\u7684 bug\uff0c\u5199\u5b8c\u76f4\u63a5\u6302\uff01<\/strong><\/h2>\n<p>\u4e0d\u8fc7<strong>\u6709\u4e9b\u77ed\u677f\uff0c\u53ef\u80fd\u662f\u81f4\u547d\u7684<\/strong>\uff0c\u76f4\u63a5\u8ba9\u4f60 fail \u6389\u9762\u8bd5\u3002\u4e0b\u9762\u8fd9\u6bb5\u7b80\u5355\u7684\u4ee3\u7801\u4e00\u5171\u51fa\u73b0\u4e86 4 \u4e2a\u95ee\u9898\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0faafeaf82.png\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<p>1. \u5982\u679c\u6570\u7ec4\u4e3a\u7a7a\uff0c\u6b64\u7a0b\u5e8f\u5c06\u5728\u7b2c 2 \u884c\u5d29\u6e83\u3002 2. for \u5faa\u73af\u5f00\u59cb\u4e8e i=0\uff0c\u4f46\u6ca1\u6709\u5fc5\u8981\uff0c\u5e94\u8be5\u5728 i=1 \u5f00\u59cb\u3002 3. for \u5faa\u73af\u7684\u5faa\u73af\u6761\u4ef6\u4e3a&lt;\u3002\u957f\u5ea6\uff0c\u6bcf\u6b21\u90fd\u8981\u63d0\u53d6\u6570\u7ec4\u957f\u5ea6\uff0c\u589e\u52a0\u6b65\u9aa4\u3002 4. \u7b2c 4 \u884c\u4e3a&gt;\u3002\u4e0d\u597d<\/p>\n<p>\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9762\u8bd5\u5b98\u53ef\u80fd\u4f1a\u8ba4\u4e3a\uff1a<strong>\u9762\u8bd5\u8005\u4f1a\u5199\u4ee3\u7801\uff0c\u4f46\u4e0d\u5e38\u5199<\/strong>\uff08\u56e0\u4e3a\u95ee\u9898 3 \uff09\u3002\u800c\u4e14\u8fde\u8fd9\u6837\u4e00\u4e2a\u57fa\u7840\u7684 for \u5faa\u73af\u7a0b\u5e8f\u4e5f\u5199\u4e0d\u597d\uff0c\u7b80\u76f4\u4e0d\u9760\u8c31\uff01<\/p>\n<p>\u4ee5\u4e0b\u662f\u9762\u8bd5\u4e2d\u7684\u4e00\u4e2a\u771f\u5b9e\u4ee3\u7801\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0fabc99c26.png\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u5c31\u4e0d\u4ec5\u4ec5\u662f\u7c97\u5fc3\u7684\u95ee\u9898\u4e86\uff0c\u5b83<strong>\u6839\u672c\u6beb\u65e0\u610f\u4e49\u3002\u60f3\u901a\u8fc7\u9762\u8bd5\u51e0\u4e4e\u662f\u4e0d\u53ef\u80fd\u7684\uff01<\/strong><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0faca815fc.jpg\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<h2><strong>\u9762\u5b8c\u81ea\u6211\u611f\u89c9\u826f\u597d\uff1f\u4f60\u6e05\u9192\u70b9\u5427<\/strong><\/h2>\n<p>\u597d\u4e9b\u4eba\u5728\u9762\u8bd5\u8fc7\u7a0b\u4e2d\u81ea\u6211\u611f\u89c9\u826f\u597d\uff0c\u4f46\u5374\u6536\u5230\u4e86\u62d2\u4fe1\u3002\u4ed6\u4eec\u6216\u8bb8\u5f88\u60ca\u8bb6\uff1a<strong>\u6211\u5199\u7684\u4ee3\u7801\u201c\u5b8c\u5168\u6b63\u786e\u201d\u600e\u4e48\u4f1a\u88ab\u62d2\u5462\uff1f<\/strong><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0fad8c6867.png\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<p>\u6765\u6e90\uff1a1024bbs<\/p>\n<p>\u4e8b\u5b9e\u4e0a\uff0c\u4ec5\u4ec5\u6709\u6b63\u786e\u5ea6\uff08\u505a\u51fa\u9898\u76ee\uff09\u662f\u4e0d\u591f\u7684\uff01<\/p>\n<p>\u9762\u8bd5\u5f53\u4e2d\uff0c\u88ab\u8003\u5bdf\u7684\u80fd\u529b\u662f\u65b9\u65b9\u9762\u9762\u7684\uff1a\u53ef\u80fd\u662f\u4f60\u7684<strong>\u6280\u672f\u77e5\u8bc6\u3001\u4ee3\u7801\u98ce\u683c\u3001\u6a21\u5757\u80fd\u529b\u3001\u4e25\u8c28\u80fd\u529b\u7b49<\/strong>\u3002<\/p>\n<p>\u867d\u7136\u4f60\u5728\u4e00\u4e2a\u9898\u76ee\u4e0a\u505a\u5230\u4e86 bug free\uff0c\u4f46\u5982\u679c\u4f60\u5728 coding \u8fc7\u7a0b\u4e2d\u4e0d\u5c0f\u5fc3\u66b4\u9732\u4e86\u4f60\u8584\u5f31\u7684\u5206\u6790\u80fd\u529b\u548c coding \u6280\u80fd\uff0c\u4e5f\u9003\u4e0d\u8fc7\u9762\u8bd5\u5b98\u7684\u201c\u706b\u773c\u91d1\u775b\u201d\u3002<\/p>\n<h2><strong>\u5982\u4f55\u63d0\u5347 coding style \u548c\u505a\u5230 bug free<\/strong><\/h2>\n<p>\u5728\u65e5\u5e38 coding \u4e2d\uff0c\u57f9\u517b\u826f\u597d\u7684 coding style \u53ef\u4ee5\u5e2e\u52a9\u4f60\u907f\u514d\u9762\u8bd5\u4e2d\u4e0d\u8be5\u51fa\u73b0\u7684 bug \u3002\u63a8\u8350\u4e00\u4e9b\u8d44\u6599\uff1a<\/p>\n<p>##1. Google Style Guides<\/p>\n<p>\u8c37\u6b4c\u53ea\u6709\u4e00\u4e2a\u4ee3\u7801\u4ed3\u5e93\uff0c\u6e90\u4ee3\u7801\u90fd\u653e\u5728\u81ea\u884c\u5f00\u53d1\u7684\u7248\u672c\u7ba1\u7406\u7cfb\u7edf Piper \u4e2d\u3002\u5982\u6b64\u5e9e\u5927\u7684\u4ee3\u7801\u5e93\uff0c\u6ca1\u6709\u7edf\u4e00\u7684\u4ee3\u7801\u98ce\u683c\uff0c\u9605\u8bfb\u8d77\u6765\u662f\u76f8\u5f53\u56f0\u96be\u7684\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5185\u90e8\u5fc5\u987b\u9075\u5faa\u300a Google Style Guides \u300b\uff0c\u800c\u5b83\u7684\u4ee3\u7801\u98ce\u683c\u4e5f\u88ab\u4e1a\u754c\u9ed8\u8ba4\u4e3a\u6807\u51c6\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201115_5fb0fae677adc.png\" alt=\"\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a\u4f60\u901a\u8fc7\u4e86\uff01\" \/><\/p>\n<p>##2. \u4e5d\u7ae0\u7b97\u6cd5\u73ed 2020 \u7248<\/p>\n<p>\u5237\u9898\u8d85\u8fc7 3000 \u9053\u7684<strong>\u4ee4\u72d0\u51b2\u8001\u5e08<\/strong>\uff0c\u5728\u300a\u4e5d\u7ae0\u7b97\u6cd5\u73ed\u300b\u4e2d\u5f3a\u8c03\u8fc7\uff0c\u60f3\u62ff\u5230\u5927\u5382\u9762\u8bd5\u7684 hire \u548c strong hire\uff0c<strong>\u826f\u597d\u7684\u4ee3\u7801\u8d28\u91cf\u662f\u57fa\u672c\u8981\u6c42<\/strong>\u3002\u63d0\u5347 coding style \u7684\u9014\u5f84\u6709\uff1a<\/p>\n<ul>\n<li>\u907f\u514d\u5197\u4f59\u7684\u6ce8\u91ca<\/li>\n<li>\u4ee3\u7801\u5206\u7ec4<\/li>\n<li>\u5e72\u71e5\u539f\u5219<\/li>\n<li>\u62d2\u7edd\u6df1\u5ea6\u5d4c\u5957<\/li>\n<\/ul>\n<p>\u66f4\u5177\u4f53\u7684\u6784\u5efa\u4f18\u79c0 coding quality\uff0c\u6b22\u8fce\u6765\u8bd5\u542c\u4ee4\u72d0\u8001\u5e08\u8fd1\u671f\u65b0\u6539\u7248\u7684**\u300a\u300a\u4e5d\u7ae0\u7b97\u6cd5\u73ed\u300b<strong>\u6233\u6211\u5373\u53ef\u62a5\u540d\u514d\u8d39\u8bd5\u542c<\/strong>\u524d\u56db\u7ae0**~<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5199\u4e86\u4e2a bug\uff0c\u8c37\u6b4c\u9762\u8bd5\u5b98\u5374\u8bf4\uff1a&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\/192217"}],"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=192217"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/192217\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192217"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}