News for hackers. Stuff that matters.
Re:30 seconds of code: Curated list of useful JavaScript sni... by armandososa on Monday December 11, 2017 @02:15PM (#15899461)
Is brevity (in terms of kb) important for this snippets? If not, I think having more explicit variable names (`string` or even `str` instead of `s`) would be better for the purpose of understanding them in less than 30 seconds.

Otherwise, I enjoy reading some of them.

Re:30 seconds of code: Curated list of useful JavaScript sni... by ng12 on Monday December 11, 2017 @02:32PM (#15899600)
It shouldn't be. The programmer should be able to decide, if they care they'll already be using UglifyJS or some other minimizer.
Re:30 seconds of code: Curated list of useful JavaScript sni... by azorba1987 on Monday December 11, 2017 @02:19PM (#15899488)
I am not the owner of the project, but from my point of view, brevity should be quite important. Some names could be more descriptive, though.
Re:30 seconds of code: Curated list of useful JavaScript sni... by natecavanaugh on Tuesday December 12, 2017 @12:58AM (#15903302)
I agree with you, brevity, as far as quantity of code required to accomplish the goal is concerned, but too many times brevity is confused for compactness, which to me, is the opposite of what you would want with these.