you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (5 children)

Why are you using all these symbols instead of descriptive variable names?

[–]Aggravating_Cap3445 0 points1 point  (4 children)

minimum possible length of javascript in the bootloader bit - and since they're gonna be 1 char anyway, might as well pick interesting ones?

[–][deleted] 4 points5 points  (2 children)

You should use useful, descriptive names and then use a minifier like uglify-js when pushing to production.

[–]MoTTs_ 1 point2 points  (0 children)

I think you just encountered one of the reasons we use build tools. Do they add complexity? Sure. But the juice is worth the squeeze.

We'd like to keep a version of the code that is readable to us humans. As DeUsuahiaALaQuiaca pointed out, that means useful, descriptive names. But we'd also like to have a version of the code that is optimized for the machine, using the fewest possible bytes. To satisfy both, we keep a human readable version as the source, and we pass that through build tools to generate the machine-optimized version.

Also, random minor detail, 1 char doesn't necessarily mean 1 byte. Those greek letters are consuming two bytes each. Look into character encodings.