Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

319 рядки
16KB

  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <head>
  5. <style>
  6. #header
  7. {
  8. background: #2BA6E3;
  9. padding: 0.7em;
  10. text-align: left;
  11. }
  12. #header a
  13. {
  14. color: white;
  15. text-decoration: none;
  16. padding: 0.5em 1em 0.5em 1em;
  17. }
  18. .news_item
  19. {
  20. background: #FFFFFF;
  21. width: 720px;
  22. padding: 1em;
  23. margin-top: 2em;
  24. margin-bottom: 2em;
  25. border: 1px solid #E0E0E0;
  26. text-align: left;
  27. }
  28. .news_item_contents
  29. {
  30. color: #444;
  31. line-height: 1.5em;
  32. }
  33. .news_item_date
  34. {
  35. margin-bottom: 2em;
  36. color: #aaa;
  37. }
  38. body
  39. {
  40. background: #FAFAFA;
  41. }
  42. code, pre
  43. {
  44. font-family: monospace, serif;
  45. font-size: 1em;
  46. color: #7f0a0c;
  47. }
  48. figure
  49. {
  50. margin: 0px;
  51. padding: 0px;
  52. }
  53. img
  54. {
  55. width: 720px;
  56. }
  57. html
  58. {
  59. font-family: sans-serif;
  60. }
  61. a
  62. {
  63. color: #3A91CB;
  64. text-decoration: none;
  65. }
  66. #lang
  67. {
  68. float: right;
  69. }
  70. figcaption
  71. {
  72. color: #aaa;
  73. }
  74. table
  75. {
  76. border-collapse: collapse;
  77. }
  78. table, th, td
  79. {
  80. border: 1px solid #aaa;
  81. padding: 0.5em;
  82. margin-top: 0.5em;
  83. margin-bottom: 0.5em;
  84. }
  85. </style>
  86. </head>
  87. <body>
  88. <center>
  89. <div id="header">
  90. <a href="../../en/news/index.html">News</a>
  91. <a href="../../en/page/games.html">Games</a>
  92. <a href="../../en/page/about.html">About</a>
  93. <div id="lang">
  94. <a href="teaching-kids-to-program.html">EN</a>
  95. <a href="../../ru/news/teaching-kids-to-program.html">RU</a>
  96. </div>
  97. </div>
  98. <h1>In the news</h1>
  99. <div class="news_item">
  100. <h2 class="news_item_title">
  101. <a href="teaching-kids-to-program.html">Teaching kids to program</a>
  102. </h2>
  103. <p class="news_item_date">
  104. 2019-02-04 00:00
  105. </p>
  106. <div class="news_item_contents">
  107. <figure>
  108. <img src="../../images/2019-02-04_teaching-kids-to-program-team.png" alt="Students and teachers" /><figcaption>Students and teachers</figcaption>
  109. </figure>
  110. <p>In this article, Michael shares his experience of teaching kids to program.</p>
  111. <p>Here’s what he covers:</p>
  112. <ul>
  113. <li>organization of the learning process</li>
  114. <li>learning plan</li>
  115. <li>memory game</li>
  116. <li>development tools</li>
  117. <li>lessons</li>
  118. <li>results and plans</li>
  119. </ul>
  120. <p><strong>Organization of the learning process</strong></p>
  121. <p>The learning process is conducted as part of corporate social responsibility: a company provides a room with equipment and connects employees that want to try themselves in the role of teachers with employees that want their kids educated. All this is done voluntarily.</p>
  122. <p>Potential teachers are divided into groups so that each group contains three teachers: experienced one and two novice ones. Such a group of three teachers leads a group of students. Students are divided into groups by age and skills.</p>
  123. <p>I participated in the program as a teacher for the second time in 2018. The kids were around ten years old. Our group was active from October to December of 2018 each Saturday, 10:00-12:00. Using my position as a teacher, I’ve also brought my wife in as a student.</p>
  124. <p><strong>Learning plan</strong></p>
  125. <p>The first time I participated in the program, our group taught kids rather mindlessly: we were coming up with simple tasks to explain different operators. By the end of the course we had nothing concrete to evaluate, analyze, and share.</p>
  126. <p>This second time I decided we are going to create a memory game with kids. I decided to consider the course successful if by the end of the course each kid would be able to create a simple memory game from scratch in an hour.</p>
  127. <p>To achieve that, we were recreating the same game from scratch each lesson. I’d like to stress that we did not use personal accounts to save progress. Our task was to save the skill of game creation in the head, not a PC.</p>
  128. <p><strong>Memory game</strong></p>
  129. <p>Let’s see what the memory game is.</p>
  130. <p><strong>1)</strong> In the simplest case we have 16 cards, only 8 of them are unique, the rest 8 are duplicates of the unique ones.</p>
  131. <figure>
  132. <img src="../../images/2019-02-04_teaching-kids-to-program-all-cards-face-up.png" alt="Cards face up" /><figcaption>Cards face up</figcaption>
  133. </figure>
  134. <p>As you can see, we only have two cards with a cat, only two cards with a dog, etc..</p>
  135. <p><strong>2)</strong> At the start we shuffle the cards and place them with their faces down.</p>
  136. <figure>
  137. <img src="../../images/2019-02-04_teaching-kids-to-program-all-cards-face-down.png" alt="Cards face down" /><figcaption>Cards face down</figcaption>
  138. </figure>
  139. <p><strong>3)</strong> The first game player turns a pair of cards.</p>
  140. <figure>
  141. <img src="../../images/2019-02-04_teaching-kids-to-program-first-pair.png" alt="A pair of cards" /><figcaption>A pair of cards</figcaption>
  142. </figure>
  143. <p><strong>4)</strong> If the cards differ they are once again turned face down.</p>
  144. <figure>
  145. <img src="../../images/2019-02-04_teaching-kids-to-program-all-cards-face-down.png" alt="Cards face down" /><figcaption>Cards face down</figcaption>
  146. </figure>
  147. <p><strong>5)</strong> The next player turns another pair of cards.</p>
  148. <figure>
  149. <img src="../../images/2019-02-04_teaching-kids-to-program-second-pair.png" alt="Second pair of cards" /><figcaption>Second pair of cards</figcaption>
  150. </figure>
  151. <p><strong>6)</strong> If the cards are the same, they are removed from the field.</p>
  152. <figure>
  153. <img src="../../images/2019-02-04_teaching-kids-to-program-remove-pair.png" alt="A pair of matching cards has been removed" /><figcaption>A pair of matching cards has been removed</figcaption>
  154. </figure>
  155. <p>The goal of the game is to remove all cards from the field. There’s no competition here so the game can be played alone.</p>
  156. <p>From one hand, the memory game is rather simple. From the other hand, the game implementation requires essential functionality each more or less complex game has:</p>
  157. <ul>
  158. <li>creation of items</li>
  159. <li>arrangement of items</li>
  160. <li>selection of items</li>
  161. <li>comparison of items</li>
  162. <li>removal of matching items</li>
  163. </ul>
  164. <p><strong>Development tools</strong></p>
  165. <p>We used Scratch as our development tool. <a href="https://scratch.mit.edu/">Scratch</a> is a great tool to teach kids to program because each action, each operation is represented graphically.</p>
  166. <p>For example, you can rotate a cat 360 degrees in 1 second using the following script:</p>
  167. <figure>
  168. <img src="../../images/2019-02-04_teaching-kids-to-program-cat-script.png" alt="Script" /><figcaption>Script</figcaption>
  169. </figure>
  170. <p>Here’s how it looks like in action:</p>
  171. <figure>
  172. <img src="../../images/2019-02-04_teaching-kids-to-program-cat-animation.gif" alt="Animation" /><figcaption>Animation</figcaption>
  173. </figure>
  174. <p>I’d like to stress that Scratch is a rather successful solution to represent code graphically. For example, a paid solution by SAP uses similar concept of cubes to program logic:</p>
  175. <figure>
  176. <img src="../../images/2019-02-04_teaching-kids-to-program-sap-ui.png" alt="SAP UI" /><figcaption>SAP UI</figcaption>
  177. </figure>
  178. <p>Users can only input values into predefined fields. If users want more functionality they have to resort to scripts.</p>
  179. <p>Personally, I have never witnessed any slowdown in Scratch, and there were many in SAP’s solution.</p>
  180. <p><strong>The first lesson</strong></p>
  181. <p>The first lesson was introductory, we didn’t use PCs.</p>
  182. <p>The plan was to:</p>
  183. <ol type="1">
  184. <li>Meet</li>
  185. <li>Play the memory game with cards</li>
  186. <li>Learn the concept of algorithm</li>
  187. <li>Detail the game’s algorithm</li>
  188. <li>Analyze the lesson</li>
  189. </ol>
  190. <p><strong>1)</strong> Meeting</p>
  191. <p>Both teachers and students stand in a circle. This equalizes everyone and makes everyone a team member.</p>
  192. <p>The first team member tells his name and why he decided to take the course. The second team member and the rest first repeat the name and the story of each previous team member before telling their own names and stories.</p>
  193. <p>Here’s how it looks like:</p>
  194. <ol type="1">
  195. <li>John: “My name is John, I am going to study Scratch because my father forces me to”</li>
  196. <li>Alex: “This is John, he’s doing Scratch because his father wants him to do it. My name is Alex, and this is my fourth year with Scratch”</li>
  197. <li>Ann: “That’s John, his parents force him to do Scratch. This is Alex, he’s a Scratch veteran. And I’m Ann, a novice teacher, so I’m going to learn together with you all”</li>
  198. </ol>
  199. <p>Such a format of meeting has the following objectives:</p>
  200. <ul>
  201. <li>Getting to know each other
  202. <ul>
  203. <li>Each team member should know other team members by name</li>
  204. </ul></li>
  205. <li>Common space
  206. <ul>
  207. <li>Everyone is in the circle, not at a working desk, this prevents distraction of kids by PC games</li>
  208. </ul></li>
  209. <li>Equality
  210. <ul>
  211. <li>Both teachers and students are in the same circle, this equalizes everyone as a team member without hierarchy</li>
  212. </ul></li>
  213. <li>Attention
  214. <ul>
  215. <li>Each team member should listen carefully to be able to correctly repeat what others said</li>
  216. </ul></li>
  217. <li>Feedback
  218. <ul>
  219. <li>Each team member should be as clear as possible when expressing thoughts, otherwise nobody would be able to repeat them</li>
  220. </ul></li>
  221. <li>Fun
  222. <ul>
  223. <li>Memorization problems produce lots of laughter</li>
  224. </ul></li>
  225. </ul>
  226. <p><strong>2)</strong> Memory game with cards</p>
  227. <ol type="1">
  228. <li>Take 8 pairs of the same cards from two decks of cards</li>
  229. <li>Place the cards in 4 x 4 grid, faces down</li>
  230. <li>Students stand up around single table</li>
  231. <li>Each student, one by one, turns a pair of cards
  232. <ul>
  233. <li>If cards match, they are taken off the field</li>
  234. <li>If cards differ, they are once again turned face down</li>
  235. </ul></li>
  236. </ol>
  237. <p>Students are eager to play tabletop games. During the game party teachers say out loud each step in the game’s algorithm.</p>
  238. <p>After a couple of parties it’s time to find out what algorithm is.</p>
  239. <p><strong>3)</strong> The concept of algorithm</p>
  240. <ol type="1">
  241. <li>Ask students first, hear them out to find out their level</li>
  242. <li>Correct what students say if they were close to an expected answer</li>
  243. <li>Ask students to write an algorithm to move a man from “stands outside a room” state into “sits and works at a PC” one</li>
  244. </ol>
  245. <p>Students like to go to blackboard and write, so we ask each student to come and write a single step of the algorithm at a time. The most active student should execute the algorithm by following it strictly.</p>
  246. <p><strong>4)</strong> The algorithm of the game</p>
  247. <p>Ask students to compose the game’s algorithm. Again, let students come to the blackboard and add one step of the algorithm at a time. Once the algorithm is ready, play the game with cards once again. Now, each student should say the algorithm’s step he executes.</p>
  248. <p>Here’s how it looks like:</p>
  249. <ol type="1">
  250. <li>John: “Place 16 cards faces down”</li>
  251. <li>Alex: “Turn a pair of cards”</li>
  252. <li>Paul: “If the cards differ, turn them faces down again”</li>
  253. <li>Dan: “Turn another pair of cards”</li>
  254. <li>Mike: “If the cards match, take them off the field”</li>
  255. </ol>
  256. <p><strong>5)</strong> Analyze the lesson</p>
  257. <p>That’s it for the first lesson. Teachers finally have time to discuss the lesson: discuss the kids, approaches to shy and active kids, plan next lessons.</p>
  258. <p>We had the following decisions:</p>
  259. <ol type="1">
  260. <li>Arrange students so that active ones sit next to shy ones as “active-shy-active-shy-etc” so that we don’t end up with two groups of shy and active students at different sides of a room, which would hamper productivity.</li>
  261. <li>Only accept accurate answers from students because active students like to wriggle, which hampers discipline.</li>
  262. </ol>
  263. <p><strong>The second and the third lessons</strong></p>
  264. <p>We were beginning each lesson with the same meeting: we would stand up in a circle, tell our names and what we did. Those who did nothing should have said why. Just as before, everyone should first repeat what previous team members said.</p>
  265. <p>We spent the second lesson to create requirements for an item of the playfield and then create the item in Scratch. This was moderately successful.</p>
  266. <p>We spent the third lesson trying to create 16 items and arrange them in 4x4 grid. We failed miserably because we could not explain coordinate system to students. It became apparent that lesson plans were only plans, reality had its own demands.</p>
  267. <p>We saw two ways to approach the problem:</p>
  268. <ol type="1">
  269. <li>Keep on studying the coordinate system risking not to get the game done by the end of the course</li>
  270. <li>Change the game requirements so that coordinate system is not necessary</li>
  271. </ol>
  272. <p>We went the second way because, after all, we’re not a school, our goal was to teach kids to create the game, i.e., use skills in practice, not theory. That’s why we replaced 4x4 grid with a circle of 16 items.</p>
  273. <p>This solution sparkled a few thoughts in my head:</p>
  274. <ol type="1">
  275. <li>One can often find a simpler path to solve an issue</li>
  276. <li>This path is simpler to understand, albeit less flexible</li>
  277. <li>One can go the harder path to increase flexibility much later when it becomes absolutely necessary</li>
  278. <li>Simplification moves one closer to the goal, complexification moves one in the opposite direction</li>
  279. </ol>
  280. <p><strong>The fourth and the rest of the lessons</strong></p>
  281. <p>The fourth lesson marked the end of coming up with requirements in class because doing so started to take too much time. We chose practice over theory once again to meet the deadline. This time all requirements were conducted before the lesson. Still, nobody read them.</p>
  282. <p>We spent the fourth and the fifth lessons to create 16 items in circle, select a pair of items and match them.</p>
  283. <p>We started recreating complete game from scratch on the sixth lesson. Each time students were recreating complete game faster and faster. On the eighth lesson we introduced a leaderboard to track how fast each student recreates a specific part of the game.</p>
  284. <p><strong>The last lesson</strong></p>
  285. <p>When the last lesson approached everyone was able to create the memory game from scratch more or less independently in two hours.</p>
  286. <p>Here’s the leaderboard of the last lesson (names are hidden):</p>
  287. <figure>
  288. <img src="../../images/2019-02-04_teaching-kids-to-program-leaderboard.png" alt="Leaderboard" /><figcaption>Leaderboard</figcaption>
  289. </figure>
  290. <p>The leaderboard is in Russian, here are the captions translated:</p>
  291. <ul>
  292. <li>Name</li>
  293. <li>Circle of items</li>
  294. <li>Selection of pairs</li>
  295. <li>Hide all</li>
  296. <li>Hide a pair</li>
  297. </ul>
  298. <p>Here you can witness the creation of the memory game from scratch by the fastest student: in just half an hour.</p>
  299. <iframe width="560" height="315" src="https://www.youtube.com/embed/WlA193S3SPY" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
  300. </iframe>
  301. <p><br/></p>
  302. <p><strong>Results and plans</strong></p>
  303. <p>The results surpassed my expectations:</p>
  304. <ul>
  305. <li>three students made it in an hour or faster</li>
  306. <li>two students made it in an hour and a half or faster</li>
  307. </ul>
  308. <p>This year I plan on doing another round of the memory game recreation. However, I’m going to replace Scratch with Opensource Game Studio tools: the students will use Lua, Git, and GitHub Pages.</p>
  309. <p>That’s it for sharing Michael’s experience of teaching kids to program.</p>
  310. </div>
  311. </div>
  312. </center>
  313. </body>
  314. </html>