{"id":643,"date":"2021-05-09T17:45:53","date_gmt":"2021-05-09T09:45:53","guid":{"rendered":"https:\/\/www.chenqing.work\/?p=643"},"modified":"2021-05-09T17:47:49","modified_gmt":"2021-05-09T09:47:49","slug":"%e7%bc%96%e7%a8%8b%e8%8c%83%e5%bc%8f-%e7%82%bc%e6%b0%94%e7%af%87","status":"publish","type":"post","link":"https:\/\/www.chenqing.work\/?p=643","title":{"rendered":"\u7f16\u7a0b\u8303\u5f0f &#8211; \u70bc\u6c14\u7bc7"},"content":{"rendered":"\n<p>\u4e94\u4e00\u5bb6\u91cc\u8e72\uff0c\u7ffb\u7ffb\u300a<em>Programming Paradigms for Dummies: What Every Programmer Should Know<\/em>\u300b\uff0c\u5b66\u4e60\u5b66\u4e60\uff0c\u8bfb\u540e\u7b14\u8bb0\u51c6\u5907\u5199\u4e09\u7bc7\uff1a\u70bc\u6c14\u3001\u7b51\u57fa\u3001\u98de\u5347\uff0c\u4e0b\u9762\u662f\u70bc\u6c14\u7bc7 ^^\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u6211\u4eec\u90fd\u77e5\u9053\u7f16\u7a0b\u8bed\u8a00\u662f\u600e\u4e48\u4e00\u6b65\u6b65\u8fc7\u6765\u7684\uff0c\u4ece\u6700\u5f00\u59cb\u7684\u7a7f\u5b54\u673a\u5230\u6c47\u7f16\u518d\u5230\u5404\u79cd\u9ad8\u7ea7\u8bed\u8a00\uff0c\u73b0\u5728\u5e38\u89c1\u4e8e\u773c\u524d\u7684\u90fd\u662f\u4e9b\u9ad8\u7ea7\u8bed\u8a00\uff0c\u8001\u724c\u5f3a\u8005\u5982 C\u3001Java\u3001SQL\u3001JavaScript\u3001C++\uff0c\u65b0\u79c0\u5982 Python\u3001Go\u3001Kotlin\u3001Rust\u3001Julia\u3002<a href=\"https:\/\/www.tiobe.com\/tiobe-index\/\" data-type=\"URL\" data-id=\"https:\/\/www.tiobe.com\/tiobe-index\/\">TIBOE<\/a> 2021 5\u6708\u7684\u7f16\u7a0b\u8bed\u8a00\u6392\u884c\u699c\u524d\u5341\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1160\" height=\"579\" src=\"https:\/\/www.chenqing.work\/wp-content\/uploads\/2021\/05\/image-14.png\" alt=\"\" class=\"wp-image-711\"\/><\/figure>\n\n\n\n<p>\u7a0b\u5e8f\u5458\u7ecf\u5e38\u8bf4\u7684\u4e00\u4e2a\u6897\u662f\u2014\u2014PHP\u662f\u4e16\u754c\u4e0a\u6700\u597d\u7684\u8bed\u8a00\uff0c\u5927\u81f4\u53cd\u6620\u51fa\u5927\u5bb6\u666e\u904d\u8ba4\u540c\u4e00\u4e2a\u89c2\u70b9\u2014\u2014\u6ca1\u6709\u6700\u597d\u7684\u8bed\u8a00\uff0c\u53ea\u6709\u6700\u9002\u914d\u9700\u6c42\u573a\u666f\u7684\u8bed\u8a00\uff0c\u597d\u6bd4\u745e\u58eb\u519b\u5200\u548c\u65a9\u9a6c\u5200\uff0c\u5404\u6709\u9002\u7528\u573a\u666f\u3002<\/p>\n\n\n\n<p>\u5e73\u65f6\u5927\u5bb6\u90fd\u662f\u7528\u8bbe\u8ba1\u597d\u7684\u8bed\u8a00\uff0c\u5982\u540c\u751f\u6d3b\u5728\u5404\u4e2a\u8bed\u8a00\u521b\u9020\u597d\u7684\u4e16\u754c\u91cc\uff0c\u5982\u679c\u62ac\u5934\u60f3\u60f3\u8bed\u8a00\u4e5f\u662f\u7531\u4eba\u521b\u9020\u7684\uff0c\u90a3\u4e48\u8bed\u8a00\u7684\u6c34\u9762\u4e0b\u5fc5\u7136\u6709\u4e00\u4e9b\u6570\u91cf\u76f8\u5bf9\u5c11\u7684\u6307\u5bfc\u539f\u5219\uff0c\u8fd9\u4e9b\u6307\u5bfc\u539f\u5219\u6307\u5bfc\u5efa\u8bbe\u4e86\u8fd9\u95e8\u8bed\u8a00\uff0c\u53e6\u4e00\u4e9b\u6307\u5bfc\u539f\u5219\u5219\u6307\u5bfc\u5efa\u8bbe\u4e86\u53e6\u4e00\u95e8\u8bed\u8a00\uff0c\u751a\u81f3\u4ece\u524d\u4e24\u8005\u7684\u6307\u5bfc\u539f\u5219\u4e2d\u62bd\u53d6\u51fa\u90e8\u5206\u518d\u6307\u5bfc\u5efa\u8bbe\u7b2c3\u95e8\u8bed\u8a00\u3002\u5177\u4f53\u8bed\u8a00\u7684\u8bed\u6cd5\u7ec6\u8282\u5404\u5f02\uff0c\u800c\u6307\u5bfc\u539f\u5219\u5219\u53ef\u80fd\u5b58\u5728\u5171\u901a\u4e4b\u5904\u3002\u5982\u679c\u628a\u6ce8\u610f\u529b\u805a\u7126\u5230\u7f16\u7a0b\u8bed\u8a00\u8fd9\u4e2a\u5c42\u9762\uff0c\u8fd9\u4e9b\u6307\u5bfc\u539f\u5219\u5c31\u662f\u8981\u4e86\u89e3\u7684\u6838\u5fc3\u6240\u5728\u3002\u8fd9\u4e9b\u6307\u5bfc\u539f\u5219\u53ef\u4ee5\u79f0\u4e3a programming concept\uff0c\u89e3\u51b3\u67d0\u7c7b\u95ee\u9898\u6700\u4f73\u7684\u4e00\u7ec4\u6982\u5ff5\uff08concept\uff09\u7ec4\u6210\u4e86\u4e00\u4e2a \u8303\u5f0f\uff08programming paradigm\uff0cCTM\uff1aparadigm \u8fd9\u4e2a\u8bf4\u6cd5\u592a\u66a7\u6627\u4e86\uff0c\u6211\u7528 computation model\uff09\u3002\u89c4\u8303\u4e00\u4e9b\u53ef\u4ee5\u8bf4\u4e00\u4e2a\u7f16\u7a0b\u8303\u5f0f\u662f\u6307\u57fa\u4e8e\u4e00\u79cd\u6570\u5b66\u7406\u8bba\u6216\u8005\u4e00\u5957\u76f8\u5173\u7684\u51c6\u5219\u8fdb\u884c\u7f16\u7a0b\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>\u4e00\u4e2a\u7f16\u7a0b\u8bed\u8a00\uff08language\uff09\u7531\u591a\u4e2a\uff08\u4e00\u822c1\u52302\u4e2a\uff09\u8303\u5f0f\uff08paradigm\uff09\u7ec4\u6210\uff0c\u4e00\u4e2a\u8303\u5f0f\u7531\u591a\u4e2a\u6982\u5ff5\uff08concept\uff09\u7ec4\u6210\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"557\" src=\"https:\/\/www.chenqing.work\/wp-content\/uploads\/2021\/05\/image.png\" alt=\"\" class=\"wp-image-644\"\/><\/figure>\n\n\n\n<p>\u5e38\u7528\u7684\u8303\u5f0f\u6709\uff1a\u9762\u5411\u5bf9\u8c61\uff08Java\uff09\u3001\u9762\u5411\u8fc7\u7a0b\uff08C\uff09\u3001\u51fd\u6570\u5f0f\uff08haskell\uff09\u3001\u903b\u8f91\u5f0f\u7b49\u3002\u800c\u9762\u5411\u5bf9\u8c61\u3001\u9762\u5411\u8fc7\u7a0b\u53c8\u53ef\u4ee5\u5f52\u7c7b\u5230\u547d\u4ee4\u5f0f\u7f16\u7a0b\uff08imperative programming\uff09\u8303\u5f0f\u4e0b\uff0c\u547d\u4ee4\u5f0f\u7f16\u7a0b\u4f1a\u544a\u8bc9\u8ba1\u7b97\u673a\u600e\u4e48\u6267\u884c\uff0c\u4e0e\u547d\u4ee4\u5f0f\u76f8\u5bf9\u7684\u662f\u58f0\u660e\u5f0f\u7f16\u7a0b\uff08declarative programming\uff09\u8303\u5f0f\uff0c\u58f0\u660e\u5f0f\u7f16\u7a0b\u53ea\u544a\u8bc9\u8ba1\u7b97\u673a\u6211\u9700\u8981\u8fd9\u4e2a\u7ed3\u679c\uff0c\u5177\u4f53\u600e\u4e48\u6267\u884c\u7531\u8ba1\u7b97\u673a\u63a8\u5bfc\u3002\u7f16\u7a0b\u8303\u5f0f\u975e\u5e38\u591a\uff0c\u653e\u5230\u7b51\u57fa\u7bc7\u91cc\u518d\u8bf4\uff0c\u8bf4\u8bf4\u6700\u91cd\u8981\u6700\u901a\u7528\u7684\u7f16\u7a0b\u6982\u5ff5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong><em>records<\/em><\/strong>\uff0c\u4e00\u4e2a\u6570\u636e\u7ed3\u6784\uff0c\u5305\u542b\u4e00\u7ec4\u6570\u636e\u9879\u7684\u5f15\u7528\uff0c\u53ef\u4ee5\u7d22\u5f15\u5230\u6bcf\u4e00\u4e2a\u5305\u542b\u7684\u6570\u636e\u9879\u3002\u53ef\u4ee5\u5f15\u7533\u51fa arrays\u3001lists\u3001strings\u3001trees\u3001hash tables \u7b49\u3002<\/li><li>(<strong><em>lexically scoped) closures<\/em><\/strong>\uff0c\uff08\u8bcd\u6cd5\u8303\u56f4\u7684\uff09\u95ed\u5305\uff0c\u4e00\u4e2a\u6267\u884c\u8fc7\u7a0b+\u5916\u90e8\u5f15\u7528\uff0c\u5728\u7a0b\u5e8f\u5458\u89c6\u89d2\u5c31\u662f\u4e00\u4e2a\u5de5\u4f5c\u5757\uff0c\u8fc7\u7a0b\u3001\u65b9\u6cd5\u3001\u5bf9\u8c61\u3001\u7c7b\uff0c\u90fd\u5c5e\u4e8e\u95ed\u5305\u3002<\/li><li><strong><em>independence (concurrency)<\/em><\/strong>\uff0c\u5e76\u53d1\uff0c\u4e24\u4e2a\u90e8\u5206\u6709\u5404\u81ea\u72ec\u7acb\u7684\u6267\u884c\u65f6\u95f4\u7ebf\uff0c\u5728\u6267\u884c\u65f6\u5e8f\u4e0a\u6ca1\u6709\u65e2\u5b9a\u7684\u5148\u540e\u987a\u5e8f\uff0c\u5982 \u540c\u4e00\u4e2a\u7f51\u7edc\u7cfb\u7edf\u4e2d\u4e0d\u540c\u7684\u4e3b\u673a\u3001\u540c\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u4e0d\u540c\u7684\u8fdb\u7a0b\u3001\u540c\u4e00\u4e2a\u8fdb\u7a0b\u4e2d\u4e0d\u540c\u7684\u7ebf\u7a0b\u3001\u540c\u4e00\u4e2a\u65f6\u7a7a\u4e0b\u7684\u4e2a\u4f53\u3002<\/li><li><strong><em>named state<\/em><\/strong>\uff0c\u968f\u7740\u65f6\u95f4\u53d8\u5316\u7684\u4e00\u4e2a\u547d\u540d\u503c\u5e8f\u5217\uff0c\u76f4\u89c2\u4e0a\u5c31\u5bf9\u5e94\u7f16\u7a0b\u8bed\u8a00\u91cc\u7684\u53d8\u91cf\uff0c\u62bd\u8c61\u542b\u4e49\u5c31\u662f\u5b9e\u4f53\u8bb0\u4f4f\u4e86\u968f\u7740\u65f6\u95f4\u63a8\u79fb\u5728\u81ea\u8eab\u7559\u4e0b\u7684\u5f71\u54cd\uff0c\u4f7f\u5f97\u5b9e\u4f53\u7684\u884c\u4e3a\u4f1a\u968f\u7740\u65f6\u95f4\u53d1\u5c55\u800c\u53d1\u751f\u53d8\u5316\uff0c\u4e3e\u4f8b\u5c31\u662f\u73b0\u5b9e\u4e16\u754c\u4e2d\u6240\u6709\u7684\u751f\u7269\u4e2a\u4f53\u90fd\u4f1a\u968f\u65f6\u95f4\u53d1\u751f\u53d8\u5316\u3002<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><em><strong>References<\/strong>\uff1a<\/em><\/p>\n\n\n\n<p><em>Programming Paradigms for Dummies: What Every Programmer Should Know<\/em><\/p>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Programming_paradigm\"><em>https:\/\/en.wikipedia.org\/wiki\/Programming_paradigm<\/em><\/a><\/p>\n\n\n\n<p><em>Concepts, Techniques, and Models of Computer Programming<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e94\u4e00\u5bb6\u91cc\u8e72\uff0c\u7ffb\u7ffb\u300aProgramming Paradigms for Dummies: What E [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[35],"class_list":["post-643","post","type-post","status-publish","format-standard","hentry","category-code","tag-35"],"_links":{"self":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=643"}],"version-history":[{"count":69,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/643\/revisions"}],"predecessor-version":[{"id":739,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=\/wp\/v2\/posts\/643\/revisions\/739"}],"wp:attachment":[{"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chenqing.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}