Joined February 2012
·
Posted to
PHP logical operators as expressions
over 1 year
ago
This is just an example of short-circuit evaluation in php, but as everyone has been saying, this will just damage the readability of your code, and also steps over the understanding of it. The boolean operators are intended to be used in conjunction with boolean evaluations, and not all of your operations evaluate to boolean, so they feel a bit out place. I won't deny the "cleverness", but if one of the programmers on my team shows me code with this syntax I'll say "very clever, now write it again".
Posted to
Quitting OS X Terminal Windows
over 1 year
ago
@loisaidasam 's solution if fairly the cleanest, and it's right there in the application's settings.
Achievements
43 Karma
136,443 Total ProTip Views
Komodo Dragon
Have at least one original repo where Java is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
T-Rex
Have at least one original repo where C is the dominant language
This doesn't feel semantic at all, why not using <li>?