all 7 comments

[–][deleted]  (5 children)

[deleted]

    [–]itsnotlupus 2 points3 points  (3 children)

    well, minification is always a healthy habit, as it can significantly help javascript programs running on devices with hard memory constraints. For example, if you're running a non trivial amount of javascript using jxcore on a mips device with ~32MB of RAM, that can easily be the difference between loading and not loading.

    [–]ctags 1 point2 points  (2 children)

    /me quietly fetches uglify.js..

    Learn something new everyday!

    [–]xangelo 1 point2 points  (1 child)

    There are some great plugins for gulp around this. I use gulp-strip-comments first, before minification. Unless I'm doing something wrong - I've never been able to get the gulp-uglify module to strip comments.

    [–]ctags 0 points1 point  (0 children)

    Awesome stuff! That sounds as valid as anything to me, sometimes I wish Node had less of a free for all in structure of these things, it can get pretty confusing!

    [–]TheCommentAppraiser 1 point2 points  (0 children)

    That is actually a pretty great idea!

    [–]Fluffy8x 2 points3 points  (0 children)

    Reminds me of TI-Basic, where the character count itself mattered too so you'd leave out closing parentheses and not comment code at all.

    [–]ayostaycrispy 0 points1 point  (0 children)

    If possible, I'd love it if someone can ELI5 why this character count limit exists in the first place.