A step into a larger world

As Obi-Wan Kenobi once told Luke. (Clip)

That’s good, you have just taken your first step into a larger world

Recently at the Code Club i help out at, someone was struggling to work out why their python code didn’t run. He called me over, we looked at the code the project was asking him to write and what he had written. It looked right, no typos, no missing declarations or wrong variable names. We tried saving it and re-opening in case Trinket (online editor for python) had failed parsing it correctly, same result. So i called over another volunteer, they checked it…nope it looks right. A 3rd volunteer is free (we are lucky we have at least 4 of us every week), they checked it too. It looks right, so we decided to disregard the sample code and work out what we thought it should do. 2 changes later and after a corrected import statement and while loop parameter and it is fixed. SUCCESS!!! 10 lines of code, 2 bugs.

The student thanked us for our help and then proceeded to say

Those 2 bugs wasted 10 minutes of my life

I said “I know, welcome to coding in real life, you are lucky if it only takes 10 mins and never believe any sample code on the internet”.

“…you have just taken your first step into a larger world” 🙂