Jump to content

Derivative code

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Eejai42 (talk | contribs) at 19:44, 23 September 2016 (Created a first draft of a page about derivative code, which is the parts of the code which are not hand code. Linked this page to both the transcompiler and hand code pages (both of which had already been created).). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Derivative code is source code which has been derived entirely from one or more other machine readable file format. If Recursive Transcompiling is used in the development process, some code will survive all the way through the pipeline from beginning to end, and then back to the beginning again.

This code is, by definition, derivative code. The following procedure can be used to easily test if any source code is derivative code or not.

  1. Delete the code in question
  2. Build (or compile) the project

If the build process simply replaces the source code which has been deleted, it is (obviously) code which has been derived from something else and is therefore, by definition, derivative code.

If the build process fails, and a human being needs to re-create the deleted code by hand, this is hand code.

Ironically, the transcompilers and other tools which create derivative code, are usually themselves, hand code.