Codes, pedagogy and knowledge