How principled coders outperform the competition