Magic (programming)
In computer programming, an abstraction that handles complex tasks while hiding that complexity to present a simple interface
In the context of computer programming, magic is an informal term for abstraction; it is used to describe code that handles complex tasks while hiding that complexity to present a simple interface. The term is somewhat tongue-in-cheek, and often carries bad connotations, implying that the true behavior of the code is not immediately apparent.
Nº Q6730587 ★★
Uncommon · Knowledge
Magic (programming)
In computer programming, an abstraction that handles complex tasks while hiding that complexity to present a simple interface
In the context of computer programming, magic is an informal term for abstraction; it is used to describe code that handles complex tasks while hiding that complexity to present a simple interface. The term is somewhat tongue-in-cheek, and often carries bad connotations, implying that the true behavior of the code is not immediately apparent.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
In the context of computer programming, magic is an informal term for abstraction; it is used to describe code that handles complex tasks while hiding that complexity to present a simple interface. The term is somewhat tongue-in-cheek, and often carries bad connotations, implying that the true behavior of the code is not immediately apparent. For example, Perl's polymorphic typing and closure mechanisms are often called "magic". The term implies that the hidden complexity is at least in principle understandable, in contrast to variants which describe arcane techniques that are deliberately hidden or extremely difficult to understand. However, the term can also be applied endearingly, suggesting a "charm" about the code. The action of such abstractions is described as being done "automagically", a portmanteau of "automatically" and "magically".
Text: Wikipédia, CC BY-SA 4.0. ·
Related cards
-
Magic number (programming)
Sequence of bytes used to identify or indicate the format of a file
Nº Q284099 ★★★
Not listed
-
Homoiconicity
Feature of a programming language that a program written in it can be manipulated as data using the language, and thus the program's internal representation can be inferred just by reading the program itself
Nº Q925488 ★
Not listed
-
Computer language
Formal language used in communication with a computer
Nº Q629206 ★★
Not listed
-
P
Programming idiom
Recurring construct of code in some programming language
Nº Q490173 ★
Not listed
-
L
Leaky abstraction
Software abstraction that leaks details that it is supposed to abstract away
Nº Q6509341 ★
Not listed
-
High-level programming language
Programming language with strong abstraction from details of hardware
Nº Q211496 ★★★
Not listed