DEV Community

Discussion on: Six (Dirty) Ways to shorten your Javascript

Collapse
 
mindplay profile image
Rasmus Schultz

If you want to help, don't teach developers to write unreadable source code - teach them to use a minifier instead.

I realize a minifier won't be able to use all of these patterns, but that's really no excuse either - if you know how to improve it, consider contributing new transforms to a minifier instead. (Probably a few of these would need to be marked as "unsafe" though...)