12
jhole89
7y

Being told code is "production ready" only to find this:
if name == 'foo' or name == 'bar' or name == 'someothershit'
What's wrong with:
if name in ['foo','bar', 'someothershit']?

Oh and they had 10 different values they were matching, not just 3. What kind of joker am I dealing with?

Comments
  • 1
    then you say array enumerations is noob thing and we need database. no way!
Add Comment