7 ms·
Teaching Ruby to High School Girls
- nopassrecover 17y agoI am surprised how well that went down to be honest - they must have been some bright kids! I don't think you'd have as much luck with first year uni students in a three hour segment. Great work and I love the extension ideas (including USB drives!)
- pterodactyl 17y agoI had similar success teaching Shoes to fourth & fifth graders in a series of 3 1-hour lessons. I liked Sarah Mei's lesson even better, but for another datapoint, here's my report: http://teachingkids.railsbridge.org/2009/07/20/fifth-grade-shoes.html http://teachingkids.railsbridge.org/2009/07/20/fifth-grade-s... I think kids find programming more natural than adults do. They are used to learning many strange and arbitrary rules :)
- Nervetattoo 17y agoI'm amazed as well that it went that well. And its really great to hear that they weren't put off, lets hope the coming generation can help improve the genre ratio within programming workplaces. I like you approach, and choosing shoes probably was a good choice. Instant gratification should be #1 goal in classes like this, its all about building excitement, which it seems you nailed. "Another girl dug into the documentation she had seen me use, and figured out how to use the color picker to let the user select a color for the line!" I'm impressed. Figuring out manuals can at times be hard even for us who use them on a day-to-day basis.
- clofresh 17y agoHere's a crazy idea. Let's teach Ruby in intro programming classes instead of C, so as not to frighten away 90% of the population with pointer dereferencing and segfaults. You should teach C eventually to make them appreciate high level languages, but just not right away.
- eru 17y agoA few institutions teach e.g. Python, Scheme or Haskell as a first language. I agree C is a horrible first language.
- jcromartie 17y agoC would be great compared to C++, which my high school and my wife's non-CS engineering department taught as intro languages.
- Goladus 17y agoIt's not a crazy idea at all, nor is it even a new idea (see BASIC, Pascal, etc.), but it is not appropriate in all cases. I would never recommend trying to teach C to a group of high school kids that were otherwise indifferent to computers (eg not curious tech-nerds). Teaching methods and knowing your audience are important, too like recognizing that most of your class is bilingual and making an analogy that would be useful and relevant to them. I once explained Computer Science in a nutshell to my sister --a pianist, one of those self-proclaimed not-good-at-math people, but someone I know and communicate with very well-- in about 45 minutes; starting with binary logic and circuits and putting it all together with and ending with high level languages and the internet. She didn't retain it all of course but I pointed her at the Head First HTML/CSS book and she picked it up no problem.
- Shamiq 17y agoIt could help that Head First HTML/CSS is wonderfully written for someone who basically knows how to use a computer.
- bitwize 17y agoI think they should learn something like Z80 assembler. Get them used to the idea that computation on a von Neumann architecture occurs within a one-dimensional array of fixed-width, integer-addressed memory cells. When they are used to that, they can move onto things like C. A perfect geek toy for kids would be, to me, something about the size and form factor of a cellphone with a QWERTY keyboard. There'd be a switch on the front such that in one position it functions just like a graphing calculator, and in the other position it behaves more like a KIM-1 computer, letting you craft machine language routines for it directly. There'd be a low-level monitor of sorts that would let you examine memory contents, assign breakpoints, etc. and maybe some simple I/O routines to load and store programs from the attached flash storage. Otherwise it's a 1970s era hobbyist computer, except it has loads of memory, a sweet color display, an ARM CPU and you can fit it in your pocket.
- DanielStraight 17y agoTotally awesome. It's so cool to hear such great success stories about teaching programming, especially to those who are unlikely to take it up otherwise. I wish I could upvote this 100 times.
- pbhjpbhj 17y agoInstead of just having the program files on USB memory stick could you have a had a custom bootable linux environment instead - then getting the environment set up would just be a case of plugging in to a PC and booting up. Sometimes getting to the point where you start programming can be hard. Just a thought.
- brandnewlow 17y agoI'd say it's one of the biggest barriers to entry out there. Getting a dev environment set up for anything other than hacking a Wordpress template is non-trivial for most. I use the stuff at PortableApps.com quite often with consulting clients who need Firefox/Audacity/Gimp in a hurry. Could there be a portable Ruby/Python/Django dev setup that could get a novice going quickly without having to install a bunch of files?
- RyanMcGreal 17y agohttp://www.instantdjango.com/ http://www.instantdjango.com/
- lamby 17y agoI work on Debian Live, a framework for building customised live systems (we also make "official" live images as a special case). Something like this is easy to make and maintain using it.
- callahad 17y agoWhen it comes to pedagogy, the sigils and syntax of Ruby have always bothered me. The author notes the girls having trouble with dark red versus darkred, or getting the hash syntax right. I imagine a number of them wondered why "center" and "xx-large" went inside quotation marks, while saddlebrown did not. Furthermore, special string values like "center" and "xx-large" somewhat undermine the teacher's assertion that quotations demarcate "a sort of free zone for text." Are there better languages or tools for this task? Has anyone here tried to teach programming to non-programmers using a visual language like Scratch or a simpler language like Scheme or Basic? How did it go? Shoes is an incredible platform, I just wish the underlying language had a more immediately comprehensible syntax. (PLT-Shoes, anyone?)
- WilliamLP 17y ago> simpler language like Scheme I really think Scheme is only simpler if you have a really atypical kind of mind.
- callahad 17y agoActual development in Scheme is a bit mind-bending, but sexps are wonderfully simple. (fn arg1 arg2 ... argn) Add quoting, and you're pretty much done explaining the language's syntax. What sort of facilities can you build on top of that foundation to create an easy, accessible learning environment like Shoes?
- WilliamLP 17y agoThe average high-school girl might not be able to instantly see the elegance of the idea that functions, programs, data structures, numbers, etc. are all interchangeable and that it all can be represented recursively with lists all the way down. (High school girls who have read Hofstadter, maybe.) They might be able to understand "later, rinse, repeat", or making a cake by making three layers, and then making the frosting, where each becomes a separate modular and reusable problem.
- 17y ago
- stevenbedrick 17y agoThe key to this (lovely) story, IMHO, is the iterative nature of the lesson. Each step was very small, built on the previous one, and resulted in clearly visible changes to the program. For novices, this is absolutely vital- especially in a classroom environment like this. Now, re: the appropriateness of Ruby's somewhat-odd syntax for this lesson- I agree that there's definitely some weird arbitrary-seeming stuff in Ruby ("darkred" vs "dark red", etc.). But, let's face it- ALL languages have a few weird syntax things here and there, especially from the standpoint of a novice programmer. It's just part of the way that computers and programming languages work, and anybody who wants to write code is going to have to learn to deal with it. From my experience teaching novice programmers, however, I can tell you that a lot depends on HOW The problem is that, with most languages and in most intro lessons that I've seen, the student is exposed to all of them all at once without much context. I feel like the lesson described in this article did a great job of introducing the students to these language "features" one or two at a time and in a relatively sensible order. Eg, the students first got used to the idea that the computer was picky about upper- vs. lower-case letters. Next, they got their heads around the idea that attributes often involve a weird sequence of characters ("=>"). Then, they were exposed to the "identifiers-can't-have-spaces" rule. Etc., etc., etc. By the time they were exposed to each new oddity of the syntax, they'd had a chance to absorb the one that had gone before.