{"id":1451,"date":"2006-08-13T04:38:04","date_gmt":"2006-08-12T20:38:04","guid":{"rendered":"http:\/\/ihower.idv.tw\/blog\/archives\/1451"},"modified":"2007-02-11T22:12:19","modified_gmt":"2007-02-11T14:12:19","slug":"from-java-to-ruby","status":"publish","type":"post","link":"https:\/\/ihower.tw\/blog\/1451-from-java-to-ruby","title":{"rendered":"From Java to Ruby"},"content":{"rendered":"<p><a href=\"http:\/\/pragmaticprogrammer.com\/titles\/fr_j2r\/index.html\"><img decoding=\"async\" src=\"http:\/\/pragmaticprogrammer.com\/images\/fr_j2r_medium.jpg\" style=\"float: left; margin: 5px; height: 170px; border: 0px\" \/><\/a>\u9019\u672c\u66f8\u662f Developer \u8cb7\u4f86\u8aaa\u670d Manager \u4f7f\u7528 Ruby \u7684\u66f8\uff0c\u6216\u662f\u81ea\u5df1\u8aaa\u670d\u81ea\u5df1\u3002\u4f5c\u8005\u4e5f\u662f<a href=\"http:\/\/ihower.idv.tw\/blog\/archives\/1322\"> Beyond Java<\/a> \u7684\u4f5c\u8005\uff0c\u4e0d\u904e\u5f88\u6709\u8da3\u51fa\u7248\u793e\u63db\u6210 <a href=\"http:\/\/pragmaticprogrammer.com\/index.html\">The Pragmatic Programmers<\/a>\u00a0\u4e86\u54e9\u3002\u525b\u597d\u6700\u8fd1\u5e38\u6709\u975e\u6280\u8853\u80cc\u666f\u7684\u4eba\u554f\u6211\u70ba\u4ec0\u9ebc\u8981\u5f9ePHP\u63db\u6210\u7528 Ruby\u3002\u8001\u5be6\u8aaa\uff0c\u6211\u7684\u7406\u7531\u4e3b\u8981\u51fa\u81ea\u5c0d Ruby \u7684\u597d\u611f\uff0c\u559c\u6b61\u5b83\u6e3e\u7136\u81ea\u6210\u7684\u98a8\u683c\uff0c\u5148\u9032\u7c21\u6f54\u53c8\u4e0d\u6703\u592a\u96e3\u61c2\uff0c\u4e5f\u9a5a\u5606 Ruby on Rails \u7684\u6f02\u4eae\u67b6\u69cb\u3002\u4e0d\u904e\u70ba\u4e86\u8aaa\u670d\u66f4\u591a\u4eba\uff0c\u4f5c\u8005\u5beb\u4e86\u9019\u672c\u66f8\uff0c\u65b9\u4fbf\u6211\u5011\u8ddf\u5225\u4eba\u89e3\u91cb\u7684\u6642\u5019\u591a\u63b0\u4e00\u9ede&#8230; :p<\/p>\n<p>\u4f5c\u8005\u81ea\u5df1\u958b\u59cb\u63a1\u7528\u00a0Ruby \u4f5c\u70ba\u5c08\u6848\u958b\u767c\u7684\u7406\u7531\u662f\u00a0 1.\u4eba\uff0c\u8a31\u591a\u4f5c\u8005\u5c0a\u656c\u7684\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u958b\u59cb\u6295\u9760Ruby\uff0c\u5305\u62ecJava\u5708\u4e2d\u6709\u540d\u7684framework\u958b\u767c\u8005\u00a02. Java\u904e\u591a\u8907\u96dc\u7684\u6846\u67b6\u9010\u6f38\u9020\u6210\u751f\u7522\u529b\u9650\u5236 3.RoR\u7206\u70b8\u6027\u6210\u9577\uff0c\u4ee5\u5f80\u4f5c\u8005\u53ea\u6709\u770b\u904eJava\u548cC++\u8a95\u751f\u6642\u6709\u9019\u6a23\u7684\u69ae\u666f 4.Ruby\u5f88\u5feb\u6a02\uff0c\u91cd\u62fe\u4f5c\u8005\u521d\u5b78Java\u6642\u7684\u71b1\u60c5 5.RoR\u958b\u59cb\u6210\u719f\u4e86\uff0c\u4f5c\u8005\u76f8\u4fe1\u53ef\u4ee5\u6eff\u8db3\u5ba2\u6236\u4f5c\u70ba\u5546\u7528\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u7576\u7136\u9019\u672c\u66f8\u4e5f\u6703\u544a\u8a34\u4f60 Java \u54ea\u88e1\u9650\u5236\uff0c\u54ea\u88e1 Ruby \u66f4\u9069\u5408\uff0c\u54ea\u88e1 Java \u9069\u5408\uff0c\u54ea\u88e1 Ruby\u9084\u4e0d\u6210\u719f\u3002Java complexity \u5728\u589e\u52a0\uff0cAvailability\u5728\u964d\u4f4e\uff0cCompetition \u5728\u65e5\u6f38\u589e\u52a0(\u5982PHP,LAMP,Ruby)\u3002\u9019\u500b\u6642\u4ee3<strong> Productivity \u5c31\u662f\u738b\u9053<\/strong>\uff0c\u4f5c\u8005\u8a8d\u70ba RoR\u5c31\u662f\u50ac\u5316\u5291\uff0c\u5e6b\u52a9Ruby\u8de8\u904e\u5e02\u5834\u89c0\u671b\u7684\u9d3b\u6e9d\uff0c\u672a\u4f86 Ruby \u5c07\u4e0d\u53ea\u53ea\u6709\u9019\u4e00\u500b Framework\u3002\u672c\u66f8\u7684\u4e00\u500b\u4e2d\u5fc3\u554f\u984c\u5c31\u662f \u5982\u4f55\u8abf\u6574\u66f4\u63db\u7a0b\u5f0f\u8a9e\u8a00\u7684\u98a8\u96aa? Java\u98a8\u96aa\u5728\u589e\u52a0\uff0c\u800c Ruby\u5728\u4e0b\u964d\uff0c\u6240\u4ee5\u8d81\u65e9\u64c1\u62b1ruby\u5427\u3002<\/p>\n<p>\u672c\u66f8\u4e3b\u8981\u4f9d\u7167\u63a1\u7528\u65b0\u8a9e\u8a00\u7684 Process \u4f86\u7de8\u6392\uff0c\u5206\u6210\u4e09\u500b\u968e\u6bb5(\u8cc7\u6599\u6536\u96c6,\u6709\u9650\u90e8\u7f72,\u5ee3\u6cdb\u90e8\u7f72)\uff0c\u5404\u5169\u500b\u6b65\u9a5f\u30021.\u78ba\u8a8d\u75db\u82e6 2.\u5efa\u7acb\u5831\u511f 3.\u5efa\u7acbPilot 4.\u6709\u9650\u90e8\u7f72 5.\u6574\u5408 6. Ramp up<\/p>\n<p>\u81f3\u6b64\u7b2c\u4e00\u7ae0 Induction \u7d50\u675f\u3002\u4ee5\u4e0b\u96a8\u4fbf\u6458\u9304\u91cd\u9ede\u3002<\/p>\n<p><strong>Pain<\/strong><\/p>\n<ul>\n<li>\u5728\u63a1\u7528Ruby\u4e4b\u524d\uff0c\u4f60\u5148\u8981\u78ba\u5b9a\u4f60\u73fe\u5728\u6709\u4ec0\u9ebc Pain\u3002<\/li>\n<li>Java\u7684poor productivity\u4f86\u81eaC++\u7684\u907a\u7522\u53ca\u904e\u591a\u7684\u67b6\u69cb\u3002<\/li>\n<li>Martin Fowler (\u5beb <a href=\"http:\/\/ihower.idv.tw\/blog\/archives\/1294\">P of EAA<\/a>\u90a3\u4f4d) \u8a8d\u70baJava\u7684\u975e\u5fc5\u8981\u8907\u96dc\u6027\u4e0d\u53ef\u63a5\u53d7\u7684\u592a\u9ad8\u3002<\/li>\n<\/ul>\n<p><strong>Establishing Your Reward<\/strong><\/p>\n<ul>\n<li>\u5f9e\u4e0b\u8f09\u6b21\u6578\uff0c\u9858\u666f\uff0c\u66f8\u7c4d\u53ef\u4ee5\u89c0\u5bdf Ruby \u7684\u6210\u9577\u3002<\/li>\n<li><strong>Ruby \u7684\u57fa\u77f3\u5c31\u662f Productivity (\u751f\u7522\u529b)\uff0c\u4e0d\u7ba1\u662f\u77ed\u7a0b\u6216\u9577\u7a0b\u4f86\u770b\u3002<\/strong><\/li>\n<li>Java \u7684\u98a8\u96aa\u76ee\u524d\u56e0\u70ba\u4f54\u512a\u52e2\u7684\u5e02\u5834\u5730\u4f4d\u800c\u6bd4\u8f03\u4f4e\uff0c\u4f46\u662f\u5c08\u6848\u98a8\u96aa\u537b\u56e0\u70ba\u958b\u767c\u6642\u9593\u548c\u8907\u96dc\u5ea6\u5728\u589e\u52a0\u3002<\/li>\n<li>Java \u662f infrastructure \u8a9e\u8a00\u4e0d\u9069\u7528\u5728\u8a31\u591a\u61c9\u7528\u7a0b\u5f0f\u3002<\/li>\n<\/ul>\n<p><strong>Pilot<\/strong><\/p>\n<ul>\n<li>\u4efb\u4f55\u6709\u6548\u7684 Pilot \u90fd\u9700\u8981\u628a\u73fe\u6709\u7684\u6280\u8853\u8ddf\u653f\u6cbb\u73fe\u5be6\u7d0d\u5165\u8003\u91cf<\/li>\n<li>learning \u548c selling \u7684\u76ee\u6a19\u5e38\u4e0d\u4e00\u81f4\u3002\u6311\u96e3\u7684\u90e8\u4efd\u7528Ruby\uff0c\u53ef\u4ee5\u5b78\u6bd4\u8f03\u591a\uff0c\u4f46\u53c8\u6015\u5931\u6557\u3002\u6311\u7c21\u55ae\u7684\u7528Ruby\uff0c\u5b78\u5230\u6bd4\u8f03\u5c11\uff0c\u4f46\u6bd4\u8f03\u5bb9\u6613\u6210\u529f\u3002\u4ee5\u4e0b\u5206\u4e94\u500b\u5c0e\u5165\u60c5\u5883 :<\/li>\n<li>\u5178\u578b\u6cd5\uff0c\u91cd\u9ede\u653e\u5b78\u7fd2\uff0c\u5728\u9ad8\u6280\u8853\u98a8\u96aa\u7684\u5730\u65b9\u5c0e\u5165 Ruby<\/li>\n<li>\u6bd4\u8f03\u6cd5\uff0c\u540c\u4e00\u6848\u540c\u6642\u63a1\u7528 Java \u8ddf Ruby \u5be6\u4f5c\uff0c\u540c\u6642\u6bd4\u8f03\u512a\u7f3a\u3002<\/li>\n<li>\u7279\u6d1b\u4f9d\u6cd5\uff0c\u5728\u4f4e\u98a8\u96aa\u6848\u63a1\u7528Ruby\uff0c\u9010\u6f38\u7372\u5f97\u6210\u529f\u3002<\/li>\n<li>\u8ced\u4e0a\u4f60\u7684\u751f\u610f\u6cd5\uff0c\u98a8\u96aa\u6700\u5927\u5831\u916c\u6700\u9ad8\uff0c\u9069\u5408\u65b0\u516c\u53f8\uff0c\u5982 37signals\uff0c\u5229\u7528\u66f4\u597d\u7684 dynamic \u8ddf productive \u7684\u7a0b\u5f0f\u8a9e\u8a00\u4f86\u5c0d\u6297\u5927\u516c\u53f8\uff0c\u5c0f\u8766\u7c73\u5c0d\u6297\u5927\u9be8\u9b5a\u51fa\u5947\u624d\u80fd\u81f4\u52dd\u3002<\/li>\n<li>\u62ef\u6551\u6cd5\uff0c\u628a\u7528 Java \u5931\u6557\u7684\u6848\u5b50\u7d66 Ruby \u505a\u3002<\/li>\n<\/ul>\n<p><strong>On an Island<\/strong><\/p>\n<ul>\n<li>Ruby \u4e0d\u53ea\u662f scripting \u8a9e\u8a00\uff0c\u5728 integration, data munging, web development \u548c rapid development \u90fd\u5f88\u6709\u8fa6\u6cd5\u3002<\/li>\n<li>Ruby on Rails \u6709\u548c PHP \u6216 Visual Basic \u4e00\u6a23\u7684\u5feb\u901f\u5ea6\uff0c\u800c\u4e14\u53c8\u6bd4 Java \u4e7e\u6de8\u3002<\/li>\n<li>Ruby middleware \u652f\u63f4 database integration, security, messaging, communications, XML, web services \u7b49<\/li>\n<\/ul>\n<p><strong>Bridges<\/strong><\/p>\n<ul>\n<li>Ruby \u63d0\u4f9b\u8ddf\u5225\u7684\u7a0b\u5f0f\u8a9e\u8a00\u5f88\u597d\u7684\u6574\u5408\uff0c\u5c24\u5176\u662f Java\u3002<\/li>\n<li>JRuby\u9010\u6f38\u6210\u719f\uff0c\u53ef\u4ee5\u5728 JVM \u4e0a\u8dd1 Ruby\u3002<\/li>\n<li>Ruby framework \u504f\u597d\u7c21\u6f54\u7684XML\u548cweb services\u5be6\u4f5c\u3002<\/li>\n<\/ul>\n<p><strong>Ramping Up<\/strong><\/p>\n<ul>\n<li>\u5ee3\u6cdb\u90e8\u7f72\u5c0dRuby\u9084\u5f88\u65b0\uff0cdeployment \u7b56\u7565\u5e38\u6bd4\u985e\u4f3c\u7684 java project \u9084\u5148\u9032\u3002<\/li>\n<\/ul>\n<p><strong>Risk<\/strong><\/p>\n<p>\u6700\u5f8c\u4e00\u7ae0\u8ac7\u98a8\u96aa\uff0c\u5305\u62ec\u6280\u8853\u4e0a\u548c\u653f\u6cbb\u4e0a\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u672c\u66f8\u662f Developer \u8cb7\u4f86\u8aaa\u670d Manager \u4f7f\u7528 Ruby \u7684\u66f8\uff0c\u6216\u662f\u81ea\u5df1\u8aaa\u670d\u81ea\u5df1\u3002\u4f5c\u8005\u4e5f\u662f Be &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ihower.tw\/blog\/1451-from-java-to-ruby\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008From Java to Ruby\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9,5,31],"tags":[],"class_list":["post-1451","post","type-post","status-publish","format-standard","hentry","category-books","category-programming","category-ruby","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q6tG-np","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/1451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/comments?post=1451"}],"version-history":[{"count":0,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/1451\/revisions"}],"wp:attachment":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/media?parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/categories?post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/tags?post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}