Learning the errors of coding