![Page 1: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/1.jpg)
Kids,Ruby,Fun!
Introduction of the
Smalruby and Ruby
Programming
Shounendan
Kouji Takao,The Ruby Programming Shounendan,RubyConf 2014, 11.19.2014
![Page 2: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/2.jpg)
Kody : Kouji Takao• CRuby commiter
(Readline module)• A leader of the
Ruby ProgrammingShounendan
Shounen = Boys & Girls
Dan = Organization
![Page 3: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/3.jpg)
Kody : Kouji Takao• Engineer of NaCl• Network Applied
Communication Laboratory
• [email protected]@takaokouji_enFacebook
![Page 4: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/4.jpg)
Made possible by
NaCl
![Page 5: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/5.jpg)
NaCl is inMatsue, Shimane, Japan
http://en.wikipedia.org/wiki/File:Japan_location_map_with_side_map_of_the_Ryukyu_Islands.svg : Maximilian Dörrbecker (Chumwa) CC-BY-SA 3.0CC by SA
![Page 6: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/6.jpg)
NaCl is
SIer
![Page 7: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/7.jpg)
NaCl has
30Rubyists
![Page 8: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/8.jpg)
NaCl has
6Commiters
![Page 9: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/9.jpg)
Pleasevisit
NaCl♪
![Page 10: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/10.jpg)
6 years ago,
![Page 11: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/11.jpg)
Started to Teach Ruby for youth
![Page 12: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/12.jpg)
MotivationsRuby City MATSUE
Project
Teach my son Ruby
![Page 13: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/13.jpg)
Matsue MayerMasataka MatsuraImage from http://www.matsuura-m.jp/
Ruby City MATSUE Project
• By Matsue-city• Promote IT Business• Increase Rubyists• Find Ruby teachers
![Page 14: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/14.jpg)
Teach my son Ruby• Love Ruby
• Love IT Engineering• Make materials for
teaching Ruby to youth
![Page 15: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/15.jpg)
Find Ruby teachers
Make materials for teaching
Ruby to youth+
Started to Teach Ruby for youth
![Page 16: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/16.jpg)
Since then
1% / yearin Matsue-city
![Page 17: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/17.jpg)
A Programmer’s
Best Friend
Ruby is
and
Kids?
![Page 18: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/18.jpg)
• Typing• English• Ruby Syntax
Problems
![Page 19: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/19.jpg)
Recently,Increased
Programming Education
![Page 20: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/20.jpg)
20,000 Teachers
“Should be a compulsory subject!”
By President Obama
![Page 21: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/21.jpg)
Compulsory educationfor ages 5-16
Concept of algorithmsBuilding and Debugging
It is Practical!
![Page 22: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/22.jpg)
HOUR OF CODE by Code.org27,230 events around the world
http://hourofcode.com/
1,000 Teachers100,000,000
Kids
![Page 23: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/23.jpg)
Japan
![Page 24: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/24.jpg)
Government
![Page 25: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/25.jpg)
Compulsory Education
Junior high school / Since 2012
![Page 26: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/26.jpg)
Sensor
Motor
Measurement and Control
![Page 27: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/27.jpg)
1 Computer / 1 Student
~ 2020Ex) Distributed tablets to all 6-12 ages in Saga-city
about 4,000 students
![Page 28: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/28.jpg)
Company
![Page 29: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/29.jpg)
http://pegpeg.jp/
PEG• Joint project of
CANVAS and Google
• CANVAS hold many workshops for children
• Distributed 5,000 Raspberry Pi
![Page 30: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/30.jpg)
TENTO
http://www.tento-net.com/
Life is Tech!
http://life-is-tech.com/
Programming education as a Service
= PaaS ;-)
Individualizedinstruction
Boot camping
![Page 31: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/31.jpg)
Why many kids programming
workshops are held?
Great tools and materials!
![Page 32: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/32.jpg)
by MIT Media Lab
http://vimeo.com/65583694
http://scratch.mit.edu/
![Page 33: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/33.jpg)
Combinationof blocks
= Program
Blocks= Instructions
![Page 34: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/34.jpg)
English Japanese
Internationalization
![Page 35: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/35.jpg)
Easy to run
Press
Run
![Page 36: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/36.jpg)
• Typing
• English
• Ruby syntax
Problems
➡Blocks
➡ Internationalization
➡ Combination of blocks
![Page 37: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/37.jpg)
Smalruby(smɔ́Rːrúːbi)
Ruby + Scratch
Hi,I’m Hatti!
![Page 38: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/38.jpg)
Demo
![Page 39: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/39.jpg)
Smalruby(smɔ́Rːrúːbi)
GitHub:smalruby/smalruby-editor
![Page 40: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/40.jpg)
Scratch Features
• Instruction Blocks• Characters and
Stages• Easy to Run
![Page 41: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/41.jpg)
Ruby
Instruction Block
![Page 42: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/42.jpg)
( 歩動かす =
move)
Instruction Block
Ruby
![Page 43: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/43.jpg)
Kids wanted to code directly!
![Page 44: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/44.jpg)
Emacs icon : http://ochiailab.blogspot.jp/2013/04/powerlineelemacs.htmlVim Icon : http://www.vim.org/index.php
Sublime Text icon : http://blog.livedoor.jp/nonprofessional/archives/1004031653.html
![Page 45: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/45.jpg)
Now
![Page 46: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/46.jpg)
Experimental programming class using Smalrubyfor 288 studentsin this AprilPhoto from http://business.nikkeibp.co.jp/article/report/20141001/271963/
![Page 47: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/47.jpg)
Madeeducational materialby both teachers who are not IT engineers!
![Page 48: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/48.jpg)
1 Teacher
Students
![Page 49: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/49.jpg)
MATSUE CITY
Ruby classes in whole municipal Junior high school
By 09.04.2014/local news paper(Sanin Chuo Shinpo)
![Page 50: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/50.jpg)
91%Junior high school
students will Learn Ruby
![Page 51: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/51.jpg)
The RubyProgramming Shounendan
![Page 52: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/52.jpg)
“Promoting the joy of programming to many kids. “
“Building internet safety awareness for kids through programming!”
![Page 53: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/53.jpg)
Ruby programming events for kidsand parents
Introducing Ruby,once a month
![Page 54: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/54.jpg)
![Page 55: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/55.jpg)
![Page 56: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/56.jpg)
![Page 57: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/57.jpg)
![Page 58: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/58.jpg)
![Page 59: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/59.jpg)
![Page 60: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/60.jpg)
![Page 61: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/61.jpg)
CoderDojo Matsuehttps://coderdojo.com
Free Ruby computer programming club
for Kids,once a month
![Page 62: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/62.jpg)
Ruby Programming Shounendan
Youth Sports Club
≒ Team
CoachTourna-
ment
![Page 63: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/63.jpg)
Welcome
Developers
![Page 64: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/64.jpg)
Visual editor•Rails•Blockly
![Page 65: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/65.jpg)
http://code.google.com/p/blockly/
Easy to Use• Less Dependency• Small Runtime Size• Simple Installation
![Page 66: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/66.jpg)
RuntimeWindows:DXRuby
Mac or Linux:dxruby_sdl, Ruby/SDL
![Page 67: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/67.jpg)
Smalrubot• Arduino• Dino
GitHub: austinbv / dino
![Page 68: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/68.jpg)
Blockly.Blocks['motion_move'] = { init: function() { this.setColour(208); this.interpolateMsg(‘move%1steps', ['STEP', ['Number'], Blockly.ALIGN_RIGHT], Blockly.ALIGN_RIGHT); this.setInputsInline(true); this.setPreviousStatement(true); this.setNextStatement(true); }};
Define Instruction Block
/app/assets/javascripts/blocks/motion.js.coffee.erb( 歩動かす =
move)
![Page 69: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/69.jpg)
Blockly.Ruby['motion_move'] =function(block) { var arg = Blockly.Ruby.valueToCode(this, 'STEP', Blockly.Ruby.ORDER_NONE); return 'move(' + arg + ')';};
Generate Ruby from Block
/app/assets/javascripts/blocks/motion.js.coffee.erb
![Page 70: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/70.jpg)
( 歩動かす =
move)
Instruction Block
Ruby
![Page 71: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/71.jpg)
“Blockly’s XML”
Ruby
( 歩動かす =
move)
![Page 72: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/72.jpg)
class MotionMove < CharacterMethodCall blocknize '^\s*' + CHAR_RE + 'move\((.+)\)\s*$', statement: true, inline: true
def self.process_match_data(md, context) md2 = regexp.match(md[type]) add_character_method_call_block( context, md2[1], new, STEP: md2[2]) true endend
Translate Block from Ruby
![Page 73: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/73.jpg)
Conclusion• Teaching Ruby Motivations• Ruby City MATSUE Project• Teach my son Ruby
• Smalruby• For over 8 years old
• Ruby Programming Shounendan• Learning Ruby Organization for
Boys & Girls
![Page 74: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/74.jpg)
A Programmer’s
Best Friend
Ruby is
and
Kids
![Page 75: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/75.jpg)
NOTQ & A
![Page 76: (beta version) KIDS, RUBY, FUN! - Introduction of the Smalruby and RubyProgramming Shounendan - in RubyConf 2014](https://reader036.vdocument.in/reader036/viewer/2022062406/559222d51a28abbe068b465c/html5/thumbnails/76.jpg)
THANK YOU
Smalruby (smɔ́Rːrúːbi)
GitHub: smalruby/smalruby-editorEmail: [email protected]
Twitter: @smalruby