{"id":138207,"date":"2020-07-21T07:03:06","date_gmt":"2020-07-20T23:03:06","guid":{"rendered":"http:\/\/4563.org\/?p=138207"},"modified":"2020-07-21T07:03:06","modified_gmt":"2020-07-20T23:03:06","slug":"language-hopping%ef%bc%8c-ruby-%e4%b8%ba%e4%bb%80%e4%b9%88%e4%b8%8d%e7%81%ab%ef%bc%8c%e4%b8%80%e7%82%b9%e7%9e%8e%e6%83%b3","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=138207","title":{"rendered":"Language Hopping\uff0c Ruby \u4e3a\u4ec0\u4e48\u4e0d\u706b\uff0c\u4e00\u70b9\u778e\u60f3"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Language Hopping\uff0c Ruby \u4e3a\u4ec0\u4e48\u4e0d\u706b\uff0c\u4e00\u70b9\u778e\u60f3               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : celadevra <\/span>  <span><i><\/i> 7<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5728\u6280\u672f\u6808\u95f4\u8df3\u6765\u8df3\u53bb\uff0c\u8bf4\u8d77\u6765\u4e5f\u662f\u8fc1\u5c31\u81ea\u5df1\u7684 ego \u800c\u4e0d\u8003\u8651\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\u7684\u5fc3\u6001\u4f5c\u795f\u3002\u8001\u662f\u9009\u62e9\u65b0\u7684\u8bed\u8a00\u3001\u6846\u67b6\u5c31\u66f4\u662f\u5982\u6b64\u3002<\/p>\n<p>\u8fd9\u80cc\u540e\u7684\u52a8\u529b\u4e00\u90e8\u5206\u662f\u88ab\u666f\u4ef0\u548c\u5c0a\u91cd\u7684\u5fc3\u7406\u9700\u8981\uff08\u522b\u4eba\u90fd\u4e0d\u4f1a\u7528\u7684\u6280\u672f\u6211\u662f\u5927\u725b\uff09\uff0c\u53e6\u4e00\u90e8\u5206\u5219\u662f\u5bf9\u67d0\u9879\u6280\u672f\u7684\u793e\u7fa4\u5f62\u6210\u4e86\u4e00\u4e2a\u56fe\u50cf\uff0c\u5e0c\u671b\u522b\u4eba\u7528\u8fd9\u4e2a\u56fe\u50cf\u6765\u63cf\u8ff0\u81ea\u5df1\u548c\u8ba4\u540c\u81ea\u5df1\u3002<\/p>\n<p>\u867d\u7136\u8fd9\u79cd\u5fc3\u6001\u4e5f\u8ba9\u6211\u83b7\u5f97\u4e86\u4e00\u4e9b\u6709\u8da3\u548c\u6709\u7528\u7684\u7ecf\u9a8c\uff0c\u6bd4\u5982 Emacs\uff0c\u4f46\u603b\u5730\u8bf4\u6765\u662f\u8ba9\u6211\u6d6a\u8d39\u4e86\u592a\u591a\u7684\u65f6\u95f4\u5728\u8fc7\u5404\u79cd tutorial \u548c\u5199 hello world \u4e0a\u3002Language hopping \u7684\u7ed3\u679c\u5c31\u662f\u59cb\u7ec8\u65e0\u6cd5\u6df1\u5165\u94bb\u7814\u4e00\u4e2a\u4e1c\u897f\uff0c\u4e5f\u5c31\u4e0d\u77e5\u9053\u5b83\u80fd\u5e72\u4ec0\u4e48\uff0c\u5b83\u7684\u5c40\u9650\u5728\u54ea\u91cc\u3002<\/p>\n<p>\u8fd9\u6837\u770b\u6765\uff0cEmacs \u7684\u5389\u5bb3\u4e4b\u5904\u5728\u4e8e\u201c\u4ece\u5165\u95e8\u5230\u7cbe\u901a\u201d\uff08\u7cbe\u901a\u662f\u4e2a\u5883\u754c\uff0c\u8fd9\u8f88\u5b50\u90fd\u4e0d\u53ef\u80fd\u7cbe\u901a\u7684\uff09\u63d0\u4f9b\u4e86\u4e00\u6761\u8fde\u7eed\u800c\u65e0\u7a77\u5c3d\u7684\u5b66\u4e60\u9014\u5f84\uff0c\u53ea\u8981\u662f\u548c\u6587\u672c\u6709\u5173\u7684\u95ee\u9898\uff0c\u90fd\u53ef\u4ee5\u5c1d\u8bd5\u7740\u7528\u5b83\u53bb\u89e3\u51b3\uff0c\u5e76\u4e14\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u53c8\u5b66\u5230\u4e86\u4e00\u70b9\u65b0\u4e1c\u897f\u3002Python \u4e5f\u662f\u7c7b\u4f3c\uff0c\u5165\u95e8\u95e8\u69db\u4f4e\uff0c\u5929\u82b1\u677f\u51e0\u4e4e\u65e0\u9650\u9ad8\uff0c\u4f46\u4e2d\u95f4\u6bcf\u4e00\u5c42\u90fd\u53ef\u4ee5\u63a2\u7d22\u3002<\/p>\n<p>\u800c Ruby \u7684\u95ee\u9898\u5927\u6982\u5c31\u662f\u8fd9\u4e48\u591a\u5e74 Rails \u72ec\u9886\u98ce\u9a9a\uff0c\u57fa\u672c\u4e0a\u8981\u6c42\u5b66\u4e60\u8005\u5199\u5b8c hello world \u548c fizzbuzz \u4e4b\u540e\u5c31\u5f00\u59cb\u7814\u7a76\u5143\u7f16\u7a0b\u3001DSL \u548c Rails \u7684\u5404\u79cd\u4ee4\u4eba\u773c\u82b1\u7f2d\u4e71\u7684\u5b9e\u73b0\u6280\u5de7\uff0c\u7f3a\u4e4f\u66f4\u5e7f\u6cdb\u7684\u95ee\u9898\u57df\u548c\u8fde\u7eed\u7684\u5b66\u4e60\u8def\u5f84\u3002<\/p>\n<p>\u4f5c\u4e3a\u6bd4\u8f83\u65b0\u7684\u8bed\u8a00\uff0cRacket \u548c Roku \u4e5f\u6709\u7c7b\u4f3c\u7684\u95ee\u9898\uff08\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u6211\u5bf9 R \u5f00\u5934\u7684\u8bed\u8a00\u6bd4\u8f83\u611f\u5174\u8da3\uff09\u3002\u4e0d\u8fc7\u6211\u8fd8\u662f\u60f3\u5b66\u597d Ruby \u53bb\u7ed9 DHH \u6253\u5de5\u7684\uff0c\u5c3d\u7ba1\u53ea\u4f1a fizzbuzz \uff08\u54ed<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>23<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2575054\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hoyixi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e2d\u56fd\u4e0d\u706b\u800c\u5df2\uff0c\u4e0d\u5c11\u81ea\u52a8\u5316\u5de5\u5177\u90fd\u662f Ruby \u5199\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575055\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cmdOptionKana <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u66fe\u7ecf\u706b\u8fc7\uff0c\u4f46\u5b83\u7684\u6027\u80fd\u771f\u7684\u5f88\u5dee\uff0c\u8bed\u8a00\u548c\u6846\u67b6\u7684\u4f18\u70b9\u88ab\u522b\u7684\u8bed\u8a00\u5b66\u8fc7\u53bb\u4e86\u4e4b\u540e\uff0c\u5b83\u5c31\u5f00\u59cb\u7184\u706b\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575056\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 046569 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56fd\u5185\u7684\u60c5\u51b5\u4e4b\u524d\u63d0\u8fc7:<\/p>\n<p>https:\/\/www.v2ex.com\/t\/682185#r_9125444<\/p>\n<p>2020 \u5e74\u8fd8\u89c9\u5f97 Ruby \u6027\u80fd\u5dee\u7684\u5f88\u53ef\u80fd\u662f\u5728 2003 \u5e74\u5199\u4e86\u4e2a Hello World \u7136\u540e\u5f97\u51fa\u4e86\u7ed3\u8bba.<\/p>\n<p>\u5982\u679c\u4f60\u53ea\u76ef\u7740 Web \u8fd9\u4e00\u5757,\u90a3\u4e48\u5f97\u51fa\u7684\u7ed3\u8bba\u786e\u5b9e\u5982\u6b64. Ruby on Rails \u9886\u5148\u592a\u4e45,\u4e45\u5230\u540e\u7eed\u7684\u6a21\u4eff\u8005\u53ea\u80fd\u5728\u6613\u7528\u6027\u4e0a\u52aa\u529b,\u800c\u96be\u4ee5\u5728\u529f\u80fd\u6027\u4e0a\u8d85\u8d8a.<\/p>\n<p>\u95ee\u9898\u662f: Ruby \u53ea\u5e94\u7528\u5728\u8fd9\u4e00\u65b9\u9762\u5417?\u7ed3\u8bba\u663e\u7136\u4e0d\u662f\u7684.<\/p>\n<p>macOS \u4e0a\u7684\u7b2c\u4e09\u65b9\u5305\u7ba1\u7406\u5668 Homebrew \u4e86\u89e3\u4e00\u4e0b?<\/p>\n<p>\u6e17\u900f\u5229\u5668 Metasploit \u770b\u8fc7\u6ca1\u6709?<\/p>\n<p>\u5d4c\u5165\u5f0f mruby \u73a9\u73a9?<\/p>\n<p>\u5982\u679c\u89c9\u5f97\u662f\u8bed\u8a00\u9650\u5236\u4e86\u4f60\u7684\u53d1\u5c55(\u5f88\u53ef\u80fd\u662f\u9519\u89c9,\u60f3\u60f3\u81ea\u5df1\u548c\u8bed\u8a00\u8bbe\u8ba1\u8005\u7684\u7f16\u7a0b\u529f\u529b\u5dee\u8ddd),\u6362\u4e00\u95e8?                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575057\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Numbcoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cmdOptionKana \u548c\u6027\u80fd\u65e0\u5173\uff0c90%\u7684\u5e94\u7528\u5230\u4e0d\u4e86\u8bed\u8a00\u6027\u80fd\u74f6\u9888\u3002Python \u6bd4 Ruby \u6027\u80fd\u8fd8\u5dee\uff0c\u4e0d\u8fd8\u662f\u4e00\u6837\u706b\u5230\u4e0d\u884c\u3002\u76ee\u524d\u4e3a\u6b62\u4e5f\u6ca1\u6709\u89c1\u5230\u90a3\u4e2a\u8bed\u8a00\u5b66\u5230\u4e86 Rails \u7684\u7cbe\u9ad3<\/p>\n<p>\u603b\u7684\u8fd8\u8bf4\u8fd8\u662f\u4e0e\u5e02\u573a\u6709\u5173\uff0c\u56fd\u5185\u6ca1\u6709\u4e00\u5bb6\u5927\u578b\u7528 Ruby \u6210\u529f\u7684\u516c\u53f8\uff0c\u800c\u56fd\u5916\u5219\u4e0d\u5c11\uff0c\u6ca1\u6709\u5927\u516c\u53f8\u57f9\u517b\u4eba\u624d\uff0c\u81ea\u7136\u5c31\u4e0d\u4f1a\u706b\u3002\u4f46\u662f\u56fd\u5916\u8fd8\u662f\u4e0d\u9519\u7684\uff0c\u867d\u7136\u4e0d\u80fd\u79f0\u4e3a\u706b\uff0c\u4f46\u81f3\u5c11\u804c\u4f4d\u548c\u85aa\u6c34\u8fd8\u662f\u975e\u5e38\u4e0d\u9519\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575058\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Numbcoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u603b\u7684\u6765\u8bf4\u4e00\u4e2a\u6280\u672f\u662f\u5426\u706b\uff0c\u8ddf\u6280\u672f\u672c\u8eab\u597d\u574f\u5173\u7cfb\u4e0d\u5927\uff0c\u53ea\u8ddf\u5e02\u573a\u548c\u8d44\u672c\u5bfc\u5411\u6709\u5173\u3002PHP\uff0cJavaScript\uff0cPython \u65e0\u8bba\u4ece\u8bed\u8a00\u8bbe\u8ba1\u8fd8\u662f\u6027\u80fd\u6765\u8bf4\u90fd\u662f\u6bd4\u8f83\u5dee\u7684\uff0c\u4f46\u662f\u4e00\u6837\u80fd\u5360\u636e\u534a\u58c1\u6c5f\u5c71\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575059\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xizismile <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bed\u8a00\u53ea\u662f\u89e3\u51b3\u95ee\u9898\u7684\u5de5\u5177\uff0c\u4e0d\u53bb\u8003\u8651\u89e3\u51b3\u95ee\u9898\u7684\u65b9\u6848\uff0c\u800c\u662f\u6574\u5929\u60f3\u7740\u6362\u5de5\u5177\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575060\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xizismile <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5404\u79cd\u8bed\u8a00\u6495\u903c\u5e16\uff0cA \u8bed\u8a00\u6bd4 B \u8bed\u8a00\u597d\uff0cC \u8bed\u8a00\u6bd4 D \u8bed\u8a00\u68d2\u3002\u6495\u8d62\u4e86\u53c8\u80fd\u600e\u6837\uff1f\u8f93\u4e86\u53c8\u80fd\u600e\u6837\uff1f\u6539\u53d8\u4e86\u4ec0\u4e48\uff1f\u63d0\u9ad8\u4e86\u4ec0\u4e48\uff1f\u89e3\u51b3\u95ee\u9898\u7684\u80fd\u529b\u63d0\u9ad8\u4e86\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575061\" 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>                                                             \u56fd\u5916\u641e Ruby \u7684\u5176\u5b9e\u633a\u591a\u7684\uff0c\u5927\u90e8\u5206\u516c\u53f8\u8fd8\u90fd\u633a\u4e0d\u9519\u7684\u3002<\/p>\n<p>Ruby \u4e4b\u524d\u5e94\u8be5\u7b97\u706b\u8fc7\u5427\uff0c\u867d\u7136\u5728\u699c\u4e0a\u6ca1\u90a3\u4e48\u9ad8\uff0c\u4f46\u662f\u5982\u679c\u5149\u770b\u6e7e\u533a\u5f53\u65f6\u5f88\u591a\u4e86\u3002\u8fc7\u6ee4\u6389\u5f88\u591a\u6b7b\u6c14\u6c89\u6c89\u7684\u4f01\u4e1a\u7ea7\u5f00\u53d1\u5176\u5b9e\u5f53\u65f6 Ruby \u7528\u5f97\u4e0d\u7b97\u5c11\u3002\u800c\u4e14 Ruby \u793e\u533a\u611f\u89c9\u5728\u5f53\u65f6\u662f\u6700\u597d\u7684\u793e\u533a\uff0c\u5f88\u6709\u6d3b\u529b\u548c\u63a2\u7d22\u7684\u7cbe\u795e\u3002<\/p>\n<p>\u7531\u4e8e Ruby Web \u6709\u4e9b\u6027\u80fd\u95ee\u9898\uff0c\u540e\u6765 Node.js \u548c\u5176\u4ed6\u6280\u672f\u6808\u76f8\u7ee7\u706b\u8d77\u6765\u4e4b\u540e\u5c31\u88ab\u5206\u6d41\u4e86\u3002\u539f\u6765 Ruby \u793e\u533a\u7684\u4eba\u73b0\u5728\u5206\u522b\u5728\u5199 JS\uff0cScala\uff0cClojure\uff0cGo\uff0cPython\uff0cRust\u2026\u2026\u603b\u4e4b\u5565\u90fd\u6709\u3002\u4e0d\u8fc7\u6211\u4e2a\u4eba\u611f\u89c9\u66f4\u6b63\u7edf\u7684\u662f Elixir \u3002\u73b0\u5728\u65b0\u8bed\u8a00 Go \u548c Rust \u4e4b\u7c7b\u7684\u9010\u6e10\u4e0d\u628a OO \u653e\u5728\u6838\u5fc3\u4f4d\u7f6e\u4e86\uff0cElixir \u5c31\u6709\u70b9\u50cf\u53bb OO \u7684 Ruby\uff0cPhoenix \u4e5f\u66f4\u50cf\u6b63\u7edf\u7684 Rails \u7ee7\u627f\u4eba\u3002<\/p>\n<p>\u81f3\u4e8e\u8bed\u8a00\uff0c\u8fd9\u4e9b\u4e1c\u897f\u5f88\u96be\u8bf4\uff0c\u57fa\u672c\u4e0a\u5168\u662f\u751f\u6001\u51b3\u5b9a\u7684\u3002\u4e2a\u4eba\u611f\u89c9 Ruby \u6bd4 Python \u8bbe\u8ba1\u5f97\u597d\uff0c\u66f4\u63a5\u8fd1 Smalltalk \u3002Python \u672c\u6765\u662f\u62b1\u4e0a\u4e86\u79d1\u5b66\u8ba1\u7b97\u548c\u5927\u5b66\u5165\u95e8\u7684\u5927\u817f\uff0c\u73b0\u5728\u5728\u52a0\u4e2a\u6570\u636e\u5206\u6790\u548c\u673a\u5668\u5b66\u4e60\u57fa\u672c\u5750\u5b9e\u4e86\u3002JS \u5c31\u4e0d\u7528\u8bf4\u4e86\uff0c\u5199 Web \u7684\u57fa\u672c\u4e0d\u7528\u4e0d\u884c\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575062\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Numbcoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xizismile \u56e0\u4e3a\u5728\u56fd\u5185 IT \u884c\u4e1a\uff0c\u81f3\u5c11\u6709 60% \u7684\u6280\u672f\u4eba\u5458\u4e0d\u662f\u771f\u7684\u559c\u6b22\u6280\u672f\uff0c\u800c\u662f\u4e3a\u4e86\u6df7\u53e3\u996d\u5403\u800c\u5df2\uff0c\u4ed6\u4eec\u6700\u559c\u6b22\u8ffd\u6c42\u706b\u7684\u6280\u672f\uff0c\u4e5f\u66f4\u559c\u6b22\u548c\u522b\u4eba\u6495\u903c\u8c01\u66f4\u706b\uff0c\u56e0\u4e3a\u53ea\u6709\u5728\u706b\u7684\u6280\u672f\u91cc\u624d\u5bb9\u6613\u6ee5\u7afd\u5145\u6570\uff0c\u591a\u6df7\u51e0\u5e74\u996d\u800c\u5df2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575063\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : celadevra <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @046569 \u6211\u4e0d\u662f CS \u51fa\u8eab\uff0c\u5929\u8d44\u4e5f\u975e\u5e38\u4e00\u822c\uff0c\u5b66 Ruby \u4e00\u76f4\u6ca1\u6709\u627e\u5230\u611f\u89c9\uff0c\u4f46\u662f\u4e5f\u786e\u5b9e\u4e0d\u6253\u7b97\u7ee7\u7eed hop \u3002\u6ca1\u627e\u5230\u611f\u89c9\u662f\u6307\u4e00\u76f4\u4e0d\u77e5\u9053\u8be5\u62ff\u5b83\u6765\u5e72\u561b\u4ee5\u53ca\u8bfb\u5b8c\u4e86\u5165\u95e8\u4e66\u540e\u5e94\u8be5\u600e\u4e48\u5b66\u4e0b\u53bb\u3002\u5165\u95e8\u4e66\u8bfb\u5230 singleton class \u4e4b\u540e\u57fa\u672c\u4e5f\u662f\u61f5\u7684\u4e86\uff0c\u770b\u5230\u5b9e\u9645\u7684 Ruby \u4ee3\u7801\u4f1a\u754f\u96be\u3002<\/p>\n<p>\u6211\u662f\u540e\u5b66\u7684 Python\uff0c\u4f46\u662f\u8bfb\u5b8c Think in Python \u4e4b\u540e\u5c31\u53ef\u4ee5\u4e0a\u624b\u5199\u70b9\u7b80\u5355\u7684\u4e1c\u897f\uff0c\u5de5\u4f5c\u4e2d\u4e5f\u7528\u5b83\u5199\u4e86\u722c\u81ea\u5bb6\u7f51\u7ad9\u7684\u722c\u866b\uff08 long story \uff09\u7528\u6765\u505a\u6570\u636e\u62a5\u544a\u3002\u4e3a\u4e86\u5b66 Ruby \u4e5f\u60f3\u8fc7\u7528 Ruby \u91cd\u5199\u4e00\u904d\u3002\u4f46\u662f\u770b\u4e86 Net::HTTP \u7684\u6587\u6863\u5c31\u5931\u53bb\u4e86\u516b\u6210\u7684\u5174\u8da3\u2014\u2014\u548c Python \u7684 Requests \u7684\u6587\u6863\u53ef\u8bfb\u6027\u3001\u5185\u5bb9\u90fd\u6ca1\u6cd5\u6bd4\u3002<\/p>\n<p>\u6211\u7684\u611f\u89c9\u662f Ruby \u7684\u6587\u6863\u4e5f\u597d\u3001\u5e94\u7528\u4e5f\u597d\uff0c\u9664\u4e86\u6700\u901a\u7528\u7684\u90a3\u90e8\u5206\u4e4b\u5916\u5c31\u51e0\u4e4e\u5168\u662f\u56f4\u7ed5\u7740 Rails \u548c\u62bd\u8c61\u7a0b\u5ea6\u7c7b\u4f3c\u7684\u6846\u67b6\u3002\u5173\u4e8e Rails \u7684\u4e66\uff0c\u4e00\u5e74\u53ef\u80fd\u8fd8\u6709\u4e0a\u767e\u672c\u5728\u51fa\u6765\uff0c\u4f46\u8fd9\u4e4b\u5916\u7684 Ruby \u5e94\u7528\uff0c\u51e0\u4e4e\u6ca1\u6709 rdoc \u6587\u6863\u4e4b\u5916\u7684\u8d44\u6599\u3002\u8fd9\u5c31\u662f\u6211\u8bf4\u7684\u6ca1\u6709\u6216\u8005\u770b\u4e0d\u5230\u8fde\u7eed\u7684\u5b66\u4e60\u8def\u5f84\u7684\u95ee\u9898\u3002\u6bd4\u8f83\u53d7\u6b22\u8fce\u7684 gems\uff0c\u4e5f\u4f1a\u6709\u5f88\u591a\u4eba\u5199 blog \u4ecb\u7ecd\u7528\u6cd5\uff0c\u4f46\u662f\u8fd9\u4e9b\u6587\u7ae0\u4f1a\u8fc7\u65f6\uff0c\u800c\u4e14\u4e0d\u4e00\u5b9a\u80fd\u89e3\u51b3\u5b9e\u9645\u573a\u666f\u4e2d\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<p>\u4f60\u63d0\u5230\u7684\u90a3\u4e9b\u5e94\u7528\uff0c\u6211\u6ca1\u6709 domain knowledge\uff0c\u6240\u4ee5\u7814\u7a76\u8d77\u6765\u4f30\u8ba1\u4f1a\u5403\u529b\u3002\u6211\u89c9\u5f97\u597d\u7684\u6587\u6863\u4f1a\u5bf9\u83b7\u5f97 domain knowledge \u6709\u5e2e\u52a9\uff0c\u800c\u5149\u770b\u4ee3\u7801\u548c rdoc \u5bf9\u6ca1\u6709 domain knowledge \u7684\u4eba\u6765\u8bf4\u662f\u5f88\u96be\u8d70\u901a\u7684\u3002<\/p>\n<p>\u6240\u4ee5\u8981\u5f52\u7eb3 Ruby \u4e0d\u706b\u7684\u539f\u56e0\uff0c\u6211\u89c9\u5f97\u6587\u6863\u548c\u751f\u6001\u81f3\u5c11\u53ef\u4ee5\u89e3\u91ca\u4e00\u90e8\u5206\u3002\u5916\u6765\u7684\u5de5\u7a0b\u5e08 \/\u7231\u597d\u8005\u770b\u4e0d\u5230\u6587\u6863\uff0c\u89c9\u5f97 Ruby \u4e0d\u80fd\u66f4\u597d\u5730\u89e3\u51b3\u81ea\u5df1\u9886\u57df\u7684\u95ee\u9898\uff0c\u5c31\u4e0d\u4f1a\u7528 Ruby \uff1b\u800c\u8fd9\u8fdb\u4e00\u6b65\u5bfc\u81f4 Ruby \u5728\u8be5\u9886\u57df\u76f8\u5bf9\u5176\u4ed6\u8bed\u8a00\u7684\u5dee\u8ddd\u6269\u5927\u3002<\/p>\n<p>\u5e76\u4e0d\u662f\u8981\u62b1\u6028\u4ec0\u4e48\uff0c\u53ea\u662f\u5e0c\u671b\u627e\u5230\u7406\u89e3 Ruby \u7684\u5408\u9002\u9014\u5f84\u5e76\u4e14\u80fd\u5bf9\u793e\u7fa4\u6709\u70b9\u8d21\u732e\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575064\" 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>                                                             @xizismile \u4f60\u5728\u8ddf\u8bed\u8a00\u6495\u903c\u5e16\u6495\u903c\uff0c\u6495\u8d62\u4e86\u53c8\u80fd\u600e\u6837\uff1f\u8f93\u4e86\u53c8\u80fd\u600e\u6837\uff1f\u6539\u53d8\u4e86\u4ec0\u4e48\uff1f\u63d0\u9ad8\u4e86\u4ec0\u4e48\uff1f\u89e3\u51b3\u95ee\u9898\u7684\u80fd\u529b\u63d0\u9ad8\u4e86\u5417\uff1f<\/p>\n<p>\u8bed\u8a00\u4ee3\u8868\u4e86\u4f60\u53ef\u7528\u7684\u62bd\u8c61\uff0c\u5982\u679c\u4f60\u4e0d\u77e5\u9053\u67d0\u79cd\u62bd\u8c61\u5b58\u5728\uff0c\u662f\u6ca1\u6cd5\u9ad8\u6548\u89e3\u51b3\u67d0\u4e9b\u95ee\u9898\u7684\u3002\u7528\u4e00\u7528 COBOL \u6216\u8005 Prolog \u8fd9\u4e9b\u8bed\u8a00\u5c31\u80fd\u4f53\u4f1a\u51fa\u5929\u5dee\u5730\u522b\u3002\u5f88\u591a\u7a0b\u5e8f\u5458\u7684\u601d\u8def\u5df2\u7ecf\u88ab\u8bed\u8a00\u9650\u5236\u56fa\u5316\u4f4f\u4e86\uff0c\u8981\u5199\u4e00\u4e9b generic \u7684\u4e1a\u52a1\uff0c\u5e73\u53f0\u5316\u7684\u4e1a\u52a1\u5c31\u5199\u4e0d\u51fa\u6765\uff0c\u8981\u4e0d\u5c31\u662f\u6392\u5217\u7ec4\u5408\u5927\u91cf\u5199\u4ee3\u7801\uff0c\u5f88\u591a\u4eba\u610f\u8bc6\u4e0d\u5230\u8fd8\u6709\u5176\u4ed6\u89e3\u3002<\/p>\n<p>\u6bd4\u5982 Github semantics\uff0cREADME \u91cc\u9762\u4e13\u95e8\u8bf4\u4e86\u4e3a\u4ec0\u4e48\u7528 Haskell\uff0c\u4f46\u662f\u5982\u679c\u4f60\u4e0d\u4e86\u89e3\u67d0\u7c7b\u8bed\u8a00\u7684\u5b58\u5728\uff0c\u600e\u4e48\u80fd\u6709\u6548\u89e3\u51b3\u90a3\u7c7b\u95ee\u9898\u5462\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575065\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 046569 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u4e0d\u77e5\u9053\u62ff\u6765\u5e72\u5565\u4e3a\u5565\u8981\u5b66?\u6211\u611f\u89c9\u5e94\u8be5\u57fa\u4e8e\u660e\u786e\u76ee\u7684\u5b66\u4e60. Ruby \u548c Python \u9ad8\u5ea6\u91cd\u5408,\u638c\u63e1\u4e00\u95e8\u5c31\u597d\u4e86.\u5982\u679c\u662f\u7ecf\u5e38\u5199\u722c\u866b,\u53ef\u80fd Python \u66f4\u9002\u5408\u4f60.<\/p>\n<p>2. Net::HTTP \/ URI.open \u4ecd\u7136\u504f&#8221;\u5e95\u5c42&#8221;,\u65e5\u5e38\u662f\u6bd4\u8f83\u5c11\u7528\u7684.\u548c Python \u7684 Requests \u76f8\u5bf9\u5e94\u7684\u4f60\u53ef\u4ee5\u770b\u770b Faraday \u6216\u8005 rest-client .\u4f60\u63d0\u5230\u7684\u6587\u6863\u8d28\u91cf\u7b97\u662f\u4e2a\u5386\u53f2\u9057\u7559\u95ee\u9898\u4e86,\u53ea\u80fd\u8bf4\u52c9\u5f3a\u80fd\u7528.\u793e\u533a\u4e5f\u5728\u8ba8\u8bba\u66f4\u65b0\u8fd9\u4e9b\u8fc7\u65f6\u7684\u4e1c\u897f.<\/p>\n<p>3. Gems \u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u548c\u6d4b\u8bd5\u4e2d\u770b\u5230\u5177\u4f53\u7528\u6cd5\u4e0e\u6587\u6863.\u4e00\u822c\u90fd\u6258\u7ba1\u5728 GitHub ,\u5982\u679c\u9047\u5230\u4f7f\u7528\u4e0a\u7684\u95ee\u9898\u53ef\u4ee5\u63d0 issue .<\/p>\n<p>4. \u4e4b\u524d\u6709\u4eba\u63d0\u51fa Ruby Everywhere(Anywhere?) ,\u8bd5\u56fe\u7528 Ruby \u89e3\u51b3\u4e00\u5207\u95ee\u9898,\u4e2a\u4eba\u611f\u89c9\u662f\u8d70\u504f\u4e86.<\/p>\n<p>5. \u4eba\u4eba\u90fd\u53ef\u7f16\u7a0b.\u5165\u95e8\u7684\u8bdd\u5f88\u591a\u4eba\u63a8\u8350 &lt;&lt;Ruby \u57fa\u7840\u6559\u7a0b&gt;&gt;,\u7136\u800c\u6211\u89c9\u5f97\u5543\u8bed\u6cd5\u4e66\u5f88\u65e0\u804a,\u505a\u70b9\u4ec0\u4e48\u5427?                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575066\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pocarisweat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Just for fun\uff0c\u4e3a\u4e86\u627e\u5de5\u4f5c\u7684\u8bdd\u5728\u56fd\u5185\u9664\u4e86\u5168\u6808\uff0c\u8def\u8fd8\u662f\u592a\u7a84\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575067\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Ruby \u8fd9\u4e2a\u8bed\u8a00\u8bbe\u8ba1\u5f97\u611f\u89c9\u4e71\u7cdf\u7cdf\u7684\uff0c\u4ee3\u7801\u53ef\u8bfb\u6027\u4e5f\u4e0d\u884c\u3002Rails \u8fd9\u5957\u540e\u7aef MVC \u73b0\u5728\u4e5f\u8fc7\u65f6\u4e86\u3002<\/p>\n<p>\u76f8\u53cd JS \u8fd9\u4e2a\u5341\u5e74\u524d\u6211\u89c9\u5f97\u5f88\u4e00\u822c\u7684\u8bed\u8a00\uff0c\u73b0\u5728\u662f\u6211\u6700\u559c\u6b22\u7684\u8bed\u8a00\uff0c\u6bd4\u4e4b\u524d\u559c\u6b22\u7684 python \u5199\u8d77\u6765\u66f4\u8212\u670d\uff0c\u4e5f\u8bb8\u662f\u793e\u533a\u667a\u529b\u6295\u5165\u591a\u4e86\uff0c\u518d\u4f4e\u7684\u8d77\u70b9\u4e5f\u4e0d\u6015\u3002\u53e6\u5916 JS \u5e95\u5b50\u4e5f\u597d\uff0c\u5982\u679c\u662f PHP \u518d\u6253\u626e\u4e5f\u51fa\u4e0d\u4e86\u95e8\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575068\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : secondwtq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u8bed\u8a00\u5168\u540d\u4e0d\u662f\u53eb Ruby on Rails \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575069\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crella <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             leetcode-cn \u628a Ruby \u7684\u652f\u6301\u53bb\u6389\u4e86\u3002<\/p>\n<p>Python \u548c\u8001 JS \u7684\u53d8\u91cf\u4f5c\u7528\u57df\u90fd\u6709\u70b9\u95ee\u9898\uff0cRuby \u6211\u4e0d\u77e5\u9053\uff0c\u5e94\u8be5\u662f\u6ca1\u6709\u7684\u3002\u800c define_method \u53c8\u6bd4\u8f83\u7075\u6d3b\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575070\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wdhwg001 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Ruby \u7684 API \u8bbe\u8ba1\u6709\u80a1 C \u5473\u662f\u771f\u7684\uff0c\u6ca1\u6709\u81ea\u52a8\u9ad8\u7cbe\u5ea6\u4e00\u7c7b\u7684\u7279\u6027\u5bf9\u4e8e\u79d1\u5b66\u8ba1\u7b97\u4e5f\u4e0d\u53cb\u597d\u3002<br \/>\u4f46\u662f\u5b83\u5df2\u7ecf\u65e9\u5c31\u662f\u540e\u7eed\u8bed\u8a00\u7684\u8bbe\u8ba1\u6807\u6746\u4e86\uff0c\u53ef\u4ee5\u8bf4\u5b83\u5efa\u7acb\u4e86\u4e00\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u8bbe\u8ba1\u7f8e\u5b66\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575071\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : agagega <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @wdhwg001 <br \/>C \u5473\u8fd9\u4e2a\u8bcd\u592a\u7cbe\u51c6\u4e86 hhhh\uff0c\u677e\u672c\u884c\u5f18\u6bd5\u7adf\u8001 hacker \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575072\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chenqh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u8fd8\u662f\u559c\u6b22 python \u8fd9\u79cd\u6709\u6700\u4f73\u5b9e\u8df5\u7684\uff0c\u5982\u679c python \u6027\u80fd\u6709 php \u6027\u80fd\u90a3\u4e48\u9ad8\uff0c \u5c31\u66f4\u597d\u4e86\uff0c<br \/>\u81f3\u4e8e ruby,\u6211\u4e0d\u559c\u6b22\u4ed6\u7684\u6709\u591a\u79cd\u65b9\u5f0f\u505a\u540c\u4e00\u4ef6\u4e8b\u60c5\u7684\u65b9\u5f0f\uff0c\u800c\u4e14\u600e\u4e48\u8bf4\u5462\uff0c\u660e\u660e\u662f\u591a\u79cd\u65b9\u5f0f\u505a\u540c\u4e00\u4ef6\u4e8b\u60c5\u7684 ruby \u5c45\u7136\u51fa\u4e86\u6700\u4f73\u5b9e\u8df5 ror.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575073\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : twl007 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u8d77\u6765 Perl \u662f\u6b7b\u900f\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575074\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MintZX <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u662f\u4e00\u4e2a ruby on rails \u7684\u5f00\u53d1\u3002\u867d\u7136\u7ecf\u9a8c\u4e0d\u662f\u5f88\u4e45\uff0c\u4f46\u662f\u4e5f\u5f00\u53d1\u4e86\u4e24\u5e74\u591a\u4e86\u3002<\/p>\n<p>\u4e00\u65b9\u9762\u4eba\u5728\u6d77\u5916\uff0cruby \u7684\u5de5\u4f5c\u5176\u5b9e\u5f88\u591a\u3002\u867d\u7136\u4e0d\u7b97\u662f\u706b\u4f46\u662f\u4f9d\u7136\u4e0d\u6101\u627e\u5de5\u4f5c\u3002\u53e6\u5916\u4e00\u65b9\u9762\uff0c\u521d\u5b66 ruby on rails \u7684\u65f6\u5019\u786e\u5b9e\u5f88\u75db\u82e6\uff0c\u540e\u6765\u4e60\u60ef\u4e86\u53d1\u73b0 ruby on rails \u7684\u8bbe\u8ba1\u3002\u73b0\u5728\u5199 nodejs \u548c flask \u603b\u89c9\u7684\u4e0d\u662f\u90a3\u4e48\u56de\u4e8b\u513f\u3002\u5f88\u96be\u53d7\u54c8\u54c8\u54c8\u54c8\u3002ruby on rails \u611f\u89c9\u5f88\u7b80\u6d01\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575075\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crella <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @chenqh python \u7684\u5f02\u6b65\u6846\u67b6\u6709\u591a\u5c11\u79cd\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2575076\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chenqh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @crella python \u5f02\u6b65\u6846\u67b6\u7528\u7684\u6700\u591a\u7684\u5e94\u8be5\u662f tornado \u5427\uff0c\u5176\u4ed6\u7684\u611f\u89c9\u5f88\u5c11\u4eba\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Language Hopping\uff0c&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\/138207"}],"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=138207"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/138207\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138207"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}