We establish a general theorem which, given an arbitrary linear code, gener
ates a family of linear codes of larger lengths and higher dimensions. The
proof is based on a representation of the given linear code as a (generaliz
ed) algebraic-geometry code. Examples yielding many optimal linear codes do
cument the power of this theorem.