Rhodri Marsden: A real brain teaser – will I ever be able to crack code?

Geek Mythology

Many of us who consider ourselves technologically adept know next to nothing about how that technology works. It's embarrassing, but it's important to admit.

We pat ourselves on the back for having the remarkable ability to navigate our way through three levels of sub menus on an HD television, but barely ever give a thought to the heroic souls who constructed them by labouring over lines of code.

All we're good at, really, is using graphical interfaces that were designed and built by people cleverer than us. Even taking a peek at the code behind the website this article is published on is enough to make most of us wince and hurriedly close the window.

That ignorance, fear and antipathy that we display towards code is one of the main reasons for stopping the rot and getting children immersed in scripts and strings. From Code Club, the UK network of coding clubs for young people aged between nine and 11, to CoderDojo, a global movement of free clubs, we're hearing an increasingly strident message that was best summed up by Steve Jobs: "[Everybody] should learn how to program a computer, because it teaches you how to think."

Of course, if you've ever marvelled at the slick game-play in Call Of Duty or the impressive features of Final Cut Pro, you'd probably consider the prospect of writing anything useful somewhat daunting. But it is possible, even with minimal experience.

This was recently demonstrated by a homeless man in Manhattan by the name of Leo Grand; after being offered free coding lessons by a passing commuter, he seized the opportunity, and this week his first app – 3,621 lines of code that facilitate car pooling in New York – has been launched on iOS and Android to much acclaim.

Right, then. I've got a fairly analytical mind, I like maths and logic problems, I've built the odd website, so surely I could emulate Leo's achievement? This week, code.org is running Hour Of Code, an initiative to get people to take an initial 60-minute coding lesson; 5 million people worldwide have committed to participate, and I'm one of them.

On Monday, I decided to tackle an hour-long online lesson in Python, but I quickly became bogged down in syntax and started to wonder whether I'd plunged in at an optimistically high level.

Writers like myself may take pride in being pernickety and precise about punctuation, but if you get it wrong the worst thing that can happen is that someone will give you a pedantic rollocking in the comments section.

In Python, however, if you fail to indent lines, you miss spaces or use the wrong brackets, the program just won't run. That's a recipe for deep frustration for anyone like me who's a) impatient and b) hasn't taken a lesson in anything for years.

The Codecademy app, which has also been facilitating hour-long tutorials on coding basics this week, gave me an easier ride, but I still found myself in the absurd position of mumbling that the programming language "isn't logical". Which is like telling Raymond Blanc that his recipes "don't work". But I will persist. Give a man a program and he'll be amused for a day; teach a man how to program and he'll be happily debugging subroutines for a lifetime.

coderdojo.com

codeclub.org.uk

codecademy.com

python.org

twitter.com/rhodri

Life and Style
ebookNow available in paperback
ebooks
ebookPart of The Independent’s new eBook series The Great Composers
News
Keith Fraser says we should give Isis sympathises free flights to join Isis (AFP)
news
Life and Style
Google celebrates the 126th anniversary of the Eiffel Tower opening its doors to the public for the first time
techGoogle celebrates Paris's iconic landmark, which opened to the public 126 years ago today
News
Cleopatra the tortoise suffers from a painful disease that causes her shell to disintegrate; her new prosthetic one has been custom-made for her using 3D printing technology
newsCleopatra had been suffering from 'pyramiding'
News
people
Arts and Entertainment
Coachella and Lollapalooza festivals have both listed the selfie stick devices as “prohibited items”
music
Sport
Nigel Owens was targeted on Twitter because of his sexuality during the Six Nations finale between England and France earlier this month
rugbyReferee Nigel Owens on coming out, and homophobic Twitter abuse
Latest stories from i100
Have you tried new the Independent Digital Edition apps?
Independent Dating
and  

By clicking 'Search' you
are agreeing to our
Terms of Use.

ES Rentals

    iJobs Job Widget
    iJobs Gadgets & Tech

    Recruitment Genius: Senior Web Designer / Front End Developer

    £28000 - £32000 per annum: Recruitment Genius: This fast expanding web managem...

    Ashdown Group: Trainee Consultant - Surrey / South West London

    £22000 per annum + pension,bonus,career progression: Ashdown Group: An establi...

    Ashdown Group: Trainee Consultant - Surrey/ South West London

    £22000 per annum + pension,bonus,career progression: Ashdown Group: An establi...

    Ashdown Group: Recruitment Consultant / Account Manager - Surrey / SW London

    £40000 per annum + realistic targets: Ashdown Group: A thriving recruitment co...

    Day In a Page

    No postcode? No vote

    Floating voters

    How living on a houseboat meant I didn't officially 'exist'
    Louis Theroux's affable Englishman routine begins to wear thin

    By Reason of Insanity

    Louis Theroux's affable Englishman routine begins to wear thin
    Power dressing is back – but no shoulderpads!

    Power dressing is back

    But banish all thoughts of Eighties shoulderpads
    Spanish stone-age cave paintings 'under threat' after being re-opened to the public

    Spanish stone-age cave paintings in Altamira 'under threat'

    Caves were re-opened to the public
    'I was the bookies’ favourite to be first to leave the Cabinet'

    Vince Cable interview

    'I was the bookies’ favourite to be first to leave the Cabinet'
    Election 2015: How many of the Government's coalition agreement promises have been kept?

    Promises, promises

    But how many coalition agreement pledges have been kept?
    The Gaza fisherman who built his own reef - and was shot dead there by an Israeli gunboat

    The death of a Gaza fisherman

    He built his own reef, and was fatally shot there by an Israeli gunboat
    Saudi Arabia's airstrikes in Yemen are fuelling the Gulf's fire

    Saudi airstrikes are fuelling the Gulf's fire

    Arab intervention in Yemen risks entrenching Sunni-Shia divide and handing a victory to Isis, says Patrick Cockburn
    Zayn Malik's departure from One Direction shows the perils of fame in the age of social media

    The only direction Zayn could go

    We wince at the anguish of One Direction's fans, but Malik's departure shows the perils of fame in the age of social media
    Young Magician of the Year 2015: Meet the schoolgirl from Newcastle who has her heart set on being the competition's first female winner

    Spells like teen spirit

    A 16-year-old from Newcastle has set her heart on being the first female to win Young Magician of the Year. Jonathan Owen meets her
    Jonathan Anderson: If fashion is a cycle, this young man knows just how to ride it

    If fashion is a cycle, this young man knows just how to ride it

    British designer Jonathan Anderson is putting his stamp on venerable house Loewe
    Number plates scheme could provide a licence to offend in the land of the free

    Licence to offend in the land of the free

    Cash-strapped states have hit on a way of making money out of drivers that may be in collision with the First Amendment, says Rupert Cornwell
    From farm to fork: Meet the Cornish fishermen, vegetable-growers and butchers causing a stir in London's top restaurants

    From farm to fork in Cornwall

    One man is bringing together Cornwall's most accomplished growers, fishermen and butchers with London's best chefs to put the finest, freshest produce on the plates of some of the country’s best restaurants
    Robert Parker interview: The world's top wine critic on tasting 10,000 bottles a year, absurd drinking notes and New World wannabes

    Robert Parker interview

    The world's top wine critic on tasting 10,000 bottles a year, absurd drinking notes and New World wannabes
    Don't believe the stereotype - or should you?

    Don't believe the stereotype - or should you?

    We exaggerate regional traits and turn them into jokes - and those on the receiving end are in on it too, says DJ Taylor