Where do you stand on “magic” within languages and frameworks?

Let’s discuss the concept of magic — what are your opinions?

Magic (programming)

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…


This content originally appeared on DEV Community and was authored by Ben Halpern

Let's discuss the concept of magic — what are your opinions?

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 black magic and deep magic, 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".


This content originally appeared on DEV Community and was authored by Ben Halpern


Print Share Comment Cite Upload Translate Updates
APA

Ben Halpern | Sciencx (2022-07-20T19:07:15+00:00) Where do you stand on “magic” within languages and frameworks?. Retrieved from https://www.scien.cx/2022/07/20/where-do-you-stand-on-magic-within-languages-and-frameworks/

MLA
" » Where do you stand on “magic” within languages and frameworks?." Ben Halpern | Sciencx - Wednesday July 20, 2022, https://www.scien.cx/2022/07/20/where-do-you-stand-on-magic-within-languages-and-frameworks/
HARVARD
Ben Halpern | Sciencx Wednesday July 20, 2022 » Where do you stand on “magic” within languages and frameworks?., viewed ,<https://www.scien.cx/2022/07/20/where-do-you-stand-on-magic-within-languages-and-frameworks/>
VANCOUVER
Ben Halpern | Sciencx - » Where do you stand on “magic” within languages and frameworks?. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/07/20/where-do-you-stand-on-magic-within-languages-and-frameworks/
CHICAGO
" » Where do you stand on “magic” within languages and frameworks?." Ben Halpern | Sciencx - Accessed . https://www.scien.cx/2022/07/20/where-do-you-stand-on-magic-within-languages-and-frameworks/
IEEE
" » Where do you stand on “magic” within languages and frameworks?." Ben Halpern | Sciencx [Online]. Available: https://www.scien.cx/2022/07/20/where-do-you-stand-on-magic-within-languages-and-frameworks/. [Accessed: ]
rf:citation
» Where do you stand on “magic” within languages and frameworks? | Ben Halpern | Sciencx | https://www.scien.cx/2022/07/20/where-do-you-stand-on-magic-within-languages-and-frameworks/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.