Mott Hall III School Career Day
Helping out at Career Day at Bronx middle school
As Calvin was leaving the classroom, he turned back toward me with a smile and a glint in his eye. That was all I needed to see to know: the lesson had made an impression. As a teacher, nothing beats that feeling. I could sense he wanted to say something; he was looking for the right words. He then told me about a website he knew of where he wanted to try more on his own.
A friend at the Mott Hall III in the Bronx invited me to speak at the school’s career day this past Friday. I may have been slow to respond, but as a former teacher myself, I knew this was one opportunity I could not pass up.
Mott Hall III is a not a typical public school school. At some 320 students in grades 6 through 8, it’s small. Students are admitted by application. There is an air of curiosity and respect that accompanies a school where students are held to high expectations.
I was one of about twenty speakers to speak with four groups of students for 30 minutes at a time. I wasn’t sure how to present until I learned I was offered the computer lab. I couldn’t resist: I would have students write a computer program.
I put together a Keynote presentation to introduce the lesson and help students see why software engineers and computer programmers were relevant as builders of software for familiar technology like iPhone Apps, Facebook and Twitter. A segment I called “Computers are Dumb”, (common responses: Wha’? and Huh?) was inspired by my colleague Noah Davis, who had done something similar for his own career day talk. I pretended to be a walking, listening computer who needed instructions to get around desks from one side of the room to the next. I let students shout out instructions which initially led to some comical results. “Turn right” resulted in my spinning in an endless loop and “Walk straight” usually ended with me walking into a wall or chair. The point: computers will do exactly what we tell them to do, not always what we think we’re telling them to do. This was important prelude to the playground.
We then turned our attention to the computers. Once I had led them to the playground and introduced a few commands, within minutes, they were hiding, showing, fading, and moving “Player 1″, a 50×50 pixel image of me. To keep things simple, I made jQuery available and loaded the console textarea with the player one selector prefilled:
I would demonstrate a command like
and many students were quick to discover the complements:
.fadeIn(). The real challenge for the ten minute lesson was to move player 1 from one corner of the screen to the “Home” area.
I could have used the
.animate() function with options for manipulating
left properties, but to simplify things, I wrote a more literal plugin
$.fn.move(x, y) as a wrapper around
move command simple takes x and y coordinates as paramaters&emdash;something I could tell was familiar for them from their math classes. While
move added the x and y values to their current position,
$.fn.goto(x, y) was introduced to jump directly to a place on (or off) the screen. It wasn’t long before the experimentation had begun. A few students figured out how to run multiple commands at once, some even used chained commands on their own:
$("#player1").fadeOut().fadeIn(). Students were soon signaling me to show how they had led player 1 home.
At each of the sessions, I never seemed to leave enough time for questions. I encouraged students to return to this blog to post comments. I hope I was able to make computer programming a little more accessible and enjoyable for these motivated students in the Bronx. I may have even caught a bit of the teaching bug again myself.