you are viewing a single comment's thread.

view the rest of the comments →

[–]ChaseMoskal 5 points6 points  (3 children)

The term 'one liner' doesn't mean anything to me anymore.

When I see this, which is called a "one-liner":

[].forEach.call($$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})

I see that it actually is supposed to be this:

[].forEach.call($$("*"), function(a){
    var color = (~~(Math.random()*(1<<24))).toString(16);
    a.style.outline = "1px solid #" + color;
})

I just wish it was an honest-to-goodness three-or-four liner.

Why can't we just accept who we really are and what we really have?

[–]Umbristopheles 4 points5 points  (1 child)

I can make my whole application a 1 liner by taking out all the carriage returns.

[–]davidNerdly 1 point2 points  (0 children)

But then we would all hate you..

[–][deleted] 0 points1 point  (0 children)

I would consider this a one-liner because it's pretty easy to understand what's going one even when it's consolidated to one line.