Pragmatism and pedagogy