For October’s InDay I had the opportunity to teach high school students how to code. This was the first time I was mentoring/teaching someone who had no prior programming experience.
One method that I found useful while teaching was to introduce the programming concepts with the help of the mathematical concepts on which they are built. Variables and functions in programming languages are (more or less) based on the same constructs in mathematics and it was easy to draw parallels between the two.
To explain how to generate a random number within a range I used the Google Chrome Console to show how function composition in programming works.
Overall this was a challenging and rewarding experience. I need to find more volunteering opportunities that are coding related.