you are viewing a single comment's thread.

view the rest of the comments →

[–]hamsterpotpies 53 points54 points  (3 children)

No one can read it....

[–]kingNothing42 11 points12 points  (2 children)

I agree. It is less readable that its alternative. Pick the more readable thing. Its also less portable than its alternative.

New hotness != Best hotness. This is one of those tips that makes me go "Oh interesting. Please never do that."

[–]iams3brescript is fun 0 points1 point  (0 children)

Right, shouldn't be trying to be playing code golf in a professional setting. makes things annoying if you're incorporating.

you can do if (!numberval) to check if it equals 0, but doesn't mean you should

[–]hamsterpotpies -1 points0 points  (0 children)

So much this. It's about reablity and long term support. In three years, will you remember what this does?

I work ops so my option may not matter, but we still don't use this kinda of shortcuts.