Rewrite (programming)

In computer programming, rewrite is the act of authoring new source code to replace an existing codebase from scratch (a total rewrite) or to significantly modify an existing codebase such that the resulting code maintains essential aspects of the original. The essential aspects to be maintained for a rewrite effort may differ but often include behavior, performance and interface. The result of the effort is also called a rewrite.