Professional Documents
Culture Documents
(programming)
function magic()
{
global $somevariable;
echo $somevariable;
}
$somevariable = true;
magic();
function
noMagic($myvariable)
{
echo $myvariable;
}
$somevariable = true;
noMagic($somevariable);
Non-orthogonality
Variants
Deep magic refers to techniques that are
not widely known, and may be deliberately
kept secret. The number of such
techniques has arguably decreased in
recent years, especially in the field of
cryptography where security through
obscurity has been increasingly
abandoned in favour of security through
design which allows, and often
encourages, public scrutiny. The Jargon
File makes a distinction[5] between deep
magic, which refers to code based on
esoteric theoretical knowledge, and black
magic, which refers to code based on
techniques that appear to work but which
lack a theoretical explanation.
See also
Magic number (programming)
Black box
Cargo cult programming
Nothing-up-my-sleeve number
References
1. "perlguts – perldoc.perl.org" (http://perldoc.
perl.org/perlguts.html) . 5 October 2014.
Retrieved 18 February 2015.
Retrieved from
"https://en.wikipedia.org/w/index.php?
title=Magic_(programming)&oldid=1125196485"
This page was last edited on 2 December 2022, at
18:24 (UTC). •
Content is available under CC BY-SA 3.0 unless
otherwise noted.