Algebraic Codes on Lines, Planes, and Curves