{"id":9452,"date":"2018-10-09T13:48:11","date_gmt":"2018-10-09T04:48:11","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=9452"},"modified":"2018-10-09T15:31:20","modified_gmt":"2018-10-09T06:31:20","slug":"scratch%e3%81%8b%e3%82%89%e9%a3%9b%e3%81%b3%e5%87%ba%e3%81%97%e3%81%a6smalltalk%e3%82%92%e5%ad%a6%e3%81%bc%e3%81%86%ef%bc%88%e6%ba%96%e5%82%99%e7%b7%a8%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/9452","title":{"rendered":"Scratch\u304b\u3089\u98db\u3073\u51fa\u3057\u3066Smalltalk\u3092\u5b66\u307c\u3046\uff08\u6e96\u5099\u7de8\uff09"},"content":{"rendered":"<blockquote class=\"twitter-tweet\" data-lang=\"ja\">\n<p dir=\"ltr\" lang=\"ja\">\u3053\u308c\u3092\u5b9f\u969b\u306bSmalltalk(Squeak)\u3067\u66f8\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002 <a href=\"https:\/\/t.co\/5TbLgPVltO\">pic.twitter.com\/5TbLgPVltO<\/a><\/p>\n<p>\u2014 \u30a2\u30d9\u5148\u751f (CV: \u963f\u90e8\u548c\u5e83) (@abee2) <a href=\"https:\/\/twitter.com\/abee2\/status\/1048123480229572608?ref_src=twsrc%5Etfw\">2018\u5e7410\u67085\u65e5<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>\u5148\u65e5\u66f8\u3044\u305f\u8a18\u4e8b\u306b\u8fd4\u4e8b\u3092\u9802\u3044\u3066\u3001\u305d\u3046\u304b\u3001Scratch 1.4 \u306e\u4e2d\u8eab\u306f Smalltalk(Squeak)\u306a\u306e\u3060\u304b\u3089\u305d\u3063\u3061\u3067\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3093\u3060\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3061\u3087\u3063\u3068 Smalltalk \u3092\u6570\u65e5\u52d5\u304b\u3057\u3066\u307f\u308b\u3002<\/p>\n<h2>\u4f55\u51e6\u304b\u3089\u624b\u3092\u4ed8\u3051\u308c\u3070\u3088\u3044\u306e\u304b\uff1f<\/h2>\n<p>\u771f\u9762\u76ee\u306b\u3084\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u6559\u79d1\u66f8\u3068\u304b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3084\u308c\u3070\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u304c\u3001\u305d\u3082\u305d\u3082 Smalltalk \u3092\u4eca\u66f4\u307e\u3058\u3081\u306b\u898b\u308b\u6c17\u306f\u306a\u3044\u3057\uff08\u3068\u601d\u3063\u3066\u304a\u308a\u307e\u3057\u305f\u3088\uff09\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u3068\u3053\u308d\u3060\u3051\u898b\u3066\u304a\u304d\u305f\u3044\u306e\u3067\u3001\u4f55\u304b\u3088\u3044\u5b9f\u4f8b\u306f\u306a\u3044\u306e\u304b\u3068\u601d\u3044\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\u3002Google \u3067\u521d\u5fc3\u8005\u89e3\u8aac\u56de\u308a\u3092\u3055\u304c\u3057\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u3060\u3068\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u3092\u898b\u3066\u3044\u304f\u3068\u306a\u3093\u3068\u306a\u304f\u5b9f\u7528\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>Smalltalk Advent Calendar 2017 &#8211; Qiita<br \/>\n<a href=\"https:\/\/qiita.com\/advent-calendar\/2017\/smalltalk\">https:\/\/qiita.com\/advent-calendar\/2017\/smalltalk<\/a><\/p>\n<p>\u521d\u5fc3\u8005\u306a\u3068\u3053\u308d\u3068\u3001\u96e3\u89e3\u3067\u7d30\u304b\u3044\u3044\u3068\u3053\u308d\u3068\u96d1\u591a\u306a\u8a18\u4e8b\u304c\u3042\u3064\u307e\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u5c11\u306a\u304f\u3068\u3001<\/p>\n<ul>\n<li>\u307b\u3069\u3088\u304f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u3044\u308b\u4eba\u304c\u66f8\u3044\u3066\u3044\u308b<\/li>\n<li>\u307b\u3069\u3088\u304f\u3001\u8907\u6570\u306e\u4eba\u304c\u66f8\u3044\u3066\u3044\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u5404\u8a18\u4e8b\u3068\u5404\u30ea\u30f3\u30af\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u3092\u5b66\u3076\u3068\u304d\u306e\u3068\u3063\u304b\u304b\u308a\u3068\u3057\u3066\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u3067\u304a\u8a66\u3057\u3059\u308b Pharo Smalltalk\u30fb\u7b2c1\u56de \u306f\u3058\u3081\u3066\u306e\u30ec\u30c3\u30c9\u3001\u30a4\u30a8\u30ed\u30fc\u3001\u30b0\u30ea\u30fc\u30f3 \u2013 Qiita<br \/>\n<a href=\"https:\/\/qiita.com\/sumim\/items\/fa41066c57d211814ff9\">https:\/\/qiita.com\/sumim\/items\/fa41066c57d211814ff9<\/a><\/p>\n<p>\u305d\u3093\u306a\u4e2d\u3067\u3001TDD \u3092\u4f7f\u3063\u305f\u89e3\u8aac\u304c\u3042\u3063\u305f\u306e\u3067\u8a66\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>Scratch 1.4 \u3067 Smalltalk \u3092\u4f7f\u3046<\/h2>\n<p>\u3061\u306a\u307f\u306b\u3001Scratch 1.4 \u3067 Smalltalk \u306e\u74b0\u5883\u3092\u958b\u304f\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Smalltalk\u304b\u3089Scratch\u3092\u3044\u3058\u308b(1) \u30b9\u30d7\u30e9\u30a4\u30c8\u306e\u5927\u91cf\u751f\u6210 &#8211; Qiita<br \/>\n<a href=\"https:\/\/qiita.com\/maeda_\/items\/7a525cae6b3c1ca45773\">https:\/\/qiita.com\/maeda_\/items\/7a525cae6b3c1ca45773<\/a><\/p>\n<p>\u300c\u753b\u9762\u53f3\u4e0a\u306eSCRATCH\u306e\u30ed\u30b4\u306e&#8221;R&#8221;\u306e\u90e8\u5206\u3092Shift\u30ad\u30fc\u3092\u62bc\u3057\u306a\u304c\u3089\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30e1\u30cb\u30e5\u30fc\u304c\u958b\u304d\u307e\u3059\u3002\u300d\u3063\u3066\u306e\u304c\u30b9\u30bf\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<ul>\n<li>inspect morph \u304c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6301\u3064\u5909\u6570\u8868\u793a\u3068 workspace\/playground \u306e\u8868\u793a<\/li>\n<li>browse morph class \u3067\u30af\u30e9\u30b9\u306e\u30d6\u30e9\u30a6\u30b8\u30f3\u30b0\u306e\u8868\u793a<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-13.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"388\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u3053\u306e\u307e\u307e\u3067\u3082\u8272\u3005\u3067\u304d\u308b\u306f\u305a\u306a\u306e\u3067\u3059\u304c\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u304d\u3061\u3093\u3068\u3057\u3066\u74b0\u5883\u304c\u6b32\u3057\u3044\u306e\u3067\u3001<a href=\"https:\/\/pharo.org\/\">Pharo<\/a> \u3063\u3066\u306e\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<h2>Pharo 6.1 \u3092\u4f7f\u3046<\/h2>\n<p>Pharo\u00a0 <a href=\"https:\/\/pharo.org\/\">https:\/\/pharo.org\/<\/a> \u3063\u3066\u306e\u306f\u3001OSS \u306a Smalltalk \u306a\u74b0\u5883\u3067\u3001Windows\/macOS\/Linux \u3067\u306e\u52d5\u4f5c\u74b0\u5883\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5148\u306e TDD \u306e\u89e3\u8aac\u3082 Pharo \u306a\u306e\u3067\u3001\u3053\u308c\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>Smalltalk \u306f\u5185\u90e8\u3067\u306f VM \u3067\u52d5\u3044\u3066\u3044\u308b\u306e\u3067\u3001Android \u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u306e\u3088\u3046\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002\u3067\u3001\u6700\u65b0\u306e\u516c\u958b\u306f 7.0 \u3089\u3057\u3044\u306e\u3067\u3059\u304c\u3001stable \u306a\u306e\u306f 6.1 \u306e\u307b\u3046\u3067\u3059\u306d\u30027.0 \u3068 6.1 \u306f\u30e1\u30cb\u30e5\u30fc\u8868\u793a\u304c\u5fae\u5999\u306b\u9055\u3063\u3066\u3044\u3066\u3001\u5148\u306e TDD \u306e\u8a18\u4e8b\u3068\u9055\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u30016.1 \u306e\u307b\u3046\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-14.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"399\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u9593\u9055\u3048\u3066 7.0 \u306e\u307b\u3046\u3092\u5165\u308c\u3066\u300c\u30e1\u30cb\u30e5\u30fc\u304c\u9055\u3046\u300d\u300c\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u304c\u306a\u3044\u300d\u3068\u601d\u3063\u3066\u82e6\u52b4\u3057\u305f\u306e\u306f\u5185\u7dd2\u3067\u3059\u3002\u2193\u304c 7.0 \u306e\u753b\u9762<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-15.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-15.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"433\" style=\"border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u3053\u308c\u304c 6.1 \u306e\u753b\u9762\u3002\u3061\u3087\u3063\u3068\u9055\u3046\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-16.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-16.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"447\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u307e\u305a\u6700\u521d\u306b\u3084\u3063\u3066\u3053\u3068\u306f\u3001\u30b3\u30fc\u30c9\u30a8\u30c7\u30a3\u30bf\u306e\u6587\u5b57\u304c\u5c0f\u3055\u3044\u306e\u3067\u5927\u304d\u304f\u3059\u308b\u3068\u3053\u308d\u304b\u3089\u3001\u80cc\u666f\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u300cSystem\u300d\u2192\u300cSetting\u300d\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-17.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-17.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"447\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u4f55\u51e6\u3042\u308b\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001Font \u3067\u691c\u7d22\u3057\u3066\u3001Default \u3068 Code \u306e\u90e8\u5206\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u5927\u304d\u3081\u306b\u3057\u3066\u304a\u304f\u3068\u8001\u773c\u306e\u79c1\u306b\u306f\u512a\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-18.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-18.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"447\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<h2>TDD \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u9032\u3081\u308b<\/h2>\n<p>\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u3067\u304a\u8a66\u3057\u3059\u308b Pharo Smalltalk\u30fb\u76ee\u6b21 &#8211; Qiita<br \/>\n<a href=\"https:\/\/qiita.com\/sumim\/items\/3a36c03ab41519077b37\">https:\/\/qiita.com\/sumim\/items\/3a36c03ab41519077b37<\/a><\/p>\n<p>\u3092\u5730\u5473\u306b\u9032\u3081\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u307e\u3063\u305f\u304f Smalltalk \u306e\u6587\u6cd5\u304c\u5206\u304b\u3089\u306a\u3044\u306a\u304c\u3089\u3082\u3044\u304f\u3064\u304b\u9762\u767d\u3044\u767a\u898b\u3092\u3057\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u3001\u66f8\u304d\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002Smalltalk \u81ea\u4f53\u306f\u53e4\u3044\u8a00\u8a9e\uff08\u30e1\u30b8\u30e3\u30fc\u306a\u306e\u306f Smalltalk-80 \u4f4d\u304b\u3089\u3060\u304b\u3089\u300140\u5e74\u3050\u3089\u3044\u524d\u304b\uff09\u306e\u3067\u3001\u305d\u306e\u3042\u3068\u306b\u51fa\u3066\u304d\u305f\u8a00\u8a9e\u3082\u542b\u3081\u3066\u3063\u3066\u3053\u3068\u3067\u3059\u304c\u3002<\/p>\n<h3>\u6587\u672b\u306b\u300c.\u300d\u30d4\u30ea\u30aa\u30c9\u3092\u4f7f\u3046<\/h3>\n<p>C\u8a00\u8a9e\u7cfb\u3067\u306f\u6587\u306e\u7d42\u308f\u308a\u306b\u300c;\u300d\u30bb\u30df\u30b3\u30ed\u30f3\u3092\u4f7f\u3046\u308f\u3051\u3067\u3059\u304c\uff08\u3053\u308c\u304c\u5acc\u308f\u308c\u3082\u306e\u3067\u3042\u308a\u3001\u30bb\u30df\u30b3\u30ed\u30f3\u3042\u308b\u306a\u3057\u3067\u3001\u95a2\u6570\u8a00\u8a9e\u3068\u304b Python \u3068\u304b\u306b\u79fb\u308b\u5834\u5408\u3082\u3042\u308b\u308f\u3051\u3067\uff09\u3001Smalltalk \u306f\u300c.\u300d\u30d4\u30ea\u30aa\u30c9\u3067\u6587\u7ae0\u3092\u7d42\u308f\u3089\u305b\u307e\u3059\u3002\u306a\u308b\u307b\u3069\u3001\u82f1\u6587\u306f\u30d4\u30ea\u30aa\u30c9\u3067\u7d42\u308f\u308b\u304b\u3089\u3001Smalltalk \u3082\u30d4\u30ea\u30aa\u30c9\u3067\u7d42\u308f\u308b\u306e\u3067\u3059\u306d\uff08\u304a\u305d\u3089\u304f\uff09\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-19.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-19.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"429\" height=\"239\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u95a2\u6570\u306e\u6700\u5f8c\u306f\u30d4\u30ea\u30aa\u30c9\u304c\u7701\u7565\u3067\u304d\u308b\u306e\u3067\u3001\u4e00\u6587\u3060\u3051\u306e\u95a2\u6570\u306f\u30d4\u30ea\u30aa\u30c9\u304c\u3042\u3063\u305f\u308a\u306a\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u623b\u308a\u5024\u3092 ^ \u3067\u8868\u3059\u3002<\/h3>\n<p>\u6700\u521d\u3001\u3053\u306e\u300c^\u300d\u306f\u306a\u3093\u3060\uff1f\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001return \u3067\u3059\u3002\u95a2\u6570\u578b\u8a00\u8a9e\u3060\u3068\u3001\u5e38\u306b\u5f0f\u3092\u8868\u3059\u306e\u3067\u95a2\u6570\u306e\u6700\u5f8c\u306e\u884c\u304c\u4fa1\u3092\u8fd4\u3059\u3053\u3068\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Smalltalk \u306e\u5834\u5408\u306f\u3001\u660e\u793a\u7684\u306b\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-20.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-20.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"545\" height=\"274\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<h3>\u30e1\u30bd\u30c3\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u300c:\u300d\u30b3\u30ed\u30f3\u3067\u533a\u5207\u308b<\/h3>\n<p>Smalltalk \u3067\u30e1\u30bd\u30c3\u30c9\uff08\u95a2\u6570\uff09\u3092\u547c\u3073\u51fa\u3059\u3068\u304d\u306b\u3001\u62ec\u5f27\u3092\u66f8\u304d\u307e\u305b\u3093\u3002\u5f15\u6570\u306e\u6307\u5b9a\u306b\u300c:\u300d\u30b3\u30ed\u30f3\u3092\u4f7f\u3046\u308f\u3051\u3067\u3059\u304c\u3001\u306a\u3093\u304b\u3001\u3053\u306e\u5f62\u5f0f\u307f\u305f\u3053\u3068\u304c\u3042\u308b\u306a\uff1f\u3068\u601d\u3063\u305f\u3089 Objective-C \u3067\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-21.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-21.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"225\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u3068\u3044\u3046\u304b\u3001Objective-C \u306e\u30eb\u30fc\u30c4\u304c Smalltalk \u3067\u3042\u3063\u305f\u3053\u3068\u3092\u4eca\u77e5\u308a\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>Smalltalk \u306e\u5834\u5408<br \/>\nbank addXRate: 1 USD \/ 2 CHF .<\/li>\n<li>Objective-C \u306e\u5834\u5408<br \/>\n[ bank addXRate: 1 USD \/ 2 CHF ] ;<\/li>\n<li>C++ \u306e\u5834\u5408<br \/>\nbank.addXRate( 1 USD \/ 2 CHF ) ;<\/li>\n<\/ul>\n<p>\u300c1 USD \/ 2 CHF\u300d\u306f\u3001\u307e\u3042\u3001\u3072\u3068\u3064\u306e\u5f15\u6570\u3068\u307f\u3066\u304f\u3060\u3055\u3044\u3002Objective-C \u306e\u5834\u5408\u3001\u3072\u3068\u3064\u76ee\u306e\u5f15\u6570\u306e\u5834\u5408\u306f\u540d\u524d\uff08\u30bb\u30ec\u30af\u30bf\uff09\u3092\u7701\u7565\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u3042\u3048\u3066\u4f7f\u3046\u30d1\u30bf\u30fc\u30f3\u3067\u3002<\/p>\n<p>2\u3064\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6301\u3064\u3068\u304d\u306f\u3001<\/p>\n<ul><!--StartFragment--><\/p>\n<li>Smalltalk \u306e\u5834\u5408<br \/>\nbank exchange: 10 CHF to: #USD .<\/li>\n<li>Objective-C \u306e\u5834\u5408<br \/>\n[ bank exchange: 10 to: #USD ] ;<\/li>\n<li>C++ \u306e\u5834\u5408<br \/>\nbank.exchange( 10, #USD );<\/li>\n<\/ul>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u306d\u3002C\/C++ \u3060\u3068\u5f15\u6570\u306b\u540d\u524d\u304c\u3064\u304b\u306a\u3044\u306e\u3067\u3001\u578b\u3067\u5224\u65ad\u3059\u308b\u306e\u3067\u3084\u3084\u3053\u3057\u304f\u306a\u308b\u306e\u3067\u3059\u304c\u3001Smalltalk \u306e\u5834\u5408\u306f\u540d\u524d\u304c\u4f7f\u3048\u307e\u3059\u3002\u3053\u306e\u90e8\u5206\u3001C# \u3067\u306f\u540d\u524d\u4ed8\u304d\u306e\u8a18\u6cd5\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u4f3c\u305f\u5f62\u3067\u66f8\u3051\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b self \u306f\u81ea\u5206\u81ea\u8eab\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u793a\u3059\u306e\u3067 C++ \u306e this \u3068\u540c\u3058\u3002<\/p>\n<ul>\n<li>self assert: ( bank exchange: 10 CHF\u00a0 to: #USD ) equals: 5 USD<\/li>\n<li>this-&gt;assert( bank.exchange( 10, #USD ), 5 USD );<\/li>\n<\/ul>\n<p>\u3053\u306e2\u3064\u306f\u540c\u3058\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>Smalltalk \u306b\u306f\u578b\u304c\u306a\u3044<\/h3>\n<p>\u5b9f\u306f Smalltalk \u306b\u306f\u578b\u304c\u3042\u308a\u307e\u305b\u3093\uff08\u3068\u8a00\u3044\u5207\u3063\u3066\u3044\u3044\u306e\u3060\u308d\u3046\u304b\uff1f\uff09\u3002\u95a2\u6570\u306e\u5f8c\u308d\u306b\u3042\u308b\u300c\uff5c\u300d\u30d1\u30a4\u30d7\u3067\u56f2\u307e\u308c\u305f\u3068\u3053\u308d\u304c\u3001\u5185\u90e8\u5909\u6570\u306e\u5ba3\u8a00\u3067\u3059\u3002\u3048\u3089\u3044\u5927\u96d1\u628a\u3067\u3059\u304c\u3001Smalltalk \u304c VM \u3067\u52d5\u3044\u3066\u3044\u308b\u304b\u3089\u3053\u308c\u3067\u3044\u3051\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-22.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-22.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"559\" height=\"195\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>VB6 \u306e Variant \u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3059\u304b\u306d\u3002<\/p>\n<ul>\n<li>Dim bank, result<\/li>\n<\/ul>\n<p>\u3068\u66f8\u304f\u306e\u3068\u540c\u3058\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b bank \u5909\u6570\u306b\u5225\u306e\u578b\u3092\u5165\u308c\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u305b\u3093\u3002\u3042\u307e\u308a\u3001\u3084\u3089\u306a\u3044\u3060\u308d\u3046\u3051\u3069\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-23.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-23.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"559\" height=\"259\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<h3>\u65e2\u5b58\u30af\u30e9\u30b9\u3092\u62e1\u5f35\u3067\u304d\u308b<\/h3>\n<p>\u305f\u3076\u3093\u3001Smalltalk \u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u809d\u306b\u306a\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001Smalltalk \u3067\u306f\u65e2\u5b58\u306e\u30af\u30e9\u30b9\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u62e1\u5f35\u3067\u304d\u307e\u3059\u3002Objective-C \u3067\u3044\u3046\u30ab\u30c6\u30b4\u30ea\u3060\u3063\u305f\u308a\u3001C# \u3067\u3044\u3046\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u306e\u3088\u3046\u306a\u6a5f\u80fd\u3067\u3059\u304c\u3001Smalltalk \u3067\u306f\u3059\u3067\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-24.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-24.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"299\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u65e2\u5b58\u306e\u30af\u30e9\u30b9\u3092\u5f04\u3063\u3066\u3057\u307e\u3046\u306e\u3060\u304b\u3089\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3084\u3089\u96a0\u853d\u6027\u3084\u3089\u306f\u3069\u3053\u306b\u884c\u304f\u306e\uff1f\u3068\u3044\u3046\u8a71\u306a\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u306f Smalltalk \u304c VM \u4e0a\u3067\u52d5\u3044\u3066\u3044\u308b\u5229\u70b9\u306a\u306e\u3067\u3057\u3087\u3046\u3002\u52d5\u4f5c\u74b0\u5883\u304c\u5225\u3005\u306a\u306e\u3060\u304b\u3089\u5927\u4e08\u592b\u2026\u3068\u3044\u3046\u601d\u60f3\u3060\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u3082\u304b\u304f\u3001\u4e00\u756a\u6839\u3063\u3053\u306b\u306a\u308b Object \u30af\u30e9\u30b9\u306b\u3082\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-25.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"308\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>Object \u30af\u30e9\u30b9\u306e testing \u306e\u30ab\u30c6\u30b4\u30ea\uff08\u3053\u308c\u306f\u5206\u985e\u306a\u306e\u3067\u3001\u4f55\u51e6\u306b\u3042\u3063\u3066\u3082\u4e00\u7dd2\uff08\u3060\u3068\u601d\u3046\uff09\u306b\u306f\u3001isColor \u3068\u304b\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3082\u3042\u308b\u308f\u3051\u3067\u3001\u6240\u8b02\u300c\u795e\u30af\u30e9\u30b9\u300d\u306b\u306a\u308a\u307e\u3059\u3002Objective-C \u306b\u3082\u30ab\u30c6\u30b4\u30ea\u540d\u3092\u4f7f\u3063\u3066\u65e2\u5b58\u30af\u30e9\u30b9\u3092\u62e1\u5f35\u3059\u308b\u6a5f\u80fd\u304c\u3042\u3063\u3066\u306e\u3067\u3001\u3053\u308c\u3068\u540c\u3058\u6a5f\u80fd\u3092\u53d6\u308a\u5165\u308c\u305f\u3082\u306e\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>C++ \u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u3067 GUI \u3092\u4f5c\u308b\u3068\u304d\u306b\u7d99\u627f\u3092\u4f7f\u3044\u3001\u305d\u306e\u3042\u3068\u6df1\u3044\u7d99\u627f\u304c\u6df1\u304f\u306a\u308a\u3059\u304e\u3066 C# \u3067\u59d4\u8b72\u304c\u4f7f\u308f\u308c\u308b\u3053\u3068\u304c\u591a\u304f\u306a\u3063\u305f\u3001\u3068\u3044\u3046\u7d4c\u7def\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001Smalltalk \u3060\u3068\u6839\u3063\u3053\u306b\u624b\u3092\u5165\u308c\u308b\u3068\u3044\u3046\u6280\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u306d\u3002\u307e\u3042\u3001\u3053\u306e\u3042\u305f\u308a\u306f C++\/Java\/C# \u7b49\u3067\u306f\u3067\u304d\u306a\u3044\u3057\u3001\u89aa\u30af\u30e9\u30b9\u304c\u3044\u304d\u306a\u308a\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u3066\u3082\u56f0\u308b\u306e\u3067\uff08\u30e1\u30bd\u30c3\u30c9\u540d\u306e\u91cd\u8907\u306a\u3069\uff09\u62e1\u5f35\u3068\u3044\u3046\u6a5f\u80fd\u3060\u3051\u306b\u7559\u307e\u308b\u308f\u3051\u3067\u3059\u304c\u3002<\/p>\n<h3>\u7d30\u304b\u304f\u4fdd\u5b58\u3057\u3001\u7d30\u304b\u304f\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b<\/h3>\n<p>Smalltalk \u3067\u306f\u3001\u30d6\u30ed\u30c3\u30af\u3068\u3044\u3046\u6982\u5ff5\u304c\u306a\u3044\uff08\u3089\u3057\u3044\uff09\u306e\u3067\u3001\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u5358\u4f4d\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u304c\u7d30\u304b\u304f\u5206\u304b\u308c\u308b\u306e\u3067\u3001\u5206\u304b\u308c\u305f\u5358\u4f4d\u3067\u4fdd\u5b58\uff06\u30b3\u30f3\u30d1\u30a4\u30eb\uff08Accept\uff09\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002\u3053\u308c\u3001\u6614\u306f\u76f8\u5f53\u91cd\u304b\u3063\u305f\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u4eca\u306e CPU \u306a\u3089\u3070\u5168\u7136\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-26.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-26.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"472\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u8a18\u8ff0\u3059\u308b\u30b3\u30fc\u30c9\u306f\u5341\u6570\u884c\u3050\u3089\u3044\u306a\u306e\u3067\u3001\u3053\u308c\u3067\u5341\u5206\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u9006\u306b\u8a00\u3048\u3070\u3001\u3072\u3068\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u6570\u767e\u884c\u3082\u66f8\u3044\u3066\u3057\u307e\u3063\u3066\u3044\u305f\u3089\u3001Smalltalk \u3068\u3057\u3066\u306f\u304a\u304b\u3057\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h3>if \u6587\u3063\u3066\u306e\u306f\u7121\u3044<\/h3>\n<p>\u3053\u308c\u3082 Smalltalk \u306e\u5947\u5999\u306a\u6587\u6cd5\u3060\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001Smalltalk \u306b\u306f if \u6587\u304c\u3042\u308a\u307e\u305b\u3093\uff08\u305f\u3076\u3093\uff09\u3002\u3058\u3083\u3042\u3001\u6761\u4ef6\u5206\u5c90\u306f\u3069\u3046\u306a\u308b\u306e\u304b\uff1f\u3068\u3044\u3046\u3068\u300cifTrue:\u300d\u3068\u300cifFalse:\u300d\u3068\u3044\u3046\u30bb\u30ec\u30af\u30bf\uff08\u5f15\u6570\u307f\u305f\u3044\u306a\u3082\u306e\u304b\uff09\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image-27.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2018\/10\/image_thumb-27.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"366\" style=\"display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u306a\u306e\u3067\u3001C++ \u3067\u3042\u308c\u3070<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nif ( a == true ) { b = 10 ; } else { b = 20 ; }\r\n<\/pre>\n<p>\u3068\u66f8\u304f\u3068\u3053\u308d\u3092\u3001Smalltalk \u3067\u306f\u3001<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\na == true ifTrue: &#x5B;b := 10] ifFalse: &#x5B;b := 20] .\r\n<\/pre>\n<p>\u3068\u66f8\u304d\u307e\u3059\u3002\u4e0d\u601d\u8b70\u3067\u3059\u306d\u3002\u3053\u306e\u66f8\u304d\u65b9\u3001\u5b9f\u306f\u5229\u70b9\u304c\u3042\u3063\u3066\u3001if \u6587\uff08\u3063\u307d\u3044\u3082\u306e\uff09\u304c\u5f0f\u3068\u3057\u3066\u6271\u3048\u308b\u306e\u3067\u3001\u95a2\u6570\u578b\u8a00\u8a9e\u3063\u307d\u3044\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nb := a == true ifTrue: 10 ifFalse: 20 .\r\n<\/pre>\n<p>\u306a\u611f\u3058\u3067\u3001a \u304c true\/false \u304b\u306b\u3088\u3063\u3066\u300110 \u304b 20 \u3092 b \u306b\u4ee3\u5165\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\uff5e\uff5e\uff5e<\/p>\n<p>\u305d\u3093\u306a\u8a33\u3067\u3072\u3068\u307e\u305a\u3001\u6c17\u3065\u3044\u305f\u3068\u3053\u308d\u306f\u3053\u3053\u307e\u3067\u3002\u3042\u3068\u3082\u3046\u5c11\u3057 TDD \u3092\u307d\u3061\u307d\u3061\u3068\u9032\u3081\u308b\u3064\u3082\u308a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u3092\u5b9f\u969b\u306bSmalltalk(Squeak)\u3067\u66f8\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002 pic.twitter.com\/5TbLgPVltO \u2014 \u30a2\u30d9\u5148\u751f (CV: \u963f\u90e8\u548c\u5e83) (@abee2) 2018\u5e7410\u67085\u65e5 \u5148\u65e5\u66f8\u3044\u305f\u8a18 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/9452\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,100],"tags":[],"class_list":["post-9452","post","type-post","status-publish","format-standard","hentry","category-dev","category-smalltalk"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=9452"}],"version-history":[{"count":3,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9452\/revisions"}],"predecessor-version":[{"id":9455,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/9452\/revisions\/9455"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=9452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=9452"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=9452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}