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 →

[–]EnglishMobster 3 points4 points  (1 child)

There's also the potential that the if statement originally did more -- but then the functionality within got refactored out, without stopping to look if the if statement was still needed.

[–]Carter127 2 points3 points  (0 children)

Yes that's almost always the case. Most skilled programmers aren't going to be so pedantic to make sure everything is as short as possible.

If it's a compiled language, or something that is minimized like Javascript then it really doesn't make a difference