Let’s talk about the idea of magic — what are your opinions?
Within the context of pc programming, magic is a casual time period for abstraction; it’s used to explain code that handles complicated duties whereas hiding that complexity to current a easy interface. The time period is considerably tongue-in-cheek, and infrequently carries unhealthy connotations, implying that the true habits of the code shouldn’t be instantly obvious. For instance, Perl’s polymorphic typing and closure mechanisms are sometimes referred to as “magic”. The time period implies that the hidden complexity is a minimum of in precept comprehensible, in distinction to black magic and deep magic, which describe arcane methods which can be intentionally hidden or extraordinarily obscure. Nevertheless, the time period will also be utilized endearingly, suggesting a “allure” concerning the code. The motion of such abstractions is described as being performed “automagically”, a portmanteau of “robotically” and “magically”.