  We give a new construction of linear codes over finite fields on higher
dimensional varieties using Grothendieck's theory of residues. This generalizes
the construction of differential codes over curves to varieties of higher
dimensions.
