Programming and the English language

Tim Miles

Tim is the Editor of the Innovate My School Magazine. Before joining Innovate, he worked for five years in the software industry, occupying every role from tea-making technical support specialist to programmer and project director. He writes about a range of subjects, including education, technology, history and religion.

Follow @timkilometres

Website: timmiles.tumblr.com Email This email address is being protected from spambots. You need JavaScript enabled to view it.

In a MacTaggart lecture full of sound advice - reduce regulation, listen to the Victorians, ignore Alan Sugar - perhaps the most important suggestion made by Eric Schmidt was that computer science be taught properly in schools.

This means, as the Google Chairman pointed out, teaching children how to make computer programs rather than merely how to use them. 

But in an era when GCSE marks are awarded for linking a picture of a football to the word “le football”, can pupils really cope with the protean rigours of computer programming?

Of course they can. Today’s children grow up surrounded by software. They enjoy using it so much that they are largely self-taught. They eagerly upgrade to the latest mobile phone, even if this means learning to use an entirely new operation system. Such enthusiasm and confidence are the perfect foundations on which to learn to program.

The benefits of learning to program are even more convincing. The sense of pride one gets from writing working code and the triumph of resolving errors are rewarding in themselves. Factor in the colossal role of technology in today’s world – let alone tomorrow’s – and the case for teaching computer science looks as compelling as Google’s credit limit.

But there is a deeper reason for studying the languages of computers - one related to another of Dr Schmidt’s recommendations: that we bring art and science back together.

So long have these two lovers been estranged that the thought of a mathematician writing timeless fairytales, or of a painter inspired by geometric proportions, is inconceivable to the modern schoolchild, who sees specialism as the sole road to success.

On the face of it, maths and languages may seem quite different. But beneath the surface they surge with a common current. Learning to use the mathematical languages of computer programs can reveal how much the two disciplines complement each other, and demonstrates that logic is not limited to science, nor is art the only harbour of elegance. 

To truly know a language, one must master the rules and structures that make it work: its grammar. Learning this advanced logical apparatus propels one from a pool of phrases to a stream of fluency. The more grammatical constructions a person can use, the greater the range of expression available to him (and the greater his ability to understand the expression of others). Moreover, once you have grasped one language’s grammar, learning another’s is easy; even with languages from different families, the logical mindset acquired from studying the one will be of great help with the other.

All this is just as true of computer languages. But there is one key difference. Though it is possible to speak or write a passable piece of English or French with minor grammatical errors, a single mistake in software code can be disastrous. A computer cannot “get the gist” of what you are telling it. The instructions it receives must adhere strictly to the rules of the language they are written in.

Pupils who have learnt to write computer programs are therefore likely to approach both their native language and foreign languages by arming themselves with a thorough and accurate understanding of their grammar. The consequences of illogic and imprecision in their code will give them a keen eye for the same flaws in their writing. 

Thus they will see how logic and accuracy (qualities more often associated with the sciences) can make them better writers and linguists.

But programming isn’t purely about precision. Good code must be graceful as well as accurate. A well-written program – like an elegant piece of English – is one that conveys its meaning clearly and effectively. It avoids tautology and repetition, which increase the capacity for mistakes. It is as concise as possible: the less code there is, the easier it is to spot and rectify any internal illogic - and, in general, the fewer instructions a computer has to execute, the more quickly the program can run. It uses meaningful words rather than abstract ones, in order to make its operations clear.

In other words, good code adheres to the golden guidelines for good English set out by George Orwell, the Fowlers and others. Ugly code might function correctly, but it will be less valuable, more difficult for other programmers to understand, and harder to fix and modify when doing so becomes necessary. It will certainly not gain the admiration of one’s peers.

As pupils become better programmers, they will see that elegance (a quality more often associated with the arts) is as vital as accuracy to writing good, effective code.

Dr Schmidt’s suggestion is ambitious. Programming is no easy skill to master - for teachers or pupils. But it is worth it: for its own sake, and also to dispel the myth that maths and languages are mortal enemies, that logic and style cannot coexist. In doing this, learning to code can help to renew that star-crossed marriage between science and art, which gave the Mona Lisa her smile and took Alice into Wonderland.

Register for free to continue reading
Registration is a free and easy way to support us.
When you register, you'll join a grassroots community where you can:
• Enjoy unlimited access to articles
• Get recommendations tailored to your interests
• Attend virtual events with our leading contributors
Register Now
Login

Latest stories

  • How to handle stress while teaching in a foreign country
    How to handle stress while teaching in a foreign country

    Teaching English in a foreign country is likely to be one of the most demanding experiences you'll ever have. It entails relocating to a new country, relocating to a new home, and beginning a new career, all of which are stressful in and of themselves, but now you're doing it all at once. And you'll have to converse in a strange language you may not understand.

  • Is Learning Fun for You, Teacher?
    Is Learning Fun for You, Teacher?

    Over the weekend, my family of five went to an Orlando theme park, and I decided we should really enjoy ourselves by purchasing an Unlimited Quick Queue pass. It was so worth the money! We rode every ride in the park at least twice, but one ride required us to ride down a rapidly flowing river, which quenched us with water. It was incredible that my two-year-old was laughing as well. We rode the Infinity Falls ride four times in one day—BEST DAY EVER for FAMILY FUN in the Sun! The entire experience was epic, full of energizing emotions and, most importantly, lots of smiles. What made this ride so cool was that the whole family could experience it together, the motions were on point, and the water was the icing on the cake. It had been a while since I had that type of fun, and I will never forget it.

  • Free recycling-themed resources for KS1 and KS2
    Free recycling-themed resources for KS1 and KS2

    The Action Pack is back for the start of the brand new school year, just in time for Recycle Week 2021 on 20 - 26 September, to empower pupils to make the world a better and more sustainable place. The free recycling-themed resources are designed for KS1 and KS2 and cover the topics of Art, English, PSHE, Science and Maths and have been created to easily fit into day-to-day lesson planning.

  • Inspire your pupils with Emma Raducanu
    Inspire your pupils with Emma Raducanu

    Following the exceptional performance from British breakthrough star Emma Raducanu, who captured her first Grand Slam at the US Open recently, Emmamania is already inspiring pupils aged 4 - 11 to get more involved in tennis - and LTA Youth, the flagship
    programme from The LTA, the governing body of tennis in Britain, has teachers across the country covered.

  • 5 ways to boost your school's eSafety
    5 ways to boost your school's eSafety

    eSafety is a term that constantly comes up in school communities, and with good reason. Students across the world are engaging with technology in ways that have never been seen before. This article addresses 5 beginning tips to help you boost your school’s eSafety. 

  • Tackling inequality in EdTech
    Tackling inequality in EdTech

    We have all been devastated by this pandemic that has swept the world in a matter of weeks. Schools have rapidly had to change the way they operate and be available for key workers' children. The inequalities that have long existed in communities and schools are now being amplified by the virus.

  • EdTech review & The Curriculum Lab
    EdTech review & The Curriculum Lab

    The world is catching up with a truth that we’ve championed at Learning Ladders for the last 5 years - that children’s learning outcomes are greatly improved by teachers, parents and learners working in partnership. 

  • Reducing primary to secondary transition stress
    Reducing primary to secondary transition stress

    As school leaders grapple with the near impossible mission to start bringing more students into schools from 1st June, there are hundreds of thousands of Year 6 pupils thinking anxiously about their move to secondary school.

  • Generation Z and online tutoring: natural bedfellows?
    Generation Z and online tutoring: natural bedfellows?

    The K-12 online tutoring market is booming around the world, with recent research estimating it to grow by 12% per year over the next five years, a USD $60bn increase. By breaking down geographic barriers and moving beyond the limits of local teaching expertise, online tutoring platforms are an especially valuable tool for those looking to supplement their studies in the developing world, and students globally are increasingly signing up to online tuition early on in their secondary education schooling. 

  • Employable young people or human robots?
    Employable young people or human robots?

    STEM skills have been a major focus in education for over a decade and more young people are taking science, technology, engineering, and maths subjects at university than ever before, according to statistics published by UCAS. The downside of this is that the UK is now facing a soft skills crisis and the modern world will also require children to develop strong social skills as the workplaces are transformed by technology. 

In order to make our website better for you, we use cookies!

Some firefox users may experience missing content, to fix this, click the shield in the top left and "disable tracking protection"