3 ms·
Those variable names though.
by jedicoder107 10y ago
Those variable names though.
- tuananh 10y agoit's beautified from obfuscated code. it's understandable.
- kristofferR 10y agoBeautifiers should use something like Gfycat uses for their URLs instead, that would be prettier and simpler/faster to understand. > Most randomly generated URLs look like this: G1XeD4SwlHReDA. We thought it would be fun to do it differently. Our URLs follow the nomenclature: AdjectiveAdjectiveAnimal This is enough to give us a namespace of billions, while also letting humans write them easier. You’re welcome! https://gfycat.com/about https://gfycat.com/about
- stincity 10y agoWouldn't that just make the code more confusing? You'd get some random name that doesn't mean anything to what its intended purpose is. Keeping the simple 'a-z' scheme the beautifier does allows people to not use the variable name as a descriptor of what it handles.
- heatish 10y agoWhen build tools run an uglifier on your code this is what the variables comes out as. Takes all your logically named variables and shortens them like a-z. They can make it "beautified" by un-minifying (not all on 1 line) but you can't get their original variables name without the original source.
- thomasfoster96 10y agoI think they may have been referring to the names right down at the bottom - a minifier wouldn't use "NWvQtGjjfQX" without having used all the two, three four or five letter variable names.
- arcatek 10y agoIt's probably not so much a minifier than an obfuscator.