Teaching Computer Science: Applause

 

Applause

We did an interactive exercise to write a simple program that prints numbers and the squares of the numbers — a for loop, basically. We went around the room with each student providing one element of the loop and me writing them on the whiteboard: for, open paren, int, i, equals, 1, semicolon, etc.

I thought it went very well. The timing was good and it was obvious that most of the class understood what was going on. When we got to a girl who’s usually ahead of everyone and knows all the answers, what we needed from her was “curly bracket” but what she actually said was “semicolon” and there was a collective groan from the rest of the class.

When the last student said “close curly bracket,” there was spontaneous applause, immediately, before I even wrote it on the board. It wasn’t like a concert at the high school auditorium where a piece ends and there’s a gap — “Is it over? Do we clap now?” It was like a classical concert with a high-brow audience that knows exactly when the piece ends and when to clap.

Leave a Reply

Your email address will not be published. Required fields are marked *