Blog/Festival of Code 2016

For the last couple of weeks before the summer break, my company has been generously giving me time off to take up Code Club again at a nearby secondary school. When Kersytn, the Code Club organiser, told me that she was organising a Festival of Code for over the summer, I decided to take some time off to volunteer.

On Mentoring

Walking around the fourth floor of Wapping High on that first week of August felt like being in tall grass in a Pokémon game; every couple of steps led to an encounter with a child asking for advice. Festival of Code was an annual week-long coding event; it was started by Young Rewired State and is independently organised across the UK, aimed at nurturing programming skills and promoting the use of open data. The ages varied from 8 to 16 at my school, with a wide spectrum of programmimg experience.

In the space of half an hour, I was asked to fix some HTML and CSS, play 'spot the syntax error' in JavaScript or Python, debug some Scratch blocks and figure out how layers worked on a foreign image editor. Mentally, it was surprisingly intense due to the constant context switches, but very fun.

For syntax and keywords (usually the case in web development), pointing them in the right direction of what to Google was often enough. For complex development environments, e.g. in the case of a thirteen year old making a game in Unity, a more scientific approach was required. We tried to impart some software development good practices:

  1. Develop from a working program
  2. Minimise the number of unconfident changes introduced to the program in one iteration

The children doing visual programming (i.e. Scratch) tended to need less support than those working with text, where it was easy for newcomers to get bogged down on syntax, keywords and language quirks. The older children tended to be more self-starting; a pair of keen sixteen year olds needed only a crash course on how HTML tags and CSS selectors worked to be able to create a website by the end of week.

RE.AL's nutrition and health website (made in CodePen)
## On Technology

It's astonishing to reflect upon how much web technologies have lowered the barrier of entry to creating websites, games, music and applications. Having a starter development environment accessible through the browser sidesteps the need to install language runtimes locally. This is particularly encouraging in a school setting where the IT environment tends to be heavily locked down.

Visual programming has also reached an impressive level of sophistication; the main reason we tried to minimise the amount of time a child stayed blocked for was because the Scratch website had an impressive repertoire of playable game clones, all within a click away.

Many of the online platforms made it easy to publish and share the code; this was particularly useful when presenting at the end of the day; we could collect the public URLs from the majority of the children and demo them from one laptop.

Tools

The technology landscape moves fast, but here is a listing of the free applications that we found useful:

Akbar's Destroy the Food game (made in MIT Scratch)
## Final Thoughts

As one mentor observed: for many children, this would be their first time working on one project for a sustained period of time. Subjects wouldn't change every forty minutes and there were no teachers to dictate the flow of the class. Children were free to set up camp anywhere on the floor and majority of the day was unstructured. They were responsible for setting their own pace and managing resources, namely willpower and time.

It was a proud moment to watch them come through and present their work to their peers and the judges, but perhaps more rewarding was to see many of them enter 'the zone', that zenlike state of mind where external stimuli vanishes and only the problem remains.

It was a privilege to be working with Kerstyn and the other mentors; the breadth and depth they brought to the knowledge pool was indispensable. We had mentors jump in to help debug projects that had they hadn't previously worked on, fix broken projects fifteen minutes before demonstration time, and even during the judging.

Demo-ing a Scratch project on the last day
Reflecting on some shortcomings that technology could yet address: there is a huge gap in the technical skill and attention to detail required between programming in Scratch and programming with text, where a misplaced or missing `:`, `)`, `}`, `"` or `;` is the difference between a working and broken program. This is compounded by the children's unfamiliarity with where these characters are positioned on the keyboard.

Larger text-based programs broke more regularly and it would have been useful to revert them to a known working state, but the steep learning curve of source control tools made them prohibitive to introduce. Finally, although it's great to learn coding by building a product, there is a difference between learning tools and learning programming. The latter deserves to be taught formally.

I'll end this article with one final vignette: it's about the child who was using Unity to make a ball rolling game. The player navigates a ball past obstacles; touching one should cause the game to reset. The next piece of the puzzle was getting collision detection working, and we were testing it by printing statements.

In one iteration, we saw the correct console output from the ball hitting a wall. After cheering loudly, he suddenly went silent, and a few moments later began typing frantically. He had realised he knew what code was needed to be substituted in place of the debug statement to finish implementing the feature.

Thirty minutes later, I came back to see him proudly showing off the working prototype to his friends.