Pātuhitia tēnei: Algebraic coding theory and applications