2 ms·
I prefer 0 == x, because you can skim code faster and the first few words serve as a documentation. Compare: if (TIMEOUT ... if (NO_SETUP ... if (RE
by 1718627440 1y ago
I prefer 0 == x, because you can skim code faster and the first few words serve as a documentation. Compare:
if (TIMEOUT ...
if (NO_SETUP ...
if (REQUESTING
if (PENDING
if (DEACTIVATED
if (USER_INVALID ...
to:
if (object.action.send_timestamp ...
if (object.state == ...
if (object.state == ...
if (object.state == ...
if (object.state == ...
if (database.users_query (USER_BY_STATE, ...
- rileymat2 1y agoExcellent case for a case.