Learning to code

 
Screenshot of Rory's web app The app Rory made in his course

Who needs to learn to code? You might think that a knowledge of computer programming is much like plumbing or car maintenance - something of use only to those who are going to make a living from that trade. But suddenly coding is cool - the government is listening to those calling for it to be taught in schools, and executives are signing up for courses.

I spent a day on one such course run by an organisation called Decoded. It aims to give people who will probably never need to code for a living a basic grounding, so that by the end of the day they have an insight into what is involved.

So at 09:00 one morning I found myself in a very attractive loft apartment in East London sipping coffee with 10 executives from an advertising firm. Most of them had more experience of coding than me - mainly because they were young enough to have messed around with a BBC Micro or a ZX Spectrum as teenagers.

But, like me, they were unlikely to need these skills in their daily work. So what was the point of sending them on a course with a pretty hefty price tag? They gave me various reasons, from gaining a better understanding of consumers to shaping their firm's digital future, but I thought Tom, a young strategy director from the agency, put it best: "There's this phrase, the geeks will inherit the earth.... when they do I want to be talking the same language as them."

Screenshot of Rory's code Rory's work in progress

Then it was down to work - first a potted history of code, with an emphasis on the importance of web languages. Alasdair Blackwell, our main tutor and the co-founder of Decoded, is an impressive evangelist for the open web, and the need to give ourselves the tools to make best use of it.

He argues that today's teenage iPad users, far from being digital natives, actually have less understanding of what makes computers tick than his generation, who got their hands dirty with machines like the BBC Micro. "The children playing on iPads, I actually despair for them because they're just using software, not creating software for themselves."

Next, we started to learn about the building blocks of the web apps we were each going to make - HTML, the basic coding language for any website, CSS, for the style and appearance of the site, and Javascript, to make it come to life with all manner of audiovisual tricks.

HTML and CSS seemed reasonably easy to grasp, but by the time we got to Javascript - with its elements, functions and curly brackets - the brain of someone last in a classroom more than three decades ago was beginning to protest. Then we were each set to work to start building our own web apps, which needed to have a location based element, and to work on a mobile phone as well as a computer.

Rory Cellan-Jones learns how to code

My idea, surprise surprise, was for a news app that would tell you about stories which happened in particular London locations as you arrived there. As we each followed the tutor through the various stages of HTML, CSS and Javascript, there were cries of pain from around the table, as our creations failed to respond in the way we intended.

But what we learned is that coding is a collective pursuit - together with our tutors Alasdair and Monique, we debugged each other's sites so that by 17:30 we all had something basic but rather clever.

By using some smart piece of Javascript found in the free online library Jquery, we had inserted some geolocation code on our sites. This meant that a computer - or phone - using the apps at the door of our current East London location would be served an extra piece of content. As each of us refreshed our web apps, and found that they worked, a ripple of quiet satisfaction spread around the room.

Now, like most of those on the Decoded course, I rather doubt that I will ever be asked to code as part of my job - and a few days after the course I'm already struggling to remember which brackets go where in Javascript.

But I came away from my day of coding exhilarated by the experience and with new insights into the development of our digital world. So maybe one day soon I will sit down and start coding for real.

 
Rory Cellan-Jones Article written by Rory Cellan-Jones Rory Cellan-Jones Technology correspondent

Game on - e-sports takes off in the UK

Video game competitions, watched by audiences in stadiums and on TV, are taking off in Britain.

Read full article

More on This Story

More from Rory

Comments

This entry is now closed for comments

Jump to comments pagination
 
  • rate this
    0

    Comment number 135.

    Delighted that there is a genuine push for programming in schools, there really is no downside as far as i can see. Highly sought after technical skills taught from a young age, wonderful idea. All due respect to latin but kids only have to look around the room to find a practical use for this stuff and a well paid job waiting at the end too.

  • rate this
    0

    Comment number 134.

    @anotherfakename #130

    Everything you write relates to low-level languages only, that is why I am calling shenanigans on your supposed mobile platform development.

  • rate this
    0

    Comment number 133.

    @ Hacky 131
    Couldn't agree more (I use RAD techniques myself). But it would be much more efficient if customers (and managers!) had the same sort of understanding of software projects that they do of building a house. In software people are always choosing the colour of the wallpaper before sorting the foundations, then wanting to know why there's no cellar when you are finishing off the garden

  • rate this
    0

    Comment number 132.

    Learn code to better use Office products. I write small macros all the time to speed up what I do (like splitting a document into individual files, one per section break for instance). The power of VBasic is incredible.

  • rate this
    0

    Comment number 131.

    Al 113
    I've come to the conclusion that business problems can never be fully understood in advance. This is the basis of RAD. Build quickly, get people using the prototypes and then additional user stories come to light. I favour spiral over waterfall. This only works well with tools for rapid build and the organisational maturity to refactor when necessary.

 

Comments 5 of 135

 

Features & Analysis

BBC Future

(Getty Images)

The Ebola detector in your pocket

How a familiar object could change diagnosis Read more...

Programmes

  • Ade Adepitan at the ColosseumThe Travel Show Watch

    The challenge of providing disabled access at Europe’s leading ancient monuments

BBC © 2014 The BBC is not responsible for the content of external sites. Read more.

This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.