Closed yuri-karadzhov closed 11 years ago
I strongly disagree on this
if a isnt 0 ----> if a
if a is 0 ----> unless a
Left part much readable because you explicitly compare it to zero, because it is length or some counter.
I strongly disagree with direct comparing with zero.
if a --- standart construction in lots of languages
if a is 0 ---> if not a
We can use if not if You have troubles with unless, but nobody compares the value with zero directly.
We have very different programming experience I guess.
It's C standard.
It's mostly done. Closing.
for readOnlyActivity in readOnlyActivities
return true if activity.type is readOnlyActivity
return false
activity.type in readOnlyActivities
I will clear the code myself, but please, use correct construction in the future
(I extend the list when found others)