|
|
|
|
|
by geofft
3405 days ago
|
|
I ran across a bug at $dayjob where someone was clearly trying to use Yoda conditions, but messed up differently: if "start" == argv[1]:
....
else if "stop" == argv[1]:
....
else if "reload":
....
else if "status" == argv[1]:
....
I think it'd be harder to make this mistake with the conditions the right way around. (Also, never mind that the equality bug isn't even possible in Python.) |
|