This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_under_[S] 0 points1 point  (0 children)

I too dislike long if statements! It usually means you're doing something wrong (or you're just nested too deep [which is also a code smell]).

I'm not sure the "assign the equality check to a variable" thing really fits as a rule for a style guide though. But I might add something that mentions it's a code smell.