37

According to the tag wiki for :

Describes things known as "magic strings" or "magic numbers". These are hard coded variables that cannot be changed at runtime.

However, questions tagged with use it in another context: Describing things they don't understand. The tag doesn't add any meaningful information to the post.

Examples:

12
  • 18
    Let's burn it ! ..Or cast an evil spell on it so it goes away forever :-) Commented May 22, 2015 at 12:14
  • 23
    There's no place for magic, only for more magic. Commented May 22, 2015 at 13:16
  • 2
    What is the color of magic? Commented May 22, 2015 at 18:20
  • 4
    NO! As the wiki states, the tag is for magic numbers, strings and methods. The later is a real feature in PHP and Python. However, there are some questions misusing the tag, and there are some related tags that probably need to be cleaned up ([python-magic] and [ipython-magic]). Commented May 22, 2015 at 20:02
  • 9
    [python-magic] could refer to half of Python. The whole language is built out of hash tables and magical pixie dust.
    – Kevin
    Commented May 22, 2015 at 20:24
  • 5
    @JasonMArcher I don't see anything in that tag description about magic methods.
    – jwodder
    Commented May 22, 2015 at 20:24
  • 1
    @Kevin It actually refers to a library named python-magic. Commented May 22, 2015 at 20:36
  • @jwodder Yes, the wiki needs to be updated, or we could create a [python-magic-method] tag. Commented May 22, 2015 at 20:37
  • But... it even has a wikipedia article!
    – user3079266
    Commented May 22, 2015 at 20:42
  • 1
    I'd rename it to "magic constants" or the like...
    – rogerdpack
    Commented May 22, 2015 at 21:10
  • 2
    Of course there's a place for magic Commented May 23, 2015 at 4:01
  • 1
    Note that "magic packets" are a real thing, relevant to wake-on-lan
    – Ben Voigt
    Commented May 24, 2015 at 21:29

1 Answer 1

42

Before you wield your pitchforks and light your torches, there's a few other pieces here.

  • is a valid tag which relates to magic methods of any language. Questions that are tagged with and explicitly discuss magic methods should be retagged to .
  • and both exist in the system and have some relevance in the programming space (notably, how to avoid them and what they mean in the context of a static analysis tool like PMD). If any question appears like it'd fit in those categories, I don't have any qualms about a retag to those tags.

At all times, clean up the questions you're retagging. Don't just remove the tag and call it good; it's a bit more involved than that.

7
  • 5
    I support this. Commented May 23, 2015 at 20:50
  • 2
    I've updated the tag wiki for magic so it is pretty explicit that it should not be used, and outlines some alternative tags. I've also edited a modest number of questions tagged with magic so that they are not so tagged. There are about 50 left to do. (I think someone else may also be, or may have been, at work on the retagging.) Commented May 24, 2015 at 20:48
  • 2
    Someone else definitely helped; nearly 40 magic questions magically lost their magicality in the last 24 hours or so without me doing a thing — well, yes, I waved a wand about, but I don't think it really works! However, as of right now, there are no questions left tagged magic. It should vanish as a tag soon. Commented May 26, 2015 at 5:26
  • @JonathanLeffler Hah, magic waved the wand, and came back.
    – Bhargav Rao Mod
    Commented Sep 5, 2018 at 21:10
  • @BhargavRao: we're down to about 16 now — the magic is fading! FWIW: magic is a term used deep in the bowels of the Perl XS API (and internally) — I've not seen any questions about that, though, on SO. It's a bit too specialized. Commented Sep 5, 2018 at 21:31
  • @JonathanLeffler, ah cool. There's ipython-magic, for those which are tagged [jupyter] or [python].
    – Bhargav Rao Mod
    Commented Sep 5, 2018 at 21:33
  • I mean, since we're all coordinating here, it was easy enough to intervene. Seems like it'd be tempting to delete that question but I don't think seeing if libmagic can be cross-platform is inherently poor.
    – Makoto
    Commented Sep 5, 2018 at 21:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .