{"id":2470,"date":"2015-08-02T13:56:16","date_gmt":"2015-08-02T05:56:16","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=2470"},"modified":"2015-08-02T13:56:16","modified_gmt":"2015-08-02T05:56:16","slug":"collect%e5%bc%80%e6%ba%90%e9%a1%b9%e7%9b%ae%e7%bc%96%e7%a8%8b%e9%a3%8e%e6%a0%bc%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/2470.html","title":{"rendered":"[collect]\u5f00\u6e90\u9879\u76ee\u7f16\u7a0b\u98ce\u683c\u6307\u5357"},"content":{"rendered":"<h5>==Google \u5f00\u6e90\u9879\u76ee\u98ce\u683c\u6307\u5357 (\u4e2d\u6587\u7248)==<\/h5>\n<ul>\n<li>\u5728\u7ebf\u6587\u6863\u6258\u7ba1\u5728 ReadTheDocs\uff1a<a href=\"http:\/\/zh-google-styleguide.readthedocs.org\/\" target=\"_blank\">\u5728\u7ebf\u9605\u8bfb\u6700\u65b0\u7248\u672c<\/a><\/li>\n<li>\u4e2d\u6587\u98ce\u683c\u6307\u5357 GitHub \u6258\u7ba1\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/zh-google-styleguide\/zh-google-styleguide\" target=\"_blank\">zh-google-styleguide<\/a><\/li>\n<\/ul>\n<h6>\u58f0\u660e\uff1a<\/h6>\n<p>\u672c\u9879\u76ee\u5e76\u975e Google \u5b98\u65b9\u9879\u76ee\uff0c\u800c\u662f\u7531\u56fd\u5185\u7a0b\u5e8f\u5458\u51ed\u70ed\u60c5\u521b\u5efa\u548c\u7ef4\u62a4\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5173\u6ce8\u7684\u662f Google \u5b98\u65b9\u82f1\u6587\u7248\uff0c\u8bf7\u79fb\u6b65 <a href=\"http:\/\/code.google.com\/p\/google-styleguide\/\">Google Style Guide<\/a><\/p>\n<p>\u6bcf\u4e2a\u8f83\u5927\u7684\u5f00\u6e90\u9879\u76ee\u90fd\u6709\u81ea\u5df1\u7684\u98ce\u683c\u6307\u5357\uff1a\u5173\u4e8e\u5982\u4f55\u4e3a\u8be5\u9879\u76ee\u7f16\u5199\u4ee3\u7801\u7684\u4e00\u7cfb\u5217\u7ea6\u5b9a (\u6709\u65f6\u5019\u4f1a\u6bd4\u8f83\u6b66\u65ad)\u3002\u5f53\u6240\u6709\u4ee3\u7801\u5747\u4fdd\u6301\u4e00\u81f4\u7684\u98ce\u683c\uff0c\u5728\u7406\u89e3\u5927\u578b\u4ee3\u7801\u5e93\u65f6\u66f4\u4e3a\u8f7b\u677e\u3002<\/p>\n<p>\u201c\u98ce\u683c\u201d \u7684\u542b\u4e49\u6db5\u76d6\u8303\u56f4\u5e7f\uff0c\u4ece \u201c\u53d8\u91cf\u4f7f\u7528\u9a7c\u5cf0\u683c\u5f0f (camelCase)\u201d \u5230 \u201c\u51b3\u4e0d\u4f7f\u7528\u5168\u5c40\u53d8\u91cf\u201d \u518d\u5230 \u201c\u51b3\u4e0d\u4f7f\u7528\u5f02\u5e38\u201d\u3002\u82f1\u6587\u7248\u9879\u76ee\u7ef4\u62a4\u7684\u662f\u5728 Google \u4f7f\u7528\u7684\u7f16\u7a0b\u98ce\u683c\u6307\u5357\u3002\u5982\u679c\u4f60\u6b63\u5728\u4fee\u6539\u7684\u9879\u76ee\u6e90\u81ea Google\uff0c\u4f60\u53ef\u80fd\u4f1a\u88ab\u5f15\u5bfc\u81f3\u82f1\u6587\u7248\u9879\u76ee\u9875\u9762\uff0c\u4ee5\u4e86\u89e3\u9879\u76ee\u6240\u4f7f\u7528\u7684\u98ce\u683c\u3002<\/p>\n<p>\u6211\u4eec\u5df2\u7ecf\u53d1\u5e03\u4e86\u56db\u4efd \u4e2d\u6587\u7248 \u7684\u98ce\u683c\u6307\u5357\uff1a<\/p>\n<ol>\n<li><a href=\"http:\/\/zh-google-styleguide.readthedocs.org\/en\/latest\/google-cpp-styleguide\/\" target=\"_blank\">Google C++ \u98ce\u683c\u6307\u5357<\/a><\/li>\n<li><a href=\"http:\/\/zh-google-styleguide.readthedocs.org\/en\/latest\/google-objc-styleguide\/\" target=\"_blank\">Google Objective-C \u98ce\u683c\u6307\u5357<\/a><\/li>\n<li><a href=\"http:\/\/zh-google-styleguide.readthedocs.org\/en\/latest\/google-python-styleguide\/\" target=\"_blank\">Google Python \u98ce\u683c\u6307\u5357<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/darcyliu\/google-styleguide\/blob\/master\/JSONStyleGuide.md\" target=\"_blank\">Google JSON \u98ce\u683c\u6307\u5357<\/a><\/li>\n<\/ol>\n<p>\u4e2d\u6587\u7248\u9879\u76ee\u91c7\u7528 reStructuredText \u7eaf\u6587\u672c\u6807\u8bb0\u8bed\u6cd5\uff0c\u5e76\u4f7f\u7528 Sphinx \u751f\u6210 HTML \/ CHM \/ PDF \u7b49\u6587\u6863\u683c\u5f0f\u3002<\/p>\n<p>\u82f1\u6587\u7248\u9879\u76ee\u8fd8\u5305\u542b <a href=\"http:\/\/google-styleguide.googlecode.com\/svn\/trunk\/cpplint\" target=\"_blank\">cpplint <\/a>\u2014\u2014 \u4e00\u4e2a\u7528\u6765\u5e2e\u52a9\u9002\u5e94\u98ce\u683c\u51c6\u5219\u7684\u5de5\u5177\uff0c\u4ee5\u53ca <a href=\"http:\/\/google-styleguide.googlecode.com\/svn\/trunk\/google-c-style.el\" target=\"_blank\">google-c-style.el<\/a>\uff0cGoogle \u98ce\u683c\u7684 Emacs \u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u62db\u52df\u81ea\u613f\u8005\u7ffb\u8bd1 <a href=\"http:\/\/google-styleguide.googlecode.com\/svn\/trunk\/javascriptguide.xml\" target=\"_blank\">JavaScript Style Guide <\/a>\u4ee5\u53ca <a href=\"http:\/\/google-styleguide.googlecode.com\/svn\/trunk\/xmlstyle.html\" target=\"_blank\">XML Document Format Style Guide<\/a>\uff0c\u6709\u610f\u8005\u8bf7\u8054\u7cfb <a href=\"http:\/\/yangyubo.com\/\" target=\"_blank\">brantyoung<\/a>\u3002<\/p>\n<h6>\u539f\u6587\u94fe\u63a5\uff1a<\/h6>\n<p><a href=\"http:\/\/zh-google-styleguide.readthedocs.org\/en\/latest\/\" target=\"_blank\">http:\/\/zh-google-styleguide.readthedocs.org\/en\/latest\/<\/a><\/p>\n<p>==<\/p>\n<p>\u9664\u4e86\u4ee5\u4e0aGoogle\u5bb6\u7684\u7f16\u7a0b\u98ce\u683c\u6307\u5357\uff0c\u56fd\u5185\u7684\u5382\u5546\u534e\u4e3a\u4e5f\u6709\u51e0\u4efd\u4e0d\u9519\u7684\u6307\u5357\/\u89c4\u8303\u53ef\u4ee5\u53c2\u8003\u5b66\u4e60\uff1a<\/p>\n<ul>\n<li><a href=\"http:\/\/vdisk.weibo.com\/s\/BGRGEErhviAkn\" target=\"_blank\">http:\/\/vdisk.weibo.com\/s\/BGRGEErhviAkn<\/a><\/li>\n<li><a href=\"http:\/\/wenku.baidu.com\/view\/40f60ec74028915f804dc2d7.html\" target=\"_blank\">http:\/\/wenku.baidu.com\/view\/40f60ec74028915f804dc2d7.html<\/a><\/li>\n<li><a href=\"http:\/\/down.51cto.com\/data\/262199\" target=\"_blank\">http:\/\/down.51cto.com\/data\/262199<\/a><\/li>\n<li><a href=\"http:\/\/www.ha97.com\/5520.html\" target=\"_blank\">http:\/\/www.ha97.com\/5520.html<\/a><\/li>\n<\/ul>\n<p>=EOF=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>==Google \u5f00\u6e90\u9879\u76ee\u98ce\u683c\u6307\u5357 (\u4e2d\u6587\u7248)== \u5728\u7ebf\u6587\u6863\u6258\u7ba1\u5728 ReadTheDocs\uff1a\u5728\u7ebf\u9605\u8bfb\u6700\u65b0\u7248\u672c  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,7],"tags":[549,550],"class_list":["post-2470","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-programing","tag-collect","tag-style"],"views":12849,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=2470"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2470\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=2470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=2470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=2470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}