DEV Community

Discussion on: How would you teach a CompSci class?

Collapse
 
loufranco profile image
Lou Franco

One lesson I always remember from my first programming class (which was in middle school)

The teacher gave us the code for a fully working game -- he showed us how to run it and play it. It was a slot machine. Then he told us to change the code so that we always win.

It was fun seeing a lot of code (way more than I could possibly write at the time) and to figure out how to navigate it and find things. The resulting difference was pretty small. This was long before code editors and IDEs (1983 PET Basic), but the idea of finding things in large codebases has been an invaluable skill.