Salam. Was reading articles on the internet, found that word "magic" is often used to say when something works, but is not clear how, for example:

  • How that program/engine/paste here works?
  • I do not know, it's "magic".

Could you please suggest good replacement word/expression so as not to use "it's magic".

  • 1
    how this is connected with Islam ?
    – Shafeek
    Commented Oct 21, 2023 at 17:18

1 Answer 1


It's fine to use the word "magic" for something you don't understand how it works. Nothing wrong with it.

In computer programs, "magic" or "magic number" is used to describe something which works but is difficult to understand or a number which is present in the logic but nothing describes why is it there.

Some good replacements would be:

  • Trick
  • Hack
  • Workaround
  • "Trick" is nicest, IMHO.
    – anon
    Commented Oct 2, 2016 at 12:31
  • If your question has been answered please mark it as accepted to remove it from pool of unanswered questions
    – Mustaghees
    Commented Oct 2, 2016 at 13:23
  • Sorry, Mustaghees, accepted.
    – anon
    Commented Oct 2, 2016 at 13:28

You must log in to answer this question.