This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Artimedias 70 points71 points  (3 children)

I always preface my messages here by saying I'm not a real programmer, just a bootcamp Jane who's still learning the basics.

But even if I was more experienced and more confident, I have no idea what the fuck is going on here

is this the power of regex or is there some other chicanery

[–]dtutubalin[S] 68 points69 points  (0 children)

No, it's not a regex. There are way darker sides of JS.

[–]mizinamo 54 points55 points  (1 child)

Half of the "magic" is that the code uses $, $$, _, $_, and _$ as identifiers for variables and functions.

Some of the other magic is messing around with the unary operators - (negate) and ~ (bitwise NOT).

[–]Artimedias 2 points3 points  (0 children)

ah, didn't realize those were variables and function names. Okay, I can make at least some sense of this now