I’m trying to learn a bit more about the eval
code, but I’ve heard that it’s somewhat possibly “harmful” (according to Wick Editor) so can someone just break done to me what eval exactly is? Is it somewhat useless to use, or does it have some WICKed magic that I must master?
don’t you know its a black magic that is only able to be mastered by the most skilled wizards! jokes aside maybe google it idk i’m very bad at coding.
i looked around and i think the code can break security.
eval is a JavaScript command to run a string passed in. It’ll run whatever text is passed in, which is insecure because who knows what the user may type.
Several languages supports eval. I remembered using something very similar in flash. If you want to compile/execute a string submitted by your end user in the app at run time, you could use eval. Keep in mind, eval is expensive, so it could decrease your app performance if that something that matters for a specific app.
Thanks guys, I’ll try to avoid using it, of course after I finish
practicing with it. I promise to use this power for good.
That’s what the text editor Wick uses says, not Wick itself. I’ve seen that exact same text editor before.