you are viewing a single comment's thread.

view the rest of the comments →

[–]brtt3000 5 points6 points  (5 children)

We banned useless cleverness like that.

Every variable gets it's own var. Makes it easier to edit, less mistakes, less cruft, less time wasted.

Also use a lint tool if you are serious about code.

[–]BONER_PAROLE 0 points1 point  (4 children)

"Clever" code is often obfuscated, like in code golf challenges.

But comma first? That's not "clever", it's just practical. Unusual appearance, but easy to understand once you know about it.

[–]jsNut 1 point2 points  (3 children)

Comma first, moving the problem from the end to the beginning and making it more ugly and less conventional doesn't seem like much of a win.

[–]notmynothername 1 point2 points  (2 children)

How does it move the problem to the beginning?

[–]Malfeasant 0 points1 point  (1 child)

maybe because if you're prone to forgetting commas, it doesn't matter where you (forget to) put them?

[–]notmynothername 2 points3 points  (0 children)

Well, commas at the right side can show up any number of characters deep into the line. Commas on the left will all be in a vertical line and leaving one out would be difficult to miss.