Difference between revisions of "Category:Code that uses voodoo"
m |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Image:Voodoo.svg|200px|right]]In computer programming, "Voodoo", or "Magic" refers to techniques that are secret or not widely known, and may be deliberately kept secret. The [[w:Jargon File|Jargon File]] makes a distinction between "deep magic", which refers to code based on esoteric theoretical knowledge; "black magic" (voodoo), which refers to code based on techniques that appear to work but which lack a theoretical explanation; and "heavy wizardry", which refers to code based on obscure or undocumented intricacies of particular hardware or software. | |
+ | |||
+ | At Organic Design the most common of these is extending an instance's class at [[w:runtime|runtime]] after it has been instantiated, a technique that can be used to provide additional [[MW:Manual:Hooks|hooks]] into existing code without requiring modification of code-base files. Another is reading in a class file, declaring it under a different name, then sub-classing that with a new class of the original name - that way the environment uses the new extended class thinking it's the original one. | ||
+ | |||
+ | == See also == | ||
+ | *[http://rosettacode.org/wiki/Add_a_variable_to_a_class_instance_at_runtime Adding a variable to a class instance at runtime] ''- demonstrated in many different languages'' | ||
+ | |||
[[Category:Extensions]] | [[Category:Extensions]] |
Latest revision as of 19:17, 1 October 2015
In computer programming, "Voodoo", or "Magic" refers to techniques that are secret or not widely known, and may be deliberately kept secret. The Jargon File makes a distinction between "deep magic", which refers to code based on esoteric theoretical knowledge; "black magic" (voodoo), which refers to code based on techniques that appear to work but which lack a theoretical explanation; and "heavy wizardry", which refers to code based on obscure or undocumented intricacies of particular hardware or software.
At Organic Design the most common of these is extending an instance's class at runtime after it has been instantiated, a technique that can be used to provide additional hooks into existing code without requiring modification of code-base files. Another is reading in a class file, declaring it under a different name, then sub-classing that with a new class of the original name - that way the environment uses the new extended class thinking it's the original one.
See also
- Adding a variable to a class instance at runtime - demonstrated in many different languages
Pages in category "Code that uses voodoo"
The following 6 pages are in this category, out of 6 total.