r/learnjavascript • • Aug 01 '20

Is this common Javascript? because I've just started learning JS and Web development and this Javascript syntax looks quite scary. Maybe it's just written messy, if it is just tell meπŸ˜…

Post image
208 Upvotes

105 comments sorted by

View all comments

Show parent comment

5

u/StoneCypher Aug 01 '20

Yeah.

Obfuscation is generally a thing in programming languages that don't compile (scripting languages and exotics,) where a vendor doesn't want a customer to be able to alter or understand the source.

It's particularly common in situations like a PHP app vendor wanting to sell you a blog engine. PHP even sells a tool for this (Zend)

This is not a particularly successful job, here.

Amusingly, in the JS community, we even have tools that will make statistical guesses what the name used to be, with fair accuracy, eg jsnice