There are four types of coding: Data compression (or source coding) Error control (or channel coding) Cryptographic coding. Line coding.