The use of scalar diffraction theory is the basis of a fundamental part of diffractive optics. We prefer to call this part digital holography. The consideration of different parts of diffractive optics on the basis of the diffraction theory seems to be a useful criterion to discuss fundamental characteristics of diffractive elements. In digital holography a coding theory has been developed. The theory itself and its consequences are briefly described.