21 if (foo == otherFoo)
23 return true;
27 return false;
The above is an example of what not to do. There have been many times in my life where I have done this not thinking about what I was doing. I am glad to say that time has passed. I have talked to others about it and they say they do it because it is more explicit and easier to read. I have a hard time agreeing with this stance how can the above be easier to read then the following.
21 return foo == otherFoo;
It’s short simple and easy to read.