This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Originally posted by Anton Pechsherov: Maybe , you can mistakes anywhere.. but it was enother Example ..
Yes, but the point is, it's a bad example, and one which we at the Ranch (as well as experienced programers everywhere) actively discourage people from following. I routinely tell people to never, under any circumstances, compare directly to a boolean literal; the tokens "==" or "!=" should never appear next to "true" or "false" in your code.