Re:Magic is often used to describe confusing code
by braythwayt on Saturday March 26, 2016 @09:32AM
(#11365587)
I hope you appreciate that the word “magic” is relative to the person using it. For you, it’s self-modifying code. But to someone else, it’s mapping. And to a third person, it’s monkey-patching. And to a fourth person, it’s lazy evaluation of infinite streams, and to a fifth person, it’s ...
Re:Magic is often used to describe confusing code
by jschwartzi on Saturday March 26, 2016 @11:03AM
(#11365875)
...and the point is that magic is a word that's often used alongside readability to deride source code that isn't done the way you would have done it.
Re:Magic is often used to describe confusing code
by braythwayt on Saturday March 26, 2016 @11:24AM
(#11365974)
“Intuitive equals familiar”—Jef Raskin
For instance if a method relied on it being modified at run time by it's caller to ensure sanity of it's input I would call it magical.